mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-15 02:17:34 +08:00
change land setpoint
This commit is contained in:
@@ -240,7 +240,9 @@ void FlightTaskAuto::_prepareLandSetpoints()
|
||||
}
|
||||
|
||||
// Update xy-position in case of landing position changes (etc. precision landing)
|
||||
_land_position = Vector3f(_target(0), _target(1), NAN);
|
||||
_position_setpoint(2) = NAN;
|
||||
_land_position = _position_setpoint;
|
||||
// _land_position = Vector3f(_target(0), _target(1), NAN);
|
||||
|
||||
// User input assisted landing
|
||||
if (_param_mpc_land_rc_help.get() && _sticks.checkAndUpdateStickInputs()) {
|
||||
|
||||
@@ -57,6 +57,8 @@ Loiter::on_inactive()
|
||||
void
|
||||
Loiter::on_activation()
|
||||
{
|
||||
PX4_INFO("Loiter::on_activation");
|
||||
|
||||
if (_navigator->get_reposition_triplet()->current.valid) {
|
||||
reposition();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user