Skip to content
Snippets Groups Projects
Commit e49549a4 authored by Roman's avatar Roman Committed by Daniel Agar
Browse files

uavcan: use px4 timestamp for the esc status message

- there is a timeshift between the esc and px4 time so until there is some
kind of offset estimation we are better off using px4 time since the logging
system uses that as reference

Signed-off-by: default avatarRoman <bapstroman@gmail.com>
parent 795e13ca
No related branches found
No related tags found
No related merge requests found
......@@ -203,7 +203,7 @@ void UavcanEscController::esc_status_sub_cb(const uavcan::ReceivedDataStructure<
{
if (msg.esc_index < esc_status_s::CONNECTED_ESC_MAX) {
_esc_status.esc_count = uavcan::max<int>(_esc_status.esc_count, msg.esc_index + 1);
_esc_status.timestamp = msg.getMonotonicTimestamp().toUSec();
_esc_status.timestamp = hrt_absolute_time();
auto &ref = _esc_status.esc[msg.esc_index];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment