mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 08:30:35 +08:00
make format
This commit is contained in:
committed by
Lorenz Meier
parent
afbeafebd8
commit
cfa412b55f
@@ -115,7 +115,7 @@ void FlightTaskManualPosition::_updateXYlock()
|
||||
// Position is locked but check if a reset event has happened.
|
||||
// We will shift the setpoints.
|
||||
if (_sub_vehicle_local_position->get().xy_reset_counter
|
||||
!= _reset_counter) {
|
||||
!= _reset_counter) {
|
||||
_position_setpoint(0) = _position(0);
|
||||
_position_setpoint(1) = _position(1);
|
||||
_reset_counter = _sub_vehicle_local_position->get().xy_reset_counter;
|
||||
|
||||
@@ -83,6 +83,7 @@ void FlightTaskManualStabilized::_updateHeadingSetpoints()
|
||||
// hold the current heading when no more rotation commanded
|
||||
if (!PX4_ISFINITE(_yaw_setpoint)) {
|
||||
_yaw_setpoint = _yaw;
|
||||
|
||||
} else {
|
||||
// check reset counter and update yaw setpoint if necessary
|
||||
if (_sub_attitude->get().quat_reset_counter != _heading_reset_counter) {
|
||||
|
||||
Reference in New Issue
Block a user