Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plane: Reset TECS along with the rest of the controllers #27827

Merged
merged 1 commit into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ArduPlane/mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,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 @@ -81,7 +81,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
Loading