1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-28 06:24:10 +01:00

Revert "LP_620"

This reverts commit 20ab9471fb.

There is a cleaner way to apply a deadband for VR (the already existing "Assisted Control stick deadband")
This commit is contained in:
julian_lilov 2021-01-07 16:14:35 +02:00
parent 20ab9471fb
commit 6915a2c188

View File

@ -495,7 +495,7 @@ void plan_run_VelocityRoam()
cmd.Pitch = applyExpo(cmd.Pitch, stabSettings.StickExpo.Pitch);
cmd.Yaw = applyExpo(cmd.Yaw, stabSettings.StickExpo.Yaw);
bool flagRollPitchHasInput = (fabsf(cmd.Roll) > 0.05f || fabsf(cmd.Pitch) > 0.05f);
bool flagRollPitchHasInput = (fabsf(cmd.Roll) > 0.0f || fabsf(cmd.Pitch) > 0.0f);
if (!flagRollPitchHasInput) {
// no movement desired, re-enter positionHold at current start-position