aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.hpp
diff options
context:
space:
mode:
authorYuta Doi <yuta-d@witz-inc.co.jp>2018-05-21 19:58:50 +0900
committerYuta Doi <yuta-d@witz-inc.co.jp>2018-05-21 19:58:50 +0900
commitb4083090dc8bf7adaad23dc11d629be839c7b5cf (patch)
treeb665d824226abb8a36d127a0429d20837bf186c7 /src/app.hpp
parentbf19dc1568478b646959e3e0bd58c54814facfa6 (diff)
Add lightstatus brake ON/OFF event
Change-Id: Id2c61fc6e102394f5ba08effe0cfac448b337176 Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src/app.hpp')
-rw-r--r--src/app.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/app.hpp b/src/app.hpp
index 13bc421..557ea78 100644
--- a/src/app.hpp
+++ b/src/app.hpp
@@ -134,6 +134,7 @@ typedef struct CarInfo {
double accel_pedal_pos;
const char *car_stt;
bool headlamp_stt;
+ bool lightstatus_brake_stt;
} CarInfo;
struct App {
@@ -159,6 +160,9 @@ struct App {
Event_ParkingBrakeOff,
Event_ParkingBrakeOn,
+ Event_LightstatusBrakeOff,
+ Event_LightstatusBrakeOn,
+
Event_CarStop,
Event_CarRun,
@@ -176,6 +180,8 @@ struct App {
"headlamp_on",
"parking_brake_off",
"parking_brake_on",
+ "lightstatus_brake_off",
+ "lightstatus_brake_on",
"car_stop",
"car_run",
};
@@ -286,6 +292,8 @@ private:
void emitHeadlampOn();
void emitParkingBrakeOff();
void emitParkingBrakeOn();
+ void emitLightstatusBrakeOff();
+ void emitLightstatusBrakeOn();
void emitCarStop();
void emitCarRun();