Browse Source

make format

sbg
Dennis Mannhart 7 years ago committed by Lorenz Meier
parent
commit
cfa412b55f
  1. 2
      src/lib/FlightTasks/tasks/FlightTaskManualPosition.cpp
  2. 1
      src/lib/FlightTasks/tasks/FlightTaskManualStabilized.cpp

2
src/lib/FlightTasks/tasks/FlightTaskManualPosition.cpp

@ -115,7 +115,7 @@ void FlightTaskManualPosition::_updateXYlock() @@ -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;

1
src/lib/FlightTasks/tasks/FlightTaskManualStabilized.cpp

@ -83,6 +83,7 @@ void FlightTaskManualStabilized::_updateHeadingSetpoints() @@ -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) {

Loading…
Cancel
Save