diff --git a/clover/src/simple_offboard.cpp b/clover/src/simple_offboard.cpp index fd419ad70..fdb509af0 100644 --- a/clover/src/simple_offboard.cpp +++ b/clover/src/simple_offboard.cpp @@ -417,8 +417,9 @@ void publish(const ros::Time stamp) } if (setpoint_type == POSITION || setpoint_type == NAVIGATE || setpoint_type == NAVIGATE_GLOBAL) { + position_msg.header.stamp = stamp; + if (setpoint_yaw_type == YAW || setpoint_yaw_type == TOWARDS) { - position_msg.header.stamp = stamp; position_pub.publish(position_msg); } else {