- - class name of method to be called
- - instance on which to call the method
- - method to call on that instance
- - rate (in Hertz) at which the method should be called
- - expected time (in MicroSeconds) that the method should take to run
- - priority (0 through 255, lower number meaning higher priority)
- FAST_TASK entries are run on every loop even if that means the loop
- overruns its allotted time
- */
- const AP_Scheduler::Task Plane::scheduler_tasks[] = {
- // Units: Hz us
- FAST_TASK(ahrs_update),
- FAST_TASK(update_control_mode),
- FAST_TASK(stabilize),
- FAST_TASK(set_servos),
- SCHED_TASK(read_radio, 50, 100, 6),
- SCHED_TASK(check_short_failsafe, 50, 100, 9),
- SCHED_TASK(update_speed_height, 50, 200, 12),
- SCHED_TASK(update_throttle_hover, 100, 90, 24),
- SCHED_TASK_CLASS(RC_Channels, (RC_Channels*)&plane.g2.rc_channels, read_mode_switch, 7, 100, 27),