position_setpoint_triplet topic: set the timestamp when publishing

This commit is contained in:
Beat Küng
2016-09-19 13:03:40 +02:00
parent 89a7e0cf87
commit 3a084fbdb8
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -622,6 +622,7 @@ Navigator::task_main()
}
if (_pos_sp_triplet_updated) {
_pos_sp_triplet.timestamp = hrt_absolute_time();
publish_position_setpoint_triplet();
_pos_sp_triplet_updated = false;
}