summaryrefslogtreecommitdiffstats
path: root/src/can-signals.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-02-27 22:23:34 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-02-27 22:23:34 +0100
commit71c5498ffe56fae70fe765e853c9390eb2d2071d (patch)
tree152f6d68bc9383774bedd150416e7861287dabf6 /src/can-signals.cpp
parentacd0f2b7940d008fac0c4351dc9c591062d23bf7 (diff)
Fix decoder_t methods to get it compile
Change-Id: I283480bf434b00ade15bcb1dbc9d097c338caab4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can-signals.cpp')
-rw-r--r--src/can-signals.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/can-signals.cpp b/src/can-signals.cpp
index 54c03425..add6654d 100644
--- a/src/can-signals.cpp
+++ b/src/can-signals.cpp
@@ -19,14 +19,19 @@
#include <fnmatch.h>
+#include "can-decoder.hpp"
#include "low-can-binding.hpp"
+std::vector<std::vector<CanMessageDefinition>> CAN_MESSAGES = {
+ {{620, CanMessageFormat::STANDARD, {10, 0, nullptr}, false, (uint8_t)NULL}},
+};
+
/**
* @brief Dumb SIGNALS array. It is composed by CanMessageSet
* SIGNALS[MESSAGE_SET_ID][CanSignal]
*/
-std::vector<std::vector<CanSignal>> SIGNALS {
- {}// message set: example
+std::vector<std::vector<CanSignal>> SIGNALS = {
+ {{&(CAN_MESSAGES[0][0]), "can.driver_door.open", 2, 4, 1.000000, 0.000000, 0.000000, 0.000000, {10, 0, nullptr}, false, true, nullptr, 0, false, decoder_t::booleanDecoder, nullptr, false, (float)NULL}},
};
/**