Open roque-canales opened 10 years ago
also I noticed that when switch back to auto mission mode after having paused, all the functions such as doset or condition commands are not reactivated, it would be possible to ensure that all (or the last ones) of the doset and conditon_ be before current waypoint be reprocessed when switching back to automission?
My view is that resuming at a particular waypoint even after a reboot is something that a ground station could handle better. For example allowing the operator to start the mission from any waypoint (i.e. one before the last one executed).
Okey, so it's enhancement for mission planner.
I will test MP Actions buttons like set waypoint,mission start... and I will feedback it in MP Issues/enhancement.
Randy, we can implement this feature directly in pixhawk.... Saving current waypoint to eeprom (alias full parameter tab list) And reloading commands before this waypoint following this: takeoff command last Do-Set-ROI last Do-Change-Speed last Do-Set-Home last Do-Set-Cam-Trigg-Dist last Do-Set-Relay last Do-Repeat-Servo
What do you think ?
i have been working on my old apm 2.6 for a while with firmware version arducopter 3.2.1 . While testing the AUTO mission, i found that the arducopter does not support resuming to the last waypoint once the AUTO mission is interrupted, and instead restarts from waypoint 1. Is there a way we can do that? like, by changing the source code? or is there already a solution to that in newer firmware verions?
@samannoy your question was answered in https://github.com/ArduPilot/ardupilot/issues/5550 and is different than this issue which is about continuing after a reboot.
I'd like to change my opinion from what I said way back in Aug 2014.. I think we could add a new parameter to the AP_Mission library to store the last active command and then when the user switches into Auto it resumes from the command number stored in the parameter. We'd need to be careful that it's properly cleared when a new mission is uploaded I think.
Randy,this idea is very useful, for example for sprayer drone, if when liquid level sensor declare the tank is empty,active the RTL failsafe, Resume the auto mission and save last Wp for refilling the tank or change the battery if it necessary.
This would be useful for Plane as well.
On Fri, 28 Dec 2018, Nathan E wrote:
This would be useful for Plane as well.
I wonder if we should just store the current waypoint in a parameter....
Hey, I wonder if this functionality has been added to the Ardupilot firmwares yet. If not, I was thinking of a Lua Script based solution, where the script would write the last waypoint index that the vehicle had covered before disarming/rebooting to a file (on the SD Card). And Based on a custom parameter (say RESUME_LASTWP; 0 = Do not Resume, 1 = Resume the Mission), the copter would travel to the last waypoint index that was written to the file before rebooting.
Hi @SuyashMali, yes, that would work I think. Instead of writing to the SD Card the script could store the waypoint number in a custom parameter. In any case, good idea!
pause auto-mission, it works, but there is possible to move current waypoint number variable to eeprom? like this even when copter no finish big mission, and when it rtl, land and we change batteries (reboot), when we restart mission, automatically copter go to waypoint targeted just before rtl?