Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
hardwareSettings.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

constexpr int COMPONENT_TIMESTAMP_TIMEOUT = 500
 
constexpr int RES_TIMESTAMP_TIMEOUT = 200
 
constexpr int DC_VOLTAGE_TIMEOUT = 150
 
constexpr int DC_VOLTAGE_HOLD = 1000
 
constexpr int EBS_BUZZER_TIMEOUT = 8000
 
constexpr int LED_BLINK_INTERVAL = 500
 
constexpr int PROCESS_INTERVAL = 100
 
constexpr int INITIAL_CHECKUP_STEP_TIMEOUT = 500
 
constexpr unsigned long READY_TIMEOUT_MS = 5000
 
constexpr unsigned long RELEASE_EBS_TIMEOUT_MS = 1000
 
constexpr unsigned long ENGAGE_EBS_TIMEOUT_MS = 5000
 
constexpr int WD_TIMEOUT_MS = 500
 
constexpr int BRAKE_PRESSURE_LOWER_THRESHOLD = 120
 
constexpr int BRAKE_PRESSURE_UPPER_THRESHOLD = 510
 
constexpr int LIMIT_RPM_INTERVAL = 500000
 
constexpr int ADC_MAX_VALUE = 1023
 
constexpr int SOC_PERCENT_MAX = 100
 
constexpr int MAX_MISSION = 7
 
constexpr int PULSES_PER_ROTATION = 48
 
constexpr int SECONDS_IN_MINUTE = 60
 
constexpr float MICRO_TO_SECONDS = 1e-6f
 
constexpr int CHANGE_COUNTER_LIMIT = 5
 
constexpr int WD_PULSE_INTERVAL_MS = 50
 
constexpr int WATCHDOG_TOGGLE_DURATION = 1000
 
constexpr int WATCHDOG_TEST_DURATION = 1000
 
constexpr int ASSI_BLUE_PIN = 25
 
constexpr int ASSI_YELLOW_PIN = 12
 
constexpr int EBS_VALVE_1_PIN = 17
 
constexpr int EBS_VALVE_2_PIN = 13
 
constexpr int CLOSE_SDC = 21
 
constexpr int SDC_BSPD_OUT = 14
 
constexpr int BRAKE_LIGHT = 2
 
constexpr int WD_SDC_CLOSE = 40
 
constexpr int WD_ALIVE = 15
 
constexpr int ASMS_IN_PIN = 18
 
constexpr int AMI = 23
 
constexpr int EBS_SENSOR1 = 41
 
constexpr int EBS_SENSOR2 = 39
 
constexpr int SDC_BSPD_STATE_PIN = 22
 
constexpr int RL_WSS = 4
 
constexpr int RR_WSS = 5
 
constexpr int BRAKE_SENSOR = 38
 
constexpr int SOC = 24
 
constexpr int ATS = 16
 
constexpr int ASATS = 20
 
constexpr int WD_READY = 37
 
constexpr int WD_SDC_RELAY = 33
 

Variable Documentation

◆ ADC_MAX_VALUE

constexpr int ADC_MAX_VALUE = 1023
constexpr

Definition at line 19 of file hardwareSettings.hpp.

◆ AMI

constexpr int AMI = 23
constexpr

Definition at line 60 of file hardwareSettings.hpp.

◆ ASATS

constexpr int ASATS = 20
constexpr

Definition at line 72 of file hardwareSettings.hpp.

◆ ASMS_IN_PIN

constexpr int ASMS_IN_PIN = 18
constexpr

Definition at line 59 of file hardwareSettings.hpp.

◆ ASSI_BLUE_PIN

constexpr int ASSI_BLUE_PIN = 25
constexpr

Definition at line 39 of file hardwareSettings.hpp.

◆ ASSI_YELLOW_PIN

constexpr int ASSI_YELLOW_PIN = 12
constexpr

Definition at line 40 of file hardwareSettings.hpp.

◆ ATS

constexpr int ATS = 16
constexpr

Definition at line 71 of file hardwareSettings.hpp.

◆ BRAKE_LIGHT

constexpr int BRAKE_LIGHT = 2
constexpr

Definition at line 49 of file hardwareSettings.hpp.

◆ BRAKE_PRESSURE_LOWER_THRESHOLD

constexpr int BRAKE_PRESSURE_LOWER_THRESHOLD = 120
constexpr

Definition at line 15 of file hardwareSettings.hpp.

◆ BRAKE_PRESSURE_UPPER_THRESHOLD

constexpr int BRAKE_PRESSURE_UPPER_THRESHOLD = 510
constexpr

Definition at line 16 of file hardwareSettings.hpp.

◆ BRAKE_SENSOR

constexpr int BRAKE_SENSOR = 38
constexpr

Definition at line 69 of file hardwareSettings.hpp.

◆ CHANGE_COUNTER_LIMIT

constexpr int CHANGE_COUNTER_LIMIT = 5
constexpr

Definition at line 28 of file hardwareSettings.hpp.

◆ CLOSE_SDC

constexpr int CLOSE_SDC = 21
constexpr

Definition at line 45 of file hardwareSettings.hpp.

◆ COMPONENT_TIMESTAMP_TIMEOUT

constexpr int COMPONENT_TIMESTAMP_TIMEOUT = 500
constexpr

Definition at line 3 of file hardwareSettings.hpp.

◆ DC_VOLTAGE_HOLD

constexpr int DC_VOLTAGE_HOLD = 1000
constexpr

Definition at line 6 of file hardwareSettings.hpp.

◆ DC_VOLTAGE_TIMEOUT

constexpr int DC_VOLTAGE_TIMEOUT = 150
constexpr

Definition at line 5 of file hardwareSettings.hpp.

◆ EBS_BUZZER_TIMEOUT

constexpr int EBS_BUZZER_TIMEOUT = 8000
constexpr

Definition at line 7 of file hardwareSettings.hpp.

◆ EBS_SENSOR1

constexpr int EBS_SENSOR1 = 41
constexpr

Definition at line 63 of file hardwareSettings.hpp.

◆ EBS_SENSOR2

constexpr int EBS_SENSOR2 = 39
constexpr

Definition at line 64 of file hardwareSettings.hpp.

◆ EBS_VALVE_1_PIN

constexpr int EBS_VALVE_1_PIN = 17
constexpr

Definition at line 42 of file hardwareSettings.hpp.

◆ EBS_VALVE_2_PIN

constexpr int EBS_VALVE_2_PIN = 13
constexpr

Definition at line 43 of file hardwareSettings.hpp.

◆ ENGAGE_EBS_TIMEOUT_MS

constexpr unsigned long ENGAGE_EBS_TIMEOUT_MS = 5000
constexpr

Definition at line 13 of file hardwareSettings.hpp.

◆ INITIAL_CHECKUP_STEP_TIMEOUT

constexpr int INITIAL_CHECKUP_STEP_TIMEOUT = 500
constexpr

Definition at line 10 of file hardwareSettings.hpp.

◆ LED_BLINK_INTERVAL

constexpr int LED_BLINK_INTERVAL = 500
constexpr

Definition at line 8 of file hardwareSettings.hpp.

◆ LIMIT_RPM_INTERVAL

constexpr int LIMIT_RPM_INTERVAL = 500000
constexpr

Definition at line 17 of file hardwareSettings.hpp.

◆ MAX_MISSION

constexpr int MAX_MISSION = 7
constexpr

Definition at line 21 of file hardwareSettings.hpp.

◆ MICRO_TO_SECONDS

constexpr float MICRO_TO_SECONDS = 1e-6f
constexpr

Definition at line 24 of file hardwareSettings.hpp.

◆ PROCESS_INTERVAL

constexpr int PROCESS_INTERVAL = 100
constexpr

Definition at line 9 of file hardwareSettings.hpp.

◆ PULSES_PER_ROTATION

constexpr int PULSES_PER_ROTATION = 48
constexpr

Definition at line 22 of file hardwareSettings.hpp.

◆ READY_TIMEOUT_MS

constexpr unsigned long READY_TIMEOUT_MS = 5000
constexpr

Definition at line 11 of file hardwareSettings.hpp.

◆ RELEASE_EBS_TIMEOUT_MS

constexpr unsigned long RELEASE_EBS_TIMEOUT_MS = 1000
constexpr

Definition at line 12 of file hardwareSettings.hpp.

◆ RES_TIMESTAMP_TIMEOUT

constexpr int RES_TIMESTAMP_TIMEOUT = 200
constexpr

Definition at line 4 of file hardwareSettings.hpp.

◆ RL_WSS

constexpr int RL_WSS = 4
constexpr

Definition at line 67 of file hardwareSettings.hpp.

◆ RR_WSS

constexpr int RR_WSS = 5
constexpr

Definition at line 68 of file hardwareSettings.hpp.

◆ SDC_BSPD_OUT

constexpr int SDC_BSPD_OUT = 14
constexpr

Definition at line 47 of file hardwareSettings.hpp.

◆ SDC_BSPD_STATE_PIN

constexpr int SDC_BSPD_STATE_PIN = 22
constexpr

Definition at line 65 of file hardwareSettings.hpp.

◆ SECONDS_IN_MINUTE

constexpr int SECONDS_IN_MINUTE = 60
constexpr

Definition at line 23 of file hardwareSettings.hpp.

◆ SOC

constexpr int SOC = 24
constexpr

Definition at line 70 of file hardwareSettings.hpp.

◆ SOC_PERCENT_MAX

constexpr int SOC_PERCENT_MAX = 100
constexpr

Definition at line 20 of file hardwareSettings.hpp.

◆ WATCHDOG_TEST_DURATION

constexpr int WATCHDOG_TEST_DURATION = 1000
constexpr

Definition at line 31 of file hardwareSettings.hpp.

◆ WATCHDOG_TOGGLE_DURATION

constexpr int WATCHDOG_TOGGLE_DURATION = 1000
constexpr

Definition at line 30 of file hardwareSettings.hpp.

◆ WD_ALIVE

constexpr int WD_ALIVE = 15
constexpr

Definition at line 51 of file hardwareSettings.hpp.

◆ WD_PULSE_INTERVAL_MS

constexpr int WD_PULSE_INTERVAL_MS = 50
constexpr

Definition at line 29 of file hardwareSettings.hpp.

◆ WD_READY

constexpr int WD_READY = 37
constexpr

Definition at line 73 of file hardwareSettings.hpp.

◆ WD_SDC_CLOSE

constexpr int WD_SDC_CLOSE = 40
constexpr

Definition at line 50 of file hardwareSettings.hpp.

◆ WD_SDC_RELAY

constexpr int WD_SDC_RELAY = 33
constexpr

Definition at line 74 of file hardwareSettings.hpp.

◆ WD_TIMEOUT_MS

constexpr int WD_TIMEOUT_MS = 500
constexpr

Definition at line 14 of file hardwareSettings.hpp.