Skip to content

Configuration Header

Tim Brewis edited this page Jul 1, 2022 · 4 revisions

Configurable Parameters

The configuration header defines all VCU parameters which might need to be tuned quickly. The main parameters are as follows:

Name Group Values Description
COMPETITION_MODE Core {0,1} Run the system as if it were the competition, disabling all tests.
READY_TO_DRIVE_OVERRIDE Ready-to-drive {0,1} Use the 'USER' button as the ready-to-drive signal.
READY_TO_DRIVE_BUZZER_TIME Ready-to-drive {1,2,3} Time in ms to sound the buzzer before entering ready-to-drive state.
RUN_APPS_TESTBENCH Testbenches {0,1} Look-up table data overrides APPS inputs.
RUN_FAULT_STATE_TESTBENCH Testbenches {0,1} Pressing 'USER' button causes system to enter fault state.
APPS_TESTBENCH_LAPS Testbenches {1,2,...} Number of laps for the APPS input testbench.

For parameters which are either 0 or 1, a value of 0 disables the described functionality and 1 enables it. See the page on testbenches for more details on the behaviour of the system when testbenches are enabled.

Other Parameters

A few other global parameters are included in this file, but it is not recommended to modify them unless you know what you are doing. These include:

  • Thread priorities.
  • Sensor configuration.