diff options
author | 2018-05-18 17:16:14 +0900 | |
---|---|---|
committer | 2018-05-18 17:16:14 +0900 | |
commit | 7b62eefaf33b9bb69eb324333232ae0919fc295f (patch) | |
tree | 3cbaf1c253f3744607ab2c0685f58ae3a78e3e40 /src/app.hpp | |
parent | 9f61fdc39edd93c7da5b77b4bc92963e4df31b82 (diff) |
Add API which can get information about the car state
getCarInfo() can get the car state informations as follows:
- parking brake state : true/false
- accelerator pedal position : 0-127.5
- car state : "stop"/"run"
The details are described in doc/ApplicationGuide.md
in project apps/agl-service-windowmanager-2017.
Change-Id: I2a4a06ceeedbd2d3b1188a7fb442e1272e46897b
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src/app.hpp')
-rw-r--r-- | src/app.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app.hpp b/src/app.hpp index 13bc421..2e6ad69 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -233,6 +233,7 @@ struct App { void api_enddraw(char const *drawing_name); result<json_object *> api_get_display_info(); result<json_object *> api_get_area_info(char const *drawing_name); + result<json_object *> api_get_car_info(char const *label); void api_ping(); void send_event(char const *evname); void send_event(char const *evname, char const *label); |