Migration to binding v3
[apps/agl-service-can-low-level.git] / low-can-binding / binding / application-generated.cpp
index fff40fb..9eb89df 100644 (file)
@@ -4,9 +4,85 @@
 application_t::application_t()
        : can_bus_manager_{utils::config_parser_t{"/etc/dev-mapping.conf"}}
        , can_message_set_{
-               {std::make_shared<can_message_set_t>(can_message_set_t{0,"example",
+               {std::make_shared<can_message_set_t>(can_message_set_t{0,"AGL Virtual Car",
                        { // beginning can_message_definition_ vector
-                               {std::make_shared<can_message_definition_t>(can_message_definition_t{"hs",0x3D9,can_message_format_t::STANDARD,frequency_clock_t(5.00000f),true,
+                               {std::make_shared<can_message_definition_t>(can_message_definition_t{"ls",0x30,can_message_format_t::STANDARD,frequency_clock_t(5.00000f),true,
+                                       { // beginning can_signals vector
+                                               {std::make_shared<can_signal_t> (can_signal_t{
+                                                       "hvac.fan.speed",
+                                                       32,
+                                                       8,
+                                                       23.5294f,
+                                                       0.00000,
+                                                       0,
+                                                       0,
+                                                       frequency_clock_t(0.00000f),
+                                                       true,
+                                                       false,
+                                                       {
+                                                       },
+                                                       false,
+                                                       nullptr,
+                                                       nullptr,
+                                                       false
+                                               })},
+                                               {std::make_shared<can_signal_t> (can_signal_t{
+                                                       "hvac.temperature.left",
+                                                       0,
+                                                       8,
+                                                       1.00000f,
+                                                       0.00000,
+                                                       0,
+                                                       0,
+                                                       frequency_clock_t(0.00000f),
+                                                       true,
+                                                       false,
+                                                       {
+                                                       },
+                                                       true,
+                                                       nullptr,
+                                                       nullptr,
+                                                       false
+                                               })},
+                                               {std::make_shared<can_signal_t> (can_signal_t{
+                                                       "hvac.temperature.right",
+                                                       8,
+                                                       8,
+                                                       1.00000f,
+                                                       0.00000,
+                                                       0,
+                                                       0,
+                                                       frequency_clock_t(0.00000f),
+                                                       true,
+                                                       false,
+                                                       {
+                                                       },
+                                                       true,
+                                                       nullptr,
+                                                       nullptr,
+                                                       false
+                                               })},
+                                               {std::make_shared<can_signal_t> (can_signal_t{
+                                                       "hvac.temperature.average",
+                                                       16,
+                                                       8,
+                                                       1.00000f,
+                                                       0.00000,
+                                                       0,
+                                                       0,
+                                                       frequency_clock_t(0.00000f),
+                                                       true,
+                                                       false,
+                                                       {
+                                                       },
+                                                       true,
+                                                       nullptr,
+                                                       nullptr,
+                                                       false
+                                               })}
+                                       } // end can_signals vector
+                               })} // end can_message_definition entry
+,                              {std::make_shared<can_message_definition_t>(can_message_definition_t{"hs",0x3D9,can_message_format_t::STANDARD,frequency_clock_t(5.00000f),true,
                                        { // beginning can_signals vector
                                                {std::make_shared<can_signal_t> (can_signal_t{
                                                        "engine.speed",
@@ -308,7 +384,8 @@ application_t::application_t()
                                        5.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        5,
@@ -319,7 +396,8 @@ application_t::application_t()
                                        1.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        10,
@@ -330,7 +408,8 @@ application_t::application_t()
                                        1.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        11,
@@ -341,7 +420,8 @@ application_t::application_t()
                                        1.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        12,
@@ -352,7 +432,8 @@ application_t::application_t()
                                        5.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        13,
@@ -363,7 +444,8 @@ application_t::application_t()
                                        5.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        15,
@@ -374,7 +456,8 @@ application_t::application_t()
                                        1.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        16,
@@ -385,7 +468,8 @@ application_t::application_t()
                                        5.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        17,
@@ -396,7 +480,8 @@ application_t::application_t()
                                        5.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        31,
@@ -407,7 +492,8 @@ application_t::application_t()
                                        1.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        45,
@@ -418,7 +504,8 @@ application_t::application_t()
                                        0.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        47,
@@ -429,7 +516,8 @@ application_t::application_t()
                                        1.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        51,
@@ -440,7 +528,8 @@ application_t::application_t()
                                        1.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        70,
@@ -451,7 +540,8 @@ application_t::application_t()
                                        1.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        76,
@@ -462,7 +552,8 @@ application_t::application_t()
                                        1.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        82,
@@ -473,7 +564,8 @@ application_t::application_t()
                                        1.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        90,
@@ -484,7 +576,8 @@ application_t::application_t()
                                        5.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        91,
@@ -495,7 +588,8 @@ application_t::application_t()
                                        5.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        92,
@@ -506,7 +600,8 @@ application_t::application_t()
                                        1.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        94,
@@ -517,7 +612,8 @@ application_t::application_t()
                                        1.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 ,                              {std::make_shared<diagnostic_message_t>(diagnostic_message_t{
                                        99,
@@ -528,7 +624,8 @@ application_t::application_t()
                                        1.00000f,
                                        decoder_t::decode_obd2_response,
                                        nullptr,
-                                       true
+                                       true,
+                                       false
                                })}
 
                        } // end diagnostic_messages_ vector