|
|
Auto Mode 自动模式
In autonomous (auto) mode, the copter will follow a pre-programmed mission script stored by the autopilot, including autonomously navigated waypoints, commands, and events. This pages provides information for using auto mode. For information on creating a mission script, visit the Planning a mission with waypoints and events page for detailed information on setting up a flight plan.
在自动模式下,飞行按照预先设定好的任务脚本飞行。包括按照导航点自动飞行、自动执行指令和任务。编制任务脚本,请参阅: http://copter.ardupilot.com/wiki ... ypoints-and-events/
Overview
Auto mode allows the copter to follow internal mission scripting to control its actions. Mission scripts can be a set of waypoints or very complex actions such as, takeoff, spin X times, take a picture, etc.
自动模式允许飞行器按照预存的脚本执行。任务脚本可以是一套航点或者复杂的指令行为,例如:起飞、转若干圈、拍照片等等。
Since mission scripts depend on the GPS for location information, auto mode is GPS dependent and it is necessary to allow the GPS to achieve lock before arming and taking off. Always ensure that the LEDs on the autopilot and GPS module indicate that GPS lock has been acquired:
因此任务脚本需要GPS定位数据,自动模式必须依赖于GPS的正常工作,因此请确保在“激活”之前,GPS模块已经完成了搜星和位置锁定。
• Blue LED on APM is solid.
• Blue LED on GPS module is solid.
• Blue LED on GPS+Compass module is blinking.
Warning: In Auto Mode the flight controller uses a barometer which measures air pressure as the primary means for determining altitude (“Pressure Altitude”) and if the air pressure is changing in your flight area, the copter will follow the air pressure change rather than actual altitude (unless you are within 20 feet of the ground and have SONAR installed and enabled).
警告:自动模式下,飞控使用气压高度计作为高度基准。如果在飞场的气压出现变化,飞行器的飞行高度将会受气压变化的影响而不再准确,飞行高度将不再是实际的相对高度。除非另外安装了超声波高度计,并且飞行高度小于20英尺。
Using Auto Mode from the Ground and from the Air
在空中和地面使用自动模式
There are two ways to enter auto mode: in the air or on the ground. If you are going to use auto mode to take off from the ground, a special safety prevents the execution of the mission script until you both arm and then raise the throttle for the first time. This is to prevent your copter from taking off on its own by accidentally flipping the mode switch. When using auto mode to takeoff from the ground, your most recent Alt_hold throttle value is used as a baseline for throttle control. Once the copter has taken off it will proceed to the first target altitude and to begin following the mission script.
有两种方式使用自动模式:空中与地面。
如果使用自动模式起飞,基于安全的考虑,在“激活”发动机之后,还需要推油门才能使飞行器进入自动模式。这样的设定是为了避免在“激活”发动机之后,意外触动模式切换拨杆,而造成飞行器的意外起飞。
Switching to auto mode when you are already in the air will cause your copter to go to your first target altitude and to begin following the current mission script.
在空中飞行的过程中切换到自动模式,飞行器首先会飞向第一个航点设定的高度,然后开始执行任务脚本。
Ending a Mission 结束任务
Once the mission script is complete, the copter will not fly home, it will simply loiter at the last script location until you regain control through the mode switch. If you want your copter to fly home you can add an RTL command to the end of your mission script. If you want to land manually and disarm the motors (rather than autoland with a pre-programmed command), you must switch into stabilize mode to do so.
指令脚本执行完毕之后,飞行器不会立即回家,而将在最后一个航点设定的位置和高度定点悬停,直到用户切换控制模式。如果希望飞行器在任务执行完毕之后回家,应该在任务脚本的末尾添加“回家”指令。“回家”是一种飞行模式,也是一条飞行指令。如果需要手动降落,需要手动切换到增稳模式。
Remember that when using RTL, the copter will return to the home position (the location of the copter at the time of arming after the GPS is locked), so it is very important to arm your copter in the location you want it to return (unobstructed and away from people) when using auto mode. Warning: It is important to understand the home position always refers to the physical location where your copter was armed!
千万牢记,如果需要使用“回家”功能,
一定要确保GPS已经搜星成功;
一定要在“家”的位置“激活”发动机;
一定要确保“家”的位置空旷无障碍物,且没有无关人员。
一定要深入理解,“家”的位置是飞行器进入“激活”状态时候的位置。
RTL or auto land at the last location in the mission script will force landing and disabling of the motors. Unless one of these two options is configured, you can not land manually in auto mode, since the throttle stick controls altitude, not the motors directly.
回家模式或者自动模式,都能够在结束的时候强制飞行器着陆,并“锁定”发动机。不可在自动模式下手动降落,因为油门控制高度而不是直接控制发动机。
Tuning
• The Waypoint_Speed value sets the rate of travel between waypoints.
o The default speed between waypoints is 6 meters per second by default.
• The NAV_PI is used to maintain the desired rate of travel for your copter between waypoints.
o NAV_P is used to tilt the copter to achieve the desired rate of speed, be it fast or no speed at all.
The higher the P the more the copter will tilt.
o Nav_I is used to compensate for outside forces that would make your copter not maintain the desired rate.
A high I term will ramp quickly to hold the desired rate, and will ramp down quickly to avoid overshoot.
|
|