From cfcc176e4cbbd890bcd67e2b8afb61fbff10d131 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/low_can_client.hpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/low_can_client.hpp') diff --git a/src/low_can_client.hpp b/src/low_can_client.hpp index 4bc3747..390d752 100644 --- a/src/low_can_client.hpp +++ b/src/low_can_client.hpp @@ -37,6 +37,7 @@ public: SignalNoHeadlame, SignalNoParkingBrake, SignalNoAccelPedalPos, + SignalNoLightstatusBrake, SignalNum, @@ -50,6 +51,7 @@ public: "headlamp_status", "parking_brake_status", "accelerator.pedal.position", + "lightstatus.brake", }; void initialize(); @@ -60,6 +62,7 @@ public: bool getCurrentParkingBrakeState(); double getCurrentAccelPedalPosition(); bool getCurrentAccelPedalState(); + bool getCurrentLightstatusBrakeState(); bool isChangedAccelPedalState(); @@ -84,11 +87,12 @@ private: }; const std::vector kFilterValue_{ - "", - "", - "", - "", - "", //"{ \"min\": 0, \"max\": 10}", + "", // vehicle.speed + "", // transmission_gear_position + "", // headlamp_status + "", // parking_brake_status + "", // accelerator.pedal.position + "", // lightstatus.brake }; int vehicle_speed_; @@ -97,6 +101,7 @@ private: json_bool parking_brake_status_; double accel_pedal_pos_; bool accel_pedal_stt_; + json_bool lightstatus_brake_status_; bool is_changed_accel_pedal_stt_; }; -- cgit 1.2.3-korg