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 = 200
 
constexpr int SLOWER_PROCESS_INTERVAL = 30
 
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 = 170
 
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 float MAX_V_ANALOG = 3.3
 
constexpr float MIN_HYDRAULIC_V = 0.5
 
constexpr float HYDRAULIC_PRESSURE_SLOPE = 65.0f
 
constexpr int HYDRAULIC_PRESSURE_MAX_BAR = 95
 
constexpr int HYDRAULIC_PRESSURE_ADC_MIN
 
constexpr float MAX_HYDRAULIC_V
 
constexpr int HYDRAULIC_PRESSURE_ADC_MAX
 
constexpr int HYDRAULIC_PRESSURE_SPAN_ADC
 
constexpr int ASSI_BLUE_PIN = 25
 
constexpr int ASSI_YELLOW_PIN = 12
 
constexpr int EBS_VALVE_REAR_PIN = 17
 
constexpr int EBS_VALVE_FRONT_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 = 19
 
constexpr int EBS_SENSOR1 = 41
 
constexpr int EBS_SENSOR2 = 39
 
constexpr int SDC_TSMS_STATE_PIN = 22
 
constexpr int RL_WSS = 5
 
constexpr int RR_WSS = 4
 
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 20 of file hardwareSettings.hpp.

◆ AMI

constexpr int AMI = 19
constexpr

Definition at line 80 of file hardwareSettings.hpp.

◆ ASATS

constexpr int ASATS = 20
constexpr

Definition at line 92 of file hardwareSettings.hpp.

◆ ASMS_IN_PIN

constexpr int ASMS_IN_PIN = 18
constexpr

Definition at line 79 of file hardwareSettings.hpp.

◆ ASSI_BLUE_PIN

constexpr int ASSI_BLUE_PIN = 25
constexpr

Definition at line 59 of file hardwareSettings.hpp.

◆ ASSI_YELLOW_PIN

constexpr int ASSI_YELLOW_PIN = 12
constexpr

Definition at line 60 of file hardwareSettings.hpp.

◆ ATS

constexpr int ATS = 16
constexpr

Definition at line 91 of file hardwareSettings.hpp.

◆ BRAKE_LIGHT

constexpr int BRAKE_LIGHT = 2
constexpr

Definition at line 69 of file hardwareSettings.hpp.

◆ BRAKE_PRESSURE_LOWER_THRESHOLD

constexpr int BRAKE_PRESSURE_LOWER_THRESHOLD = 170
constexpr

Definition at line 16 of file hardwareSettings.hpp.

◆ BRAKE_PRESSURE_UPPER_THRESHOLD

constexpr int BRAKE_PRESSURE_UPPER_THRESHOLD = 510
constexpr

Definition at line 17 of file hardwareSettings.hpp.

◆ BRAKE_SENSOR

constexpr int BRAKE_SENSOR = 38
constexpr

Definition at line 89 of file hardwareSettings.hpp.

◆ CHANGE_COUNTER_LIMIT

constexpr int CHANGE_COUNTER_LIMIT = 5
constexpr

Definition at line 29 of file hardwareSettings.hpp.

◆ CLOSE_SDC

constexpr int CLOSE_SDC = 21
constexpr

Definition at line 65 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 83 of file hardwareSettings.hpp.

◆ EBS_SENSOR2

constexpr int EBS_SENSOR2 = 39
constexpr

Definition at line 84 of file hardwareSettings.hpp.

◆ EBS_VALVE_FRONT_PIN

constexpr int EBS_VALVE_FRONT_PIN = 13
constexpr

Definition at line 63 of file hardwareSettings.hpp.

◆ EBS_VALVE_REAR_PIN

constexpr int EBS_VALVE_REAR_PIN = 17
constexpr

Definition at line 62 of file hardwareSettings.hpp.

◆ ENGAGE_EBS_TIMEOUT_MS

constexpr unsigned long ENGAGE_EBS_TIMEOUT_MS = 5000
constexpr

Definition at line 14 of file hardwareSettings.hpp.

◆ HYDRAULIC_PRESSURE_ADC_MAX

constexpr int HYDRAULIC_PRESSURE_ADC_MAX
constexpr
Initial value:
=
constexpr int ADC_MAX_VALUE
constexpr float MAX_HYDRAULIC_V
constexpr float MAX_V_ANALOG

Definition at line 49 of file hardwareSettings.hpp.

◆ HYDRAULIC_PRESSURE_ADC_MIN

constexpr int HYDRAULIC_PRESSURE_ADC_MIN
constexpr
Initial value:
=
constexpr float MIN_HYDRAULIC_V

Definition at line 44 of file hardwareSettings.hpp.

◆ HYDRAULIC_PRESSURE_MAX_BAR

constexpr int HYDRAULIC_PRESSURE_MAX_BAR = 95
constexpr

Definition at line 39 of file hardwareSettings.hpp.

◆ HYDRAULIC_PRESSURE_SLOPE

constexpr float HYDRAULIC_PRESSURE_SLOPE = 65.0f
constexpr

Definition at line 38 of file hardwareSettings.hpp.

◆ HYDRAULIC_PRESSURE_SPAN_ADC

constexpr int HYDRAULIC_PRESSURE_SPAN_ADC
constexpr
Initial value:
=
constexpr int HYDRAULIC_PRESSURE_ADC_MAX
constexpr int HYDRAULIC_PRESSURE_ADC_MIN

Definition at line 51 of file hardwareSettings.hpp.

◆ INITIAL_CHECKUP_STEP_TIMEOUT

constexpr int INITIAL_CHECKUP_STEP_TIMEOUT = 500
constexpr

Definition at line 11 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 18 of file hardwareSettings.hpp.

◆ MAX_HYDRAULIC_V

constexpr float MAX_HYDRAULIC_V
constexpr
Initial value:
=
constexpr int HYDRAULIC_PRESSURE_MAX_BAR
constexpr float HYDRAULIC_PRESSURE_SLOPE

Definition at line 46 of file hardwareSettings.hpp.

◆ MAX_MISSION

constexpr int MAX_MISSION = 7
constexpr

Definition at line 22 of file hardwareSettings.hpp.

◆ MAX_V_ANALOG

constexpr float MAX_V_ANALOG = 3.3
constexpr

Definition at line 34 of file hardwareSettings.hpp.

◆ MICRO_TO_SECONDS

constexpr float MICRO_TO_SECONDS = 1e-6f
constexpr

Definition at line 25 of file hardwareSettings.hpp.

◆ MIN_HYDRAULIC_V

constexpr float MIN_HYDRAULIC_V = 0.5
constexpr

Definition at line 35 of file hardwareSettings.hpp.

◆ PROCESS_INTERVAL

constexpr int PROCESS_INTERVAL = 200
constexpr

Definition at line 9 of file hardwareSettings.hpp.

◆ PULSES_PER_ROTATION

constexpr int PULSES_PER_ROTATION = 48
constexpr

Definition at line 23 of file hardwareSettings.hpp.

◆ READY_TIMEOUT_MS

constexpr unsigned long READY_TIMEOUT_MS = 5000
constexpr

Definition at line 12 of file hardwareSettings.hpp.

◆ RELEASE_EBS_TIMEOUT_MS

constexpr unsigned long RELEASE_EBS_TIMEOUT_MS = 1000
constexpr

Definition at line 13 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 = 5
constexpr

Definition at line 87 of file hardwareSettings.hpp.

◆ RR_WSS

constexpr int RR_WSS = 4
constexpr

Definition at line 88 of file hardwareSettings.hpp.

◆ SDC_BSPD_OUT

constexpr int SDC_BSPD_OUT = 14
constexpr

Definition at line 67 of file hardwareSettings.hpp.

◆ SDC_TSMS_STATE_PIN

constexpr int SDC_TSMS_STATE_PIN = 22
constexpr

Definition at line 85 of file hardwareSettings.hpp.

◆ SECONDS_IN_MINUTE

constexpr int SECONDS_IN_MINUTE = 60
constexpr

Definition at line 24 of file hardwareSettings.hpp.

◆ SLOWER_PROCESS_INTERVAL

constexpr int SLOWER_PROCESS_INTERVAL = 30
constexpr

Definition at line 10 of file hardwareSettings.hpp.

◆ SOC

constexpr int SOC = 24
constexpr

Definition at line 90 of file hardwareSettings.hpp.

◆ SOC_PERCENT_MAX

constexpr int SOC_PERCENT_MAX = 100
constexpr

Definition at line 21 of file hardwareSettings.hpp.

◆ WATCHDOG_TEST_DURATION

constexpr int WATCHDOG_TEST_DURATION = 1000
constexpr

Definition at line 32 of file hardwareSettings.hpp.

◆ WATCHDOG_TOGGLE_DURATION

constexpr int WATCHDOG_TOGGLE_DURATION = 1000
constexpr

Definition at line 31 of file hardwareSettings.hpp.

◆ WD_ALIVE

constexpr int WD_ALIVE = 15
constexpr

Definition at line 71 of file hardwareSettings.hpp.

◆ WD_PULSE_INTERVAL_MS

constexpr int WD_PULSE_INTERVAL_MS = 50
constexpr

Definition at line 30 of file hardwareSettings.hpp.

◆ WD_READY

constexpr int WD_READY = 37
constexpr

Definition at line 93 of file hardwareSettings.hpp.

◆ WD_SDC_CLOSE

constexpr int WD_SDC_CLOSE = 40
constexpr

Definition at line 70 of file hardwareSettings.hpp.

◆ WD_SDC_RELAY

constexpr int WD_SDC_RELAY = 33
constexpr

Definition at line 94 of file hardwareSettings.hpp.

◆ WD_TIMEOUT_MS

constexpr int WD_TIMEOUT_MS = 500
constexpr

Definition at line 15 of file hardwareSettings.hpp.