From: zheng_wenlong Date: Wed, 6 Feb 2019 08:25:30 +0000 (+0900) Subject: Add fake can data for dashboard X-Git-Tag: 7.99.1~6 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=b5294c3ed58bfccae98225b2bd8dcf8d103d79ed;p=apps%2Fagl-service-can-low-level.git 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 --- 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 @@ -227,6 +227,162 @@ application_t::application_t() })} } // end can_signals vector })} // end can_message_definition entry +, {std::make_shared(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{ + "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{ + "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{ + "hs", + 0x5D2, + false, + can_message_format_t::STANDARD, + frequency_clock_t(5.00000f), + true, + { // beginning can_signals vector + {std::make_shared (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{ + "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{ + "hs", + 0x5D3, + false, + can_message_format_t::STANDARD, + frequency_clock_t(5.00000f), + true, + { // beginning can_signals vector + {std::make_shared (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{ + "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{ + "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{ "hs", 0x620,