aboutsummaryrefslogtreecommitdiffstats
path: root/src/low_can_client.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 20:01:53 +0900
commitcfcc176e4cbbd890bcd67e2b8afb61fbff10d131 (patch)
tree8022ce046039dd759c93e9f3c140a66497ea13db /src/low_can_client.hpp
parentb6512a47584376d8016a7e5a91cca8bb5c945db9 (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/low_can_client.hpp')
-rw-r--r--src/low_can_client.hpp15
1 files changed, 10 insertions, 5 deletions
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<const char*> 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_;
};