ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Arduplane: Add Throttle Threshold to Auto-Takeoff

Open KeyDiver opened this issue 13 years ago • 5 comments

Currently, auto-takeoff sets the throttle to takeoff power as soon as AUTO mode is engaged and the first waypoint is a TAKEOFF command. This can cause problems when using a catapult/bungee system where the launcher is needed to achieve minimum flying speed. This problem would be solved by adding a speed threshold parameter to the TAKEOFF command. This proposed parameter would set the desired speed that would have to be achieved before engaging the throttle. This could also be the "heading lock" speed, or that could be a separate parameter if desirable.

KeyDiver avatar Feb 09 '13 14:02 KeyDiver

A proposed fix is added in Pull Request #82. Note that the implementation is slightly different from the request: a new parameter is needed to be added to the param file with a minimum airspeed set, rather than sending the value in a takeoff command. While perhaps not ideal from some perspectives the outcome is the same and reduces the number of code changes.

mikew99 avatar Feb 10 '13 02:02 mikew99

Thanks for the patch Mike, see my comments on the patch for a couple of minor things that I'd like done before merging

tridge avatar Feb 11 '13 03:02 tridge

@tridge In your code which has trigger based on minimum X acceleration (0a385cc0ffc2b8d86444452609add40bca313697) a good configuration for a bungee/catapult could be this:

TKOFF_THR_MINACC = 20 m/s/s (dependent on the catapult) TKOFF_THR_MINSPD = 0 m/s (since we want the plane to start takeoff as soon as it gets out of the catapult and not be dependent on the GPS Ground Speed)

Right?

arthurbenemann avatar Mar 09 '13 23:03 arthurbenemann

But back to the topic of this issue:

Implementing some sort of armed to takeoff indication would be great, like blinking all Leds rapidly. The throttle channel could control this function, if it's under 1500 it's unlocked and over 1500 it goes to the auto_takeoff_check() function.

arthurbenemann avatar Mar 09 '13 23:03 arthurbenemann

Hi Arthur, I think if you want an arming mechanism then just using the flight mode switch to switch from MANUAL to AUTO when you are ready to takeoff. What sort of situation do you think we need the throttle trigger as well? Cheers, Tridge

tridge avatar Apr 02 '13 04:04 tridge