diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-03 08:49:00 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-03 08:49:00 +0100 |
commit | 0dcef829862e01ab4272163db3b536c9b70076a0 (patch) | |
tree | 6d1b4e285e72ade0c0729b93b41c225e531ec18e | |
parent | d572196852895f42e90b79b4ba5346b5d8c48f87 (diff) |
tbf
Change-Id: I4e46542258b8dab0c0e266adddf9bfc7a4111376
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r-- | src/can-bus.cpp | 1 | ||||
-rw-r--r-- | src/can-decoder.cpp | 2 | ||||
-rw-r--r-- | src/can-signals.cpp | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/src/can-bus.cpp b/src/can-bus.cpp index 76f6e45..f35319a 100644 --- a/src/can-bus.cpp +++ b/src/can-bus.cpp @@ -165,6 +165,7 @@ int can_bus_t::init_can_dev() { i++; DEBUG(binder_interface, "Start reading thread"); + NOTICE(binder_interface, "%s device opened and reading", device.c_str()); can_devices_m_[device]->start_reading(*this); } else diff --git a/src/can-decoder.cpp b/src/can-decoder.cpp index 5bc4642..0347139 100644 --- a/src/can-decoder.cpp +++ b/src/can-decoder.cpp @@ -88,7 +88,7 @@ openxc_DynamicField decoder_t::translateSignal(CanSignal& signal, can_message_t& } float value = parseSignalBitfield(signal, message); - DEBUG(binder_interface, "Decoded message: %f", value); + DEBUG(binder_interface, "translateSignal: Decoded message: %f", value); bool send = true; // Must call the decoders every time, regardless of if we are going to diff --git a/src/can-signals.cpp b/src/can-signals.cpp index d761e1e..5683862 100644 --- a/src/can-signals.cpp +++ b/src/can-signals.cpp @@ -36,7 +36,7 @@ std::vector<std::vector<CanMessageDefinition>> CAN_MESSAGES = { std::vector<std::vector<CanSignal>> SIGNALS = { { {&(CAN_MESSAGES[MESSAGE_SET_ID][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}, - {&(CAN_MESSAGES[MESSAGE_SET_ID][1]), "can.driver_door.close", 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} + {&(CAN_MESSAGES[MESSAGE_SET_ID][1]), "can.driver_door.close", 0, 4, 1.000000, 0.000000, 0.000000, 0.000000, {10, 0, nullptr}, false, true, nullptr, 0, false, decoder_t::booleanDecoder, nullptr, false, (float)NULL} }, }; |