Skip to content

Commit 17c2109

Browse files
sfalexrogokalachev
andauthored
simple_offboard: relax position_msg timestamp update rules (#264)
* simple_offboard: Relax position_msg timestamp update rules * Little code style change Co-authored-by: Oleg Kalachev <okalachev@gmail.com>
1 parent ebeb3f5 commit 17c2109

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clover/src/simple_offboard.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,9 @@ void publish(const ros::Time stamp)
417417
}
418418

419419
if (setpoint_type == POSITION || setpoint_type == NAVIGATE || setpoint_type == NAVIGATE_GLOBAL) {
420+
position_msg.header.stamp = stamp;
421+
420422
if (setpoint_yaw_type == YAW || setpoint_yaw_type == TOWARDS) {
421-
position_msg.header.stamp = stamp;
422423
position_pub.publish(position_msg);
423424

424425
} else {

0 commit comments

Comments
 (0)