其他分享
首页 > 其他分享> > ArduPilot中Copter的auto_disarm_check()

ArduPilot中Copter的auto_disarm_check()

作者:互联网

copter的auto_disarm_check()任务定义在任务列表中

1 ////运行频率10HZ,最长时间是50
2 SCHED_TASK(auto_disarm_check,     10,     50),
auto_disarm_check
1 //如果在手动模式的copter在地面,油门值低于至少15s,disarm copter
2 void Copter::auto_disarm_check()
3 {
4 }
libraries/Ap_Motor_Class.h
 1 void AP_Motors::armed(bool arm)
 2 {
 3     if (_flags.armed != arm) 
 4     {
 5         _flags.armed = arm;
 6         AP_Notify::flags.armed = arm;
 7         if (!arm) 
 8         {
 9             save_params_on_disarm();
10         }
11     }
12 };

 

标签:ArduPilot,auto,disarm,copter,arm,armed,check
来源: https://www.cnblogs.com/beepeg/p/14511491.html