Plane: add Takeoff flight mode
I've got a larger plane that is much easier to launch with 2 hands. It would be good if there was a dedicated "takeoff" flight mode that didn't need mission planning to use. One like the MFD autopilot has. My plane is well tuned and can run fully automatic missions takeoff to landing when planned but a launch mode that just had to be set like any other flight mode would be great. One that continues in the same direction you throw the plane. At the moment I have a switch to ramp up to takeoff throttle add elevator and put the plane in stabilise which works but not as well as auto takeoff in auto mode.
That would be a good thing for single-person hand launches.
On Sun, Sep 6, 2015 at 8:36 PM, SlipstreamFPV [email protected] wrote:
I've got a larger plane that is much easier to launch with 2 hands. It would be good if there was a dedicated "takeoff" flight mode that didn't need mission planning to use. One like the MFD autopilot has. My plane is well tuned and can run fully automatic missions takeoff to landing when planned but a launch mode that just had to be set like any other flight mode would be great. One that continues in the same direction you throw the plane. At the moment I have a switch to ramp up to takeoff throttle add elevator and put the plane in stabilise which works but not as well as auto takeoff in auto mode.
— Reply to this email directly or view it on GitHub https://github.com/diydrones/ardupilot/issues/2811.
I don't know much about Planes, but one argument I've heard is that we don't know where the plane should go after it takes off. Maybe there should be some semi-defined default position that it flies to after takeoff. It could be 100m above "home" if that's been defined by the user through the GCS or it could be 100m directly above the take-off location.. or 100m forward and up from the take-off locatoin.. I'm not sure where it should be or what options should be made available but perhaps this is the thing that is missing and is blocking this request.
Thanks for your responses. I think the MFD autopilot will just continue in the direction of the throw on a takeoff slope angle until the pilot interrupts. Maybe a straight takeoff to the users set RTL altitude followed by a normal RTL function would work well.
@rmackay9 In Auto mode where a TAKEOFF is the first mission command, after it detects a launch it holds it's heading and climbs with a user-defined fixed throttle, generally a high one, until it reaches a mission-defined altitude where it triggers the next waypoint. There's also constraints on roll angle to reduce low-speed stalls.
In a TAKEOFF-MODE I would imagine it takeoffs with high throttle, fixed heading, and positive pitch to a certain user-defined altitude then loiter forever.
However, if switched to this mode during flight it would suffer from what this PR is trying to fix: https://github.com/diydrones/ardupilot/pull/2781 For bungee launches we inhibit the throttle until a high forward accel is detected and then it engages the motor. The same would have to be done in this mode. So if you have the bungee-type launch configured and you change to this mode in flight it will cause your throttle to go to zero and you'll drop out of the sky.
That is a serious issue. Can't the takeoff waypoint just be ignored/skipped if the plane is in flight and the mission is reset?
Yup, it sure can and my PR fixes that. Problem is @tridge does not yet trust the "is_flying" flag enough for it to bypass all safety checks. The "is_flying" flag is a tricky one, how do you know FOR CERTAIN that you're flying?
On Sun, Sep 6, 2015 at 9:41 PM, SlipstreamFPV [email protected] wrote:
That is a serious issue. Can't the takeoff waypoint just be ignored/skipped if the plane is in flight and the mission is reset?
— Reply to this email directly or view it on GitHub https://github.com/diydrones/ardupilot/issues/2811#issuecomment-138185241 .
airspeed > min speed = flying?
airspeed is determined via pitot tube. What happens when you boot up and it needs calibration but until you do so it reads 10m/s. How about you're sitting on the ground pointed into a 10 m/s wind?
Take a look at how it is currently determined, I'd love to hear some new ideas you come up with. https://github.com/diydrones/ardupilot/blob/master/ArduPlane/is_flying.cpp
-TomP
On Sun, Sep 6, 2015 at 10:30 PM, SlipstreamFPV [email protected] wrote:
airspeed > min speed = flying?
— Reply to this email directly or view it on GitHub https://github.com/diydrones/ardupilot/issues/2811#issuecomment-138190456 .
I think I'm missing something why is this needed? Is it simply about having to create a flight plan with one waypoint?
I'm failing to see the difference between just leaving a takeoff waypoint and a whole flight mode? On Sep 7, 2015 10:53 AM, "Tom Pittenger" [email protected] wrote:
That would be a good thing for single-person hand launches.
On Sun, Sep 6, 2015 at 8:36 PM, SlipstreamFPV [email protected] wrote:
I've got a larger plane that is much easier to launch with 2 hands. It would be good if there was a dedicated "takeoff" flight mode that didn't need mission planning to use. One like the MFD autopilot has. My plane is well tuned and can run fully automatic missions takeoff to landing when planned but a launch mode that just had to be set like any other flight mode would be great. One that continues in the same direction you throw the plane. At the moment I have a switch to ramp up to takeoff throttle add elevator and put the plane in stabilise which works but not as well as auto takeoff in auto mode.
— Reply to this email directly or view it on GitHub https://github.com/diydrones/ardupilot/issues/2811.
— Reply to this email directly or view it on GitHub https://github.com/diydrones/ardupilot/issues/2811#issuecomment-138175023 .
....if you do not have a mission planner or any groundstation software running, then it is a very good thing. A lot of plane pilots fly just with OSD and without groundstation. I would appreciate this mode on most of my fixed wing drones, not only for the big ones. Even for my smallest 76cm wingspan fixed wing, it ist a cool feature to launch it automatically by "LAUNCH" mode, because twisty small planes are critical on launching for the first 2-3 seconds, when there is some wind.
Second point is - when you have already a mission planned for your flight, lets say one with a loop who starts again on Waypoint 1, you dont want to have the TAKEOFF waypoint in your mission.
And after takeoff, I usually first switch to FBWA, then to LOITER - just to see, if everything behaves as it should. THEN and not before I start my missions. Thats a security procedure to ensure to see your UAV again after a longer mission ;)
Best wishes, Severin
as discussed here https://github.com/diydrones/ardupilot/pull/2781 the same logic could be applied; "done_takeoff" = true after finished takeoff and "done_takeoff" = false before takeoff with reset on arming seems to be a pretty good solution. "done_takeoff" = true should be set automatically after reaching 20m above ground.
my comment why 20m above ground; I fly APM 2.6, 3.1 and pixhawk fixedwing drones in sizes from 500g to 9kg. I recognized jumps up to 10m on baro due to turbulences or what ever it was (not calm weather). So it would be a bad thing, if the "done_takeoff" = true would be reached due to barometric pressure sensor disturbances. Therefore I reccomend 20m or even 30m.
Second thing is; for a fixed wing - 20 to 30m above ground after takeoff is not a lot of space between aircraft and ground (unlike copter). I would say 20m is the minimum height who as to be climbed to be in a safe distance above ground. For me 30m would even fit perfect, but for small planes < 1m wingspan, this could be to high.
Is your pixhawk exposed to airflow or prop wash? I've never seen a jump greater then 3 meters (this is with airframes in the 5 to 3.6kg range). I agree though that anything below 60 meters feels low at this size. On Sep 7, 2015 10:18 PM, "Severin Leuenberger" [email protected] wrote:
my comment why 20m above ground; I fly APM 2.6, 3.1 and pixhawk fixedwing drones in sizes from 500g to 9kg. I recognized jumps up to 10m on baro due to turbulences or what ever it was (not calm weather). So it would be a bad thing, if the "done_takeoff" = true would be reached due to barometric pressure sensor disturbances. Therefore I reccomend 20m or even 30m.
Second thing is; for a fixed wing - 20 to 30m above ground after takeoff is not a lot of space between aircraft and ground (unlike copter). I would say 20m is the minimum height who as to be climbed to be in a safe distance above ground. For me 30m would even fit perfect, but for small planes < 1m wingspan, this could be to high.
— Reply to this email directly or view it on GitHub https://github.com/diydrones/ardupilot/issues/2811#issuecomment-138436669 .
The jump I recognized was in air with a little fixed wing (76cm wingspan) with APM 3.1 on loiter into some gusty winds. Some up and down could have been there, but I whatched in my OSD jumps from 10m up and 10m down. When I whatched the model circling in the air, this was NEVER more than 1-2m up and down. Therefore my trust in baro on gusty winds are not the best.
Even tough - I fly big gliders (RC-style) as well, and while thermaling, I trust my baro quite well. But as precaution measure, I would go for a value over 10m.
Any airflow over the baro would be bad as I'm sure you're aware. I only asked as I've helped someone who was having all sorts of problems due to external airflow over the baro. On Sep 7, 2015 10:46 PM, "Severin Leuenberger" [email protected] wrote:
The jump I recognized was in air with a little fixed wing (76cm wingspan) with APM 3.1 on loiter into some gusty winds. Some up and down could have been there, but I whatched in my OSD jumps from 10m up and 10m down. When I whatched the model circling in the air, this was NEVER more than 1-2m up and down. Therefore my trust in baro on gusty winds are not the best.
Even tough - I fly big gliders (RC-style) as well, and while thermaling, I trust my baro quite well. But as precaution measure, I would go for a value over 10m.
— Reply to this email directly or view it on GitHub https://github.com/diydrones/ardupilot/issues/2811#issuecomment-138440997 .
well I definitely agree that the 5m should be bumped up to at least 20m. I'm ok with 30m too. Also, don't forget that a baro exposed to direct sunlight can't be trusted.
...it definitely could be, that the shell of my little plane is not airtight enough, so there could be an airflow who create this bumps. But to have a secure measure for not well built fixed wings (maybe as my little one) it would be good to rise the security height to be achieved on a disturbance safe value.
Any progress on this? I'd be so handy to be able to do a 2 handed launch on some of my bigger planes. I don't see what the difference is between this and a proper auto mode auto takeoff. Just hoping to not have to program a mission everytime I want to do an automatic takeoff like currently.
Should be as simple as adding a flight mode that:
-Has the same pre-flight checks as Auto mode -Executes an auto takeoff maintaining the direction the plane is thrown -Continues on thrown heading and climbs to RTL alt -Once RTL alt is achieved then execute RTL -Remain circling overhead until mode change
This mode is not needed. You can simply do an auto mission that has a takeoff then an RTL, neither need a lat/long so it can be performed from any launch location without having to change the mission. On Oct 28, 2015 8:24 PM, "SlipstreamFPV" [email protected] wrote:
Any progress on this? I'd be so handy to be able to do a 2 handed launch on some of my bigger planes. I don't see what the difference is between this and a proper auto mode auto takeoff. Just hoping to not have to program a mission everytime I want to do an automatic takeoff like currently.
Should be as simple as adding a flight mode that:
-Has the same pre-flight checks as Auto mode -Executes an auto takeoff maintaining the direction the plane is thrown -Continues on thrown heading and climbs to RTL alt -Once RTL alt is achieved then execute RTL -Remain circling overhead until mode change
— Reply to this email directly or view it on GitHub https://github.com/diydrones/ardupilot/issues/2811#issuecomment-152063196 .
I still have trouble seeing the argument? So if you do a hypothetical auto launch mode and takeoff, once you've hit you're altitude, do you move into the mission or always go RTL? If you move into the mission then you need to know what's in the mission anyways and adding a takeoff waypoint there doesn't add any complexity that I can come up with.
What happens if you were going auto and you reengage auto launch? Do you restart the mission (if you had one?)
My concern is there look to be a large number of edge cases here for no added value over a normal AUTO launch... I'd like to move to close this.