Skip to content

Commit

Permalink
Plane: Reset TECS along with other controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
Georacer committed Aug 13, 2024
1 parent c854830 commit 65dc003
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ArduPlane/mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ void Mode::reset_controllers()
// reset steering controls
plane.steer_state.locked_course = false;
plane.steer_state.locked_course_err = 0;

// reset TECS
plane.TECS_controller.reset();
}

bool Mode::is_taking_off() const
Expand Down
2 changes: 1 addition & 1 deletion ArduPlane/mode.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Mode
// returns true if the vehicle can be armed in this mode
bool pre_arm_checks(size_t buflen, char *buffer) const;

// Reset rate and steering controllers
// Reset rate and steering and TECS controllers
void reset_controllers();

//
Expand Down

0 comments on commit 65dc003

Please sign in to comment.