mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
multirotor_pos_control: run mainloop at 100Hz
This commit is contained in:
parent
b7d8d77c0f
commit
aedb97f38e
@ -680,8 +680,8 @@ static int multirotor_pos_control_thread_main(int argc, char *argv[])
|
||||
/* reset altitude controller integral (hovering throttle) to manual throttle after manual throttle control */
|
||||
reset_int_z_manual = control_mode.flag_armed && control_mode.flag_control_manual_enabled && !control_mode.flag_control_climb_rate_enabled;
|
||||
|
||||
/* run at approximately 50 Hz */
|
||||
usleep(20000);
|
||||
/* run at approximately 100 Hz */
|
||||
usleep(10000);
|
||||
}
|
||||
|
||||
warnx("stopped");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user