X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=examples%2Ftoyota%2Fconfiguration-generated.cpp;h=4b9dac47358951df3a402b211dc14b6b4c10524e;hb=7aed41f1bdfc76eae902d289fce699b8fde40871;hp=fe8b56d186ffb3587b52b8a37e938ed3d5ed4a39;hpb=a78660995f1576b3757f08c424e412371de97e6c;p=apps%2Fagl-service-can-low-level.git diff --git a/examples/toyota/configuration-generated.cpp b/examples/toyota/configuration-generated.cpp index fe8b56d1..4b9dac47 100644 --- a/examples/toyota/configuration-generated.cpp +++ b/examples/toyota/configuration-generated.cpp @@ -1,13 +1,12 @@ -#include "configuration.hpp" +#include "application.hpp" #include "can/can-decoder.hpp" -configuration_t::configuration_t() - : can_message_set_{{0, "example", 0, 2, 2, 0, 19}} +application_t::application_t() + : can_message_set_{{0, "example", 0, 1, 5, 0, 19}} , can_message_definition_ { { - can_message_definition_t(0, "vcan0", 0x442, can_message_format_t::STANDARD, frequency_clock_t(0.00000f), true), - can_message_definition_t(0, "vcan0", 0x620, can_message_format_t::STANDARD, frequency_clock_t(0.00000f), true) + can_message_definition_t(0, "can0", 0x620, can_message_format_t::STANDARD, frequency_clock_t(0.00000f), true) } } , can_signals_ @@ -16,9 +15,29 @@ configuration_t::configuration_t() { 0, 0, - "doors.passenger.open", + "doors.coffer.open", + 88, + 1, + 0.00000f, + 0, 0, - 4, + 0, + frequency_clock_t(0.00000f), + true, + false, + { + }, + false, + decoder_t::decode_boolean, + nullptr, + false + }, + { + 0, + 0, + "doors.driver.open", + 78, + 1, 0.00000f, 0, 0, @@ -29,17 +48,55 @@ configuration_t::configuration_t() { }, false, - decoder_t::booleanDecoder, + decoder_t::decode_boolean, nullptr, false - } - }, - { + }, { 0, + 0, + "doors.passenger.open", + 79, 1, - "doors.driver.open", + 0.00000f, + 0, + 0, + 0, + frequency_clock_t(0.00000f), + true, + false, + { + }, + false, + decoder_t::decode_boolean, + nullptr, + false + }, + { + 0, + 0, + "doors.rearleft.open", + 86, + 1, + 0.00000f, + 0, + 0, + 0, + frequency_clock_t(0.00000f), + true, + false, + { + }, + false, + decoder_t::decode_boolean, + nullptr, + false + }, + { + 0, 0, + "doors.rearright.open", + 85, 4, 0.00000f, 0, @@ -51,7 +108,7 @@ configuration_t::configuration_t() { }, false, - decoder_t::booleanDecoder, + decoder_t::decode_boolean, nullptr, false } @@ -274,9 +331,9 @@ configuration_t::configuration_t() { } -const std::string configuration_t::get_diagnostic_bus() const +const std::string application_t::get_diagnostic_bus() const { - return "vcan0"; + return "can0"; }