Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copter: reload takeoff cmd on arm when using AllowTakeOffWithoutRaisi…
…ngThrottle USING AUTO_OPTIONS 135 we set auto mode and arm from it if we got a takeoff cmd as first nav cmd. Doing this, the takeoff cmd is loaded when we enter the auto mode and set the target alt relatively to origin https://github.com/ArduPilot/ardupilot/blob/master/ArduCopter/mode_auto.cpp#L343 This is never called again. So when we reset the home from the first arming, we don't update the target alt relativly to origin. This leads to a wrong takeoff alt settle due to the alt drift on ground.
- Loading branch information