Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plane: implement manual forward throttle for QACRO, QSTABILIZE and QHOVER #11763

Closed
wants to merge 4 commits into from

Conversation

kd0aij
Copy link
Contributor

@kd0aij kd0aij commented Jul 9, 2019

1 new parameter: Q_FWD_THR_MAX and a new RCx_OPTION: FWD_THR
If FWD_THR is set for an RC channel, enables manual forward throttle control via that channel
Manual throttle ranges from zero to Q_FWD_THR_MAX with 1 being full throttle.

also adds rudder control from stick input for QACRO mode

replaces #11548

Question: should there be a flight mode in which forward throttle is somehow mixed in from throttle or pitch stick instead of using a separate channel? The stock Convergence has a mode in which the pitch stick controls only forward tilt, but this means altitude is controlled only by throttle, with pitch held near zero. The result is sluggish control of altitude.
Suggestion from @Hwurzburg : mix in forward tilt from throttle when throttle stick is above hover thrust

@kd0aij
Copy link
Contributor Author

kd0aij commented Jul 11, 2019

Flight test with Convergence tiltrotor, pitch up to hold zero airspeed while increasing forward throttle.
At low airspeed, there is a limit beyond which roll control is degraded:
fwd_thr_limit

This was with Q_FWD_THR_MAX = 0.3, and control stability may be dependent on other parameters also, such as Q_TILT_YAW_ANGLE and Q_TILT_MAX.

@kd0aij
Copy link
Contributor Author

kd0aij commented Aug 15, 2019

Flight tested on E-Flite Convergence and mini-Convergence.

forward throttle and QACRO rudder control tested in SITL with RF8 BigStik Quadplane

@kd0aij
Copy link
Contributor Author

kd0aij commented Sep 14, 2019

rebased on master

@kd0aij
Copy link
Contributor Author

kd0aij commented Sep 20, 2019

takeoff and landing in QHOVER mode with 20 mph wind, using forward throttle to compensate for wind.
Wind was mostly from the south and heading was into the wind.
Flight controller was Mateksys F405-Wing
T L_in_wind
log: https://drive.google.com/open?id=1IAXQmc2P-yYxSABpMEG1zlIbX63Nqwnu

@kd0aij
Copy link
Contributor Author

kd0aij commented Sep 27, 2019

force-pushed a whitespace fix

@kd0aij
Copy link
Contributor Author

kd0aij commented Oct 13, 2019

@IamPete1 I think you reviewed an earlier version of this PR. This one is cleaned up a bit, and I just added a new commit to allow testing the forward throttle and vectored yaw tilt functions while disarmed. The fact that they didn't work while disarmed caused a new user quite a bit of frustration.

@kd0aij
Copy link
Contributor Author

kd0aij commented Oct 14, 2019

ArduPlane/quadplane.cpp Outdated Show resolved Hide resolved
ArduPlane/quadplane.cpp Outdated Show resolved Hide resolved
ArduPlane/tiltrotor.cpp Show resolved Hide resolved
ArduPlane/quadplane.cpp Outdated Show resolved Hide resolved
@kd0aij
Copy link
Contributor Author

kd0aij commented Nov 16, 2019

rebased and added new parameter Q_FWD_THR_MIX which adds in forward throttle when above hover thrust
added throttle is in addition to the demand from rc_fwd_thr_ch

restrict throttle_curve example to SITL builds
…OVER

scale manual throttle to Q_FWD_THR_MAX
add rudder control for QACRO: route copter controller yaw output to plane rudder output
allow forward/yaw motor tilt when disarmed
change param FWD_THR_CH to an RC option
add parameter Q_FWD_THR_MIX
mix in forward throttle proportional to (throttle - hover throttle)
fix rebase error
@kd0aij
Copy link
Contributor Author

kd0aij commented Jun 4, 2020

replaced by #14520

@kd0aij kd0aij closed this Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants