mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 10:03:34 +08:00
FlightTaskManualAlt/Pos: add deadzone fox xy/z
This commit is contained in:
committed by
Beat Küng
parent
ec4089cebf
commit
f1b3010c70
@@ -92,7 +92,7 @@ void FlightTaskManualAltitude::updateHeadingSetpoints()
|
||||
|
||||
void FlightTaskManualAltitude::updateZsetpoints()
|
||||
{
|
||||
if (fabsf(_sticks(2)) < FLT_EPSILON) {
|
||||
if (fabsf(_sticks(2)) < _stick_deadzone.get()) {
|
||||
|
||||
/* Want to hold altitude */
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ void FlightTaskManualPosition::updateXYsetpoints()
|
||||
{
|
||||
matrix::Vector2f stick_xy(_sticks_expo(0), _sticks_expo(1));
|
||||
|
||||
if (stick_xy.length() < FLT_EPSILON) {
|
||||
if (stick_xy.length() < _stick_deadzone.get()) {
|
||||
|
||||
/* Want to hold position */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user