mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-04 00:51:35 +08:00
multirotor_pos_control: run mainloop at 100Hz
This commit is contained in:
@@ -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 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;
|
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 */
|
/* run at approximately 100 Hz */
|
||||||
usleep(20000);
|
usleep(10000);
|
||||||
}
|
}
|
||||||
|
|
||||||
warnx("stopped");
|
warnx("stopped");
|
||||||
|
|||||||
Reference in New Issue
Block a user