From 183e61cb341a9bb394b1e933edb66284211ef7e6 Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Mon, 31 Jul 2017 17:30:17 +0900 Subject: Add agl-service-steering-wheel Add new binding service for steering wheel. Right now it's for logitech g29 and build on reneses m3ulcb. Had test on Daring Dab 3.99.2, 3.99.3, 4.0.0. After this commit, we want to add some code for dashboard to use this binding. [Modify 20170803] Deleted trailing whitespace in README.md Fixed typo enogh to enough Modfied .noconcurrency 0 to 1 for atomic Checked event valid by afb_event_is_valid Droped event when not enough memory by afb_event_drop [Modify 20170804] Modify json path into afb_daemon_rootdir_open_locale Delete error.h for same ERRMSG define in af-steering-wheel-binding.h Delete install code in recipes because aglwgt do autoinstall Add verbs information [Modify 20170808] Add target 'package' in CMakeLists.txt to make package [Modify 20170810] Add new folder named 'package' for jenkins job Change-Id: I975b1ce3afbeea0145ea723586b4b46288c987ab Signed-off-by: zheng_wenlong --- package/root/config.xml | 21 +++++++++++++++++++++ package/root/gear_shift_para.json | 32 ++++++++++++++++++++++++++++++++ package/root/steering_wheel.json | 5 +++++ package/root/steering_wheel_map.json | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 94 insertions(+) create mode 100644 package/root/config.xml create mode 100644 package/root/gear_shift_para.json create mode 100644 package/root/steering_wheel.json create mode 100644 package/root/steering_wheel_map.json (limited to 'package/root') diff --git a/package/root/config.xml b/package/root/config.xml new file mode 100644 index 0000000..9f3370a --- /dev/null +++ b/package/root/config.xml @@ -0,0 +1,21 @@ + + + steering-wheel-service + + + The name says it all! + TOYOTA + APL2.0 + + + + + + + + + + + + + diff --git a/package/root/gear_shift_para.json b/package/root/gear_shift_para.json new file mode 100644 index 0000000..3b58da7 --- /dev/null +++ b/package/root/gear_shift_para.json @@ -0,0 +1,32 @@ +{ + "GEAR_PARA" : [ + { + "POS" : "First", + "VAL" : "4.12", + }, + { + "POS" : "Second", + "VAL" : "2.84", + }, + { + "POS" : "Third", + "VAL" : "2.28", + }, + { + "POS" : "Fourth", + "VAL" : "1.45", + }, + { + "POS" : "Fifth", + "VAL" : "1.0", + }, + { + "POS" : "Sixth", + "VAL" : "0.69", + }, + { + "POS" : "Reverse", + "VAL" : "3.21", + }, + ] +} \ No newline at end of file diff --git a/package/root/steering_wheel.json b/package/root/steering_wheel.json new file mode 100644 index 0000000..1a5e889 --- /dev/null +++ b/package/root/steering_wheel.json @@ -0,0 +1,5 @@ +{ + "dev_name": "/dev/input/js0", + "wheel_map": "steering_wheel_map.json", + "gear_para": "gear_shift_para.json" +} diff --git a/package/root/steering_wheel_map.json b/package/root/steering_wheel_map.json new file mode 100644 index 0000000..9e580d9 --- /dev/null +++ b/package/root/steering_wheel_map.json @@ -0,0 +1,36 @@ +{ + "PROPERTYS" : [ + { + "PROPERTY" : "VehicleSpeed", + "TYPE" : "uint16_t", + }, + { + "PROPERTY" : "EngineSpeed", + "TYPE" : "uint16_t", + }, + { + "PROPERTY" : "AcceleratorPedalPosition", + "TYPE" : "uint16_t", + }, + { + "PROPERTY" : "TransmissionGearInfo", + "TYPE" : "uint16_t", + }, + { + "PROPERTY" : "TransmissionMode", + "TYPE" : "uint16_t", + }, + { + "PROPERTY" : "SteeringWheelAngle", + "TYPE" : "uint16_t", + }, + { + "PROPERTY" : "TurnSignalStatus", + "TYPE" : "uint16_t", + }, + { + "PROPERTY" : "LightStatusBrake", + "TYPE" : "bool", + }, + ] +} -- cgit 1.2.3-korg