diff options
author | 2018-05-17 16:48:33 +0900 | |
---|---|---|
committer | 2018-05-17 16:48:33 +0900 | |
commit | eaea3b4b5b814505e3564513e92a53fb03748d3b (patch) | |
tree | 4c9648fdef3435581a327ca0a7a11ad8d2e03148 /src/app.hpp | |
parent | a9f97575b05a5e49ace1f34e608bbb5aabdb8311 (diff) |
App (ResourceManager) class has the current car info
and LowCanClient does not check whether CAN signal value is changed
Change-Id: I41dfd0772f8fb4db70c4b5c0caa35791600abc54
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src/app.hpp')
-rw-r--r-- | src/app.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/app.hpp b/src/app.hpp index b7d6815..13bc421 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -128,6 +128,14 @@ struct id_allocator { } }; +typedef struct CarInfo { + bool parking_brake_stt; + bool accel_pedal_stt; + double accel_pedal_pos; + const char *car_stt; + bool headlamp_stt; +} CarInfo; + struct App { typedef std::unordered_map<uint32_t, struct compositor::rect> rect_map; @@ -234,6 +242,8 @@ struct App { void surface_created(uint32_t surface_id); void surface_removed(uint32_t surface_id); + void setAccelPedalPos(double val); + private: PolicyManager pm_; LayoutManager lm_; @@ -241,6 +251,7 @@ private: std::unordered_map<std::string, std::string> app2role_; std::unordered_map<std::string, std::string> role2app_; std::unordered_map<int, int> appid2role_; + CarInfo crr_car_info_; int allocateSurface(); void setSurfaceSize(const char* role, const char* area); |