mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:38:52 +08:00
RTL/Land: set gimbal to neutral to reduce change of damage
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -65,6 +65,12 @@ Land::on_activation()
|
|||||||
|
|
||||||
// reset cruising speed to default
|
// reset cruising speed to default
|
||||||
_navigator->reset_cruising_speed();
|
_navigator->reset_cruising_speed();
|
||||||
|
|
||||||
|
// set gimbal to neutral position (level with horizon) to reduce change of damage on landing
|
||||||
|
_navigator->acquire_gimbal_control();
|
||||||
|
_navigator->set_gimbal_neutral();
|
||||||
|
_navigator->release_gimbal_control();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -256,6 +256,11 @@ void RTL::on_activation()
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set gimbal to neutral position (level with horizon) to reduce change of damage on landing
|
||||||
|
_navigator->acquire_gimbal_control();
|
||||||
|
_navigator->set_gimbal_neutral();
|
||||||
|
_navigator->release_gimbal_control();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RTL::on_active()
|
void RTL::on_active()
|
||||||
|
|||||||
Reference in New Issue
Block a user