PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.2k stars 13.37k forks source link

**Feature Request** param to enable auto transition to Mission after successful Takeoff #8035

Closed Antiheavy closed 6 years ago

Antiheavy commented 6 years ago

Right now if we want to auto takeoff and auto fly a Mission everything is handled inside the flight plan including auto takeoff parameters built into the first mission waypoint. This is the case for fixed wing at least, I'm not sure about VTOL.

Another (and IMHO better) way to do this is to use the Takeoff modes/states and then automatically switch to the Mission once Takeoff is achieved. There are many use cases where this is a a better approach (e.g. survey missions that are pre-planned or flown multiple times, but takeoff locations/conditions change). This should be enabled/disabled by a parameter.

Another important piece to this is properly parameterizing the fixed wing takeoff pitch: https://github.com/PX4/Firmware/issues/6787

dagar commented 6 years ago

I'm likely going to squeeze this into https://github.com/PX4/Firmware/issues/6787

Then a param like COM_TAKEOFF_FIN for configuring what happens after AUTO_TAKEOFF acceptance. Default would be switch to LOITER, another option would be switch to MISSION (if available and valid).

Antiheavy commented 6 years ago

related: https://github.com/PX4/Firmware/pull/8020

Antiheavy commented 6 years ago

Another advantage of using "Takeoff" mode instead of takeoff waypoint in Mission mode is the airplane can back off from 100% throttle sooner instead of climbing all the way to mission altitude at 100% throttle. Long climbs at 100% throttle, especially the takeoff climb, result in reduced airspeed/pitch control, can be inefficient, and can overtemp the motor/esc on some aircraft.

LorenzMeier commented 6 years ago

@dagar I've moved this to v1.8 - please move back to 1.7 and send a PR if you disagree.

Antiheavy commented 6 years ago

@dagar - FWIW this is not urgently needed for our project so we have no issues delaying.

Antiheavy commented 6 years ago

@dagar we should review to ensure mission feasibility properly gates both Takeoff and Mission modes is auto-transition from Takeoff to Mission is active.

PX4BuildBot commented 6 years ago

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 30 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.)

Antiheavy commented 6 years ago

I'm okay with this feature request getting closed. I believe if https://github.com/PX4/Firmware/issues/6787 is implemented then both Takeoff mode and Mission takeoff modes will work slightly differently and will answer the mail on this. There may not need to be a parameter to force auto transition, just use Mission takeoff in that case instead of Takeoff mode.