ArduPilot/ardupilot

Copter: vehicle may backup if mission with takeoff as first command is initiated

開放

#6,322 建立於 2017年5月25日

 (4 則留言) (0 個反應) (0 位負責人)C++ (15,603 個分叉)batch import
BUGCoptergood first issue

倉庫指標

星標
 (9,336 顆星)
PR 合併指標
 (平均合併 26天 16小時) (30 天內合併 166 個 PR)

描述

Try this in the simulator:

  • set up a mission with a take-off command to 50m followed by a waypoint command
  • set MIS_RESTART = 1
  • arm and takeoff in stabilize or loiter, fly the vehicle forward at a reasonably fast speed but do not climb above 50m
  • initiate AUTO
  • the take-off command sets a horizontal target based on the vehicle's position at the moment the take-off command was initiated. If the vehicle is moving horizontally it will continue flying forward for a bit but then slow and return to where it was.

The solution is that if the vehicle is not-landed, the take-off command should use the horizontal stopping point as it's target instead of the current horizontal position.

貢獻者指南