Skip to content
Snippets Groups Projects
Commit 9362f844 authored by ChristophTobler's avatar ChristophTobler Committed by Lorenz Meier
Browse files

position control: fix failsafe thrust

invert direction to point upwards and increase to 70% of throttle range between min and hover
parent 7cc85885
No related branches found
No related tags found
No related merge requests found
......@@ -206,8 +206,8 @@ void PositionControl::_interfaceMapping()
// point the thrust upwards
_thr_sp(0) = _thr_sp(1) = 0.0f;
// throttle down such that vehicle goes down with
// 30% of throttle range between min and hover
_thr_sp(2) = MPC_THR_MIN.get() + (MPC_THR_HOVER.get() - MPC_THR_MIN.get()) * 0.3f;
// 70% of throttle range between min and hover
_thr_sp(2) = -(MPC_THR_MIN.get() + (MPC_THR_HOVER.get() - MPC_THR_MIN.get()) * 0.7f);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment