MCU
Loading...
Searching...
No Matches
lib
mock_interfaces
DashboardInterface.h
Go to the documentation of this file.
1
#ifndef DASHBOARDINTERFACE
2
#define DASHBOARDINTERFACE
3
4
#include "
SharedDataTypes.h
"
5
6
/* Enum for defined LED colors. ON will be LED's default color on dashboard*/
7
enum class
LEDColors_e
8
{
9
OFF
,
10
ON
,
11
YELLOW
,
12
RED
,
13
};
14
15
/* Enum to index the LED array. Each LED in the CAN message is represented in no particular order. */
16
enum class
DashLED_e
17
{
18
BOTS_LED
,
19
LAUNCH_CONTROL_LED
,
20
MODE_LED
,
21
MECH_BRAKE_LED
,
22
COCKPIT_BRB_LED
,
23
INERTIA_LED
,
24
GLV_LED
,
25
CRIT_CHARGE_LED
,
26
START_LED
,
27
MC_ERROR_LED
,
28
IMD_LED
,
29
AMS_LED
,
30
};
31
32
class
DashboardInterface
33
{
34
private
:
35
public
:
36
bool
buzzer
=
false
;
37
bool
start_button_status_
;
38
ControllerMode_e
getDialMode
() {
return
{};}
39
TorqueLimit_e
getTorqueLimitMode
() {
return
{};}
40
bool
startButtonPressed
() {
return
start_button_status_
; };
41
bool
checkBuzzer
(){
return
buzzer
; };
42
};
43
44
#endif
/* DASHBOARDINTERFACE */
SharedDataTypes.h
TorqueLimit_e
TorqueLimit_e
Defines modes of torque limit to be processed in torque limit map for exact values.
Definition:
SharedDataTypes.h:14
ControllerMode_e
ControllerMode_e
Definition:
SharedDataTypes.h:23
DashboardInterface
Definition:
DashboardInterface.h:83
DashboardInterface::start_button_status_
bool start_button_status_
Definition:
DashboardInterface.h:37
DashboardInterface::getDialMode
ControllerMode_e getDialMode()
Definition:
DashboardInterface.h:38
DashboardInterface::getTorqueLimitMode
TorqueLimit_e getTorqueLimitMode()
Definition:
DashboardInterface.h:39
DashboardInterface::buzzer
bool buzzer
Definition:
DashboardInterface.h:36
DashboardInterface::startButtonPressed
bool startButtonPressed()
Definition:
DashboardInterface.h:40
DashboardInterface::checkBuzzer
bool checkBuzzer()
Definition:
DashboardInterface.h:41
LEDColors_e
LEDColors_e
Definition:
DashboardInterface.h:15
LEDColors_e::OFF
@ OFF
LEDColors_e::YELLOW
@ YELLOW
LEDColors_e::ON
@ ON
LEDColors_e::RED
@ RED
DashLED_e
DashLED_e
Definition:
DashboardInterface.h:24
DashLED_e::MECH_BRAKE_LED
@ MECH_BRAKE_LED
DashLED_e::MC_ERROR_LED
@ MC_ERROR_LED
from state machine. When READY_TO_DRIVE, set START_LED to true. See what else uses READY_TO_DRIVE so ...
DashLED_e::START_LED
@ START_LED
DashLED_e::LAUNCH_CONTROL_LED
@ LAUNCH_CONTROL_LED
DashLED_e::CRIT_CHARGE_LED
@ CRIT_CHARGE_LED
DashLED_e::IMD_LED
@ IMD_LED
from DrivetrainSystem.cpp, get drivetrain_error_occurred()
DashLED_e::INERTIA_LED
@ INERTIA_LED
DashLED_e::AMS_LED
@ AMS_LED
DashLED_e::GLV_LED
@ GLV_LED
DashLED_e::COCKPIT_BRB_LED
@ COCKPIT_BRB_LED
DashLED_e::BOTS_LED
@ BOTS_LED
DashLED_e::MODE_LED
@ MODE_LED
Generated by
1.9.5