From: Romain Forlot Date: Tue, 25 Apr 2017 18:00:05 +0000 (+0200) Subject: Fix bit alignment errors... X-Git-Tag: 3.99.1~129 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=3294f6fd9ad00d9412518b13b528ae14067cb3cf;p=apps%2Flow-level-can-service.git Fix bit alignment errors... Change-Id: Iea1bb66bb3aea8a120e7bbb3b55895682044cf23 Signed-off-by: Romain Forlot --- diff --git a/CAN-binder/examples/toyota/signals.json b/CAN-binder/examples/toyota/signals.json index e6260c1..68c068a 100644 --- a/CAN-binder/examples/toyota/signals.json +++ b/CAN-binder/examples/toyota/signals.json @@ -10,37 +10,37 @@ "signals": { "doors.driver.open": { "generic_name": "doors.driver.open", - "bit_position": 78, + "bit_position": 46, "bit_size": 1, - "factor": 0, + "factor": 1.0, "offset": 0, "decoder": "decoder_t::booleanDecoder"}, "doors.passenger.open": { "generic_name": "doors.passenger.open", - "bit_position": 79, + "bit_position": 47, "bit_size": 1, - "factor": 0, + "factor": 1.0, "offset": 0, "decoder": "decoder_t::booleanDecoder"}, "doors.rearleft.open": { "generic_name": "doors.rearleft.open", - "bit_position": 86, + "bit_position": 54, "bit_size": 1, - "factor": 0, + "factor": 1.0, "offset": 0, "decoder": "decoder_t::booleanDecoder"}, "doors.rearright.open": { "generic_name": "doors.rearright.open", - "bit_position": 85, + "bit_position": 53, "bit_size": 4, - "factor": 0, + "factor": 1.0, "offset": 0, "decoder": "decoder_t::booleanDecoder"}, "doors.coffer.open": { "generic_name": "doors.coffer.open", - "bit_position": 88, + "bit_position": 56, "bit_size": 1, - "factor": 0, + "factor": 1.0, "offset": 0, "decoder": "decoder_t::booleanDecoder"} } diff --git a/CAN-binder/low-can-binding/configuration-generated.cpp b/CAN-binder/low-can-binding/configuration-generated.cpp index 1691a69..1249ab4 100644 --- a/CAN-binder/low-can-binding/configuration-generated.cpp +++ b/CAN-binder/low-can-binding/configuration-generated.cpp @@ -17,9 +17,9 @@ configuration_t::configuration_t() 0, 0, "doors.coffer.open", - 88, + 56, 1, - 0.00000f, + 1.00000f, 0, 0, 0, @@ -37,9 +37,9 @@ configuration_t::configuration_t() 0, 0, "doors.driver.open", - 78, + 46, 1, - 0.00000f, + 1.00000f, 0, 0, 0, @@ -57,9 +57,9 @@ configuration_t::configuration_t() 0, 0, "doors.passenger.open", - 79, + 47, 1, - 0.00000f, + 1.00000f, 0, 0, 0, @@ -77,9 +77,9 @@ configuration_t::configuration_t() 0, 0, "doors.rearleft.open", - 86, + 54, 1, - 0.00000f, + 1.00000f, 0, 0, 0, @@ -97,9 +97,9 @@ configuration_t::configuration_t() 0, 0, "doors.rearright.open", - 85, + 55, 4, - 0.00000f, + 1.00000f, 0, 0, 0,