Browse Source

Plane: removed resetting integrators on mode change

this removes the zero of roll, pitch and yaw integrator on mode
change, now only doing the steering integrator.

The zeroing was from the early days when our controllers were not as
good. It should not be needed any more.
mission-4.1.18
Andrew Tridgell 8 years ago
parent
commit
3dcf4cfb55
  1. 5
      ArduPlane/system.cpp

5
ArduPlane/system.cpp

@ -497,10 +497,7 @@ void Plane::set_mode(enum FlightMode mode, mode_reason_t reason) @@ -497,10 +497,7 @@ void Plane::set_mode(enum FlightMode mode, mode_reason_t reason)
if (should_log(MASK_LOG_MODE))
DataFlash.Log_Write_Mode(control_mode);
// reset attitude integrators on mode change
rollController.reset_I();
pitchController.reset_I();
yawController.reset_I();
// reset steering integrator on mode change
steerController.reset_I();
}

Loading…
Cancel
Save