mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
mc_pos_control: align updates with ekf2
This commit is contained in:
@@ -316,7 +316,8 @@ MulticopterPositionControl::init()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
_local_pos_sub.set_interval_us(20_ms); // 50 Hz max update rate
|
// limit to every other vehicle_local_position update (~62.5 Hz)
|
||||||
|
_local_pos_sub.set_interval_us(16_ms);
|
||||||
|
|
||||||
_time_stamp_last_loop = hrt_absolute_time();
|
_time_stamp_last_loop = hrt_absolute_time();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user