diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-02-06 17:25:30 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2019-02-06 17:27:31 +0900 |
commit | b5294c3ed58bfccae98225b2bd8dcf8d103d79ed (patch) | |
tree | 79f8b5196d477f56df892827bb8f901a22412db7 /low-can-binding | |
parent | 7cf3679da71727f59c56b446ebf17ad2ce7bfddf (diff) |
Add fake can data for dashboard
Add these fake can data.
We want to modify dashboard, let is show more information.
accelerator.pedal.position
steering.wheel.angle
transmission.gearinfo
transmission.mode
turnsignal.status
lightstatus.brake
parking.brake.status
Change-Id: Ief9f29684f3463af0d0f98f1dd213b633d1889bb
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'low-can-binding')
-rw-r--r-- | low-can-binding/binding/application-generated.cpp | 156 |
1 files changed, 156 insertions, 0 deletions
diff --git a/low-can-binding/binding/application-generated.cpp b/low-can-binding/binding/application-generated.cpp index 1b0a3506..f91d4154 100644 --- a/low-can-binding/binding/application-generated.cpp +++ b/low-can-binding/binding/application-generated.cpp @@ -229,6 +229,162 @@ application_t::application_t() })} // end can_message_definition entry , {std::make_shared<can_message_definition_t>(can_message_definition_t{ "hs", + 0x5D1, + false, + can_message_format_t::STANDARD, + frequency_clock_t(5.00000f), + true, + { // beginning can_signals vector + {std::make_shared<can_signal_t> (can_signal_t{ + "accelerator.pedal.position", + 16, + 8, + 0.500000f, + 0.00000, + 0, + 0, + frequency_clock_t(0.00000f), + true, + false, + { + }, + false, + nullptr, + nullptr, + false + })}, + {std::make_shared<can_signal_t> (can_signal_t{ + "steering.wheel.angle", + 4, + 12, + 1.00000f, + 0.00000, + 0, + 0, + frequency_clock_t(0.00000f), + true, + false, + { + }, + false, + nullptr, + nullptr, + false + })} + } // end can_signals vector + })} // end can_message_definition entry +, {std::make_shared<can_message_definition_t>(can_message_definition_t{ + "hs", + 0x5D2, + false, + can_message_format_t::STANDARD, + frequency_clock_t(5.00000f), + true, + { // beginning can_signals vector + {std::make_shared<can_signal_t> (can_signal_t{ + "transmission.gearinfo", + 20, + 4, + 1.00000f, + 0.00000, + 0, + 0, + frequency_clock_t(0.00000f), + true, + false, + { + }, + false, + nullptr, + nullptr, + false + })}, + {std::make_shared<can_signal_t> (can_signal_t{ + "transmission.mode", + 16, + 4, + 1.00000f, + 0.00000, + 0, + 0, + frequency_clock_t(0.00000f), + true, + false, + { + }, + false, + nullptr, + nullptr, + false + })} + } // end can_signals vector + })} // end can_message_definition entry +, {std::make_shared<can_message_definition_t>(can_message_definition_t{ + "hs", + 0x5D3, + false, + can_message_format_t::STANDARD, + frequency_clock_t(5.00000f), + true, + { // beginning can_signals vector + {std::make_shared<can_signal_t> (can_signal_t{ + "turnsignal.status", + 26, + 3, + 1.00000f, + 0.00000, + 0, + 0, + frequency_clock_t(0.00000f), + true, + false, + { + }, + false, + nullptr, + nullptr, + false + })}, + {std::make_shared<can_signal_t> (can_signal_t{ + "lightstatus.brake", + 7, + 1, + 1.00000f, + 0.00000, + 0, + 0, + frequency_clock_t(0.00000f), + true, + false, + { + }, + false, + decoder_t::decode_boolean, + nullptr, + false + })}, + {std::make_shared<can_signal_t> (can_signal_t{ + "parking.brake.status", + 8, + 1, + 1.00000f, + 0.00000, + 0, + 0, + frequency_clock_t(0.00000f), + true, + false, + { + }, + false, + decoder_t::decode_boolean, + nullptr, + false + })} + } // end can_signals vector + })} // end can_message_definition entry +, {std::make_shared<can_message_definition_t>(can_message_definition_t{ + "hs", 0x620, false, can_message_format_t::STANDARD, |