diff options
Diffstat (limited to 'CAN-binder')
-rw-r--r-- | CAN-binder/low-can-binding/can/can-bus.hpp | 2 | ||||
-rw-r--r-- | CAN-binder/low-can-binding/can/can-decoder.cpp | 2 | ||||
-rw-r--r-- | CAN-binder/low-can-binding/can/can-decoder.hpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/CAN-binder/low-can-binding/can/can-bus.hpp b/CAN-binder/low-can-binding/can/can-bus.hpp index 8ed135f..cb9b3de 100644 --- a/CAN-binder/low-can-binding/can/can-bus.hpp +++ b/CAN-binder/low-can-binding/can/can-bus.hpp @@ -51,7 +51,7 @@ class can_bus_t private: utils::config_parser_t conf_file_; ///< configuration file handle used to initialize can_bus_dev_t objects. - int process_can_signals(can_message_t& can_message); + int process_can_signals(const can_message_t& can_message); int process_diagnostic_signals(diagnostic_manager_t& manager, const can_message_t& can_message); void can_decode_message(); diff --git a/CAN-binder/low-can-binding/can/can-decoder.cpp b/CAN-binder/low-can-binding/can/can-decoder.cpp index 442e373..2ccbbb8 100644 --- a/CAN-binder/low-can-binding/can/can-decoder.cpp +++ b/CAN-binder/low-can-binding/can/can-decoder.cpp @@ -153,7 +153,7 @@ openxc_DynamicField decoder_t::stateDecoder(can_signal_t& signal, /// The decoder returns an openxc_DynamicField, which may contain a number, /// string or boolean. /// -openxc_DynamicField decoder_t::translateSignal(can_signal_t& signal, can_message_t& message, +openxc_DynamicField decoder_t::translateSignal(can_signal_t& signal, const can_message_t& message, const std::vector<can_signal_t>& signals, bool* send) { float value = decoder_t::parseSignalBitfield(signal, message); diff --git a/CAN-binder/low-can-binding/can/can-decoder.hpp b/CAN-binder/low-can-binding/can/can-decoder.hpp index 15e0229..d626eaa 100644 --- a/CAN-binder/low-can-binding/can/can-decoder.hpp +++ b/CAN-binder/low-can-binding/can/can-decoder.hpp @@ -35,7 +35,7 @@ public: static openxc_DynamicField noopDecoder(can_signal_t& signal, const std::vector<can_signal_t>& signals, float value, bool* send); - static openxc_DynamicField translateSignal(can_signal_t& signal, can_message_t& message, + static openxc_DynamicField translateSignal(can_signal_t& signal, const can_message_t& message, const std::vector<can_signal_t>& signals, bool* send); static openxc_DynamicField decodeSignal(can_signal_t& signal, const can_message_t& message, |