Stick Verbose Functions : Edit other FlightTasks using checkAndUpdateStickInputs() functions and correct Throttle returned value inverse issue

This commit is contained in:
Junwoo Hwang
2022-03-11 11:42:01 +01:00
committed by Matthias Grob
parent 8266a4df98
commit f78465428c
3 changed files with 3 additions and 3 deletions
@@ -245,7 +245,7 @@ void FlightTaskAuto::_prepareLandSetpoints()
}
// User input assisted landing
if (_param_mpc_land_rc_help.get() && _sticks.checkAndSetStickInputs()) {
if (_param_mpc_land_rc_help.get() && _sticks.checkAndUpdateStickInputs()) {
// Stick full up -1 -> stop, stick full down 1 -> double the speed
vertical_speed *= (1 + _sticks.getPositionExpo()(2));