Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Renaming configuration to application
[apps/agl-service-can-low-level.git]
/
CAN-binder
/
low-can-binding
/
can
/
can-signals.cpp
diff --git
a/CAN-binder/low-can-binding/can/can-signals.cpp
b/CAN-binder/low-can-binding/can/can-signals.cpp
index
d196c07
..
324cecc
100644
(file)
--- a/
CAN-binder/low-can-binding/can/can-signals.cpp
+++ b/
CAN-binder/low-can-binding/can/can-signals.cpp
@@
-19,7
+19,7
@@
#include "can-signals.hpp"
#include "can-signals.hpp"
-#include "../binding/
configur
ation.hpp"
+#include "../binding/
applic
ation.hpp"
#include "../utils/signals.hpp"
#include "can-decoder.hpp"
#include "can-message.hpp"
#include "../utils/signals.hpp"
#include "can-decoder.hpp"
#include "can-message.hpp"
@@
-94,7
+94,7
@@
can_message_definition_t* can_signal_t::get_message() const
return parent_;
}
return parent_;
}
-const std::string
&
can_signal_t::get_generic_name() const
+const std::string can_signal_t::get_generic_name() const
{
return generic_name_;
}
{
return generic_name_;
}
@@
-104,7
+104,7
@@
const std::string can_signal_t::get_name() const
return prefix_ + "." + generic_name_;
}
return prefix_ + "." + generic_name_;
}
-const std::string
&
can_signal_t::get_prefix() const
+const std::string can_signal_t::get_prefix() const
{
return prefix_;
}
{
return prefix_;
}
@@
-215,7
+215,12
@@
void can_signal_t::set_last_value(float val)
last_value_ = val;
}
last_value_ = val;
}
-/// @brief Create a RX_SETUP receive job using the BCM socket.
+void can_signal_t::set_timestamp(uint64_t timestamp)
+{
+ frequency_.tick(timestamp);
+}
+
+/// @brief Create a RX_SETUP receive job used by the BCM socket.
///
/// @return 0 if ok else -1
int can_signal_t::create_rx_filter()
///
/// @return 0 if ok else -1
int can_signal_t::create_rx_filter()
@@
-223,7
+228,7
@@
int can_signal_t::create_rx_filter()
// Make sure that socket has been opened.
if(! socket_)
socket_.open(
// Make sure that socket has been opened.
if(! socket_)
socket_.open(
- get_message()->get_bus_name());
+ get_message()->get_bus_
device_
name());
uint32_t can_id = get_message()->get_id();
uint32_t can_id = get_message()->get_id();