mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 07:13:35 +08:00
Fix timestamp on rates_sp
This commit is contained in:
@@ -247,6 +247,8 @@ void multirotor_control_attitude(const struct vehicle_attitude_setpoint_s *att_s
|
|||||||
}
|
}
|
||||||
|
|
||||||
rates_sp->thrust = att_sp->thrust;
|
rates_sp->thrust = att_sp->thrust;
|
||||||
|
//need to update the timestamp now that we've touched rates_sp
|
||||||
|
rates_sp->timestamp = hrt_absolute_time();
|
||||||
|
|
||||||
motor_skip_counter++;
|
motor_skip_counter++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user