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:
parent
20ab9471fb
commit
6915a2c188
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user