From b4083090dc8bf7adaad23dc11d629be839c7b5cf Mon Sep 17 00:00:00 2001 From: Yuta Doi Date: Mon, 21 May 2018 19:58:50 +0900 Subject: Add lightstatus brake ON/OFF event Change-Id: Id2c61fc6e102394f5ba08effe0cfac448b337176 Signed-off-by: Yuta Doi --- src/app.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/app.hpp') 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(); -- cgit 1.2.3-korg