mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 03:30:35 +08:00
Update src/modules/flight_mode_manager/tasks/Orbit/FlightTaskOrbit.cpp
Co-authored-by: Mathieu Bresciani <brescianimathieu@gmail.com>
This commit is contained in:
committed by
Matthias Grob
parent
9bd46be124
commit
0d0b87e193
@@ -223,7 +223,7 @@ bool FlightTaskOrbit::update()
|
||||
_velocity_setpoint(2) = _altitude_velocity_smoothing.getCurrentVelocity();
|
||||
_acceleration_setpoint(2) = _altitude_velocity_smoothing.getCurrentAcceleration();
|
||||
// set orbit altitude center to expected new altitude
|
||||
_center(2) = _position(2) + _deltatime * _velocity_setpoint(2);
|
||||
_center(2) = _altitude_velocity_smoothing.getCurrentPosition();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user