Skip to content

Commit

Permalink
Plane: Enabled roll navigation in mode TAKEOFF during climb
Browse files Browse the repository at this point in the history
  • Loading branch information
Georacer committed Aug 8, 2024
1 parent 33e81d9 commit 9bf7812
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ArduPlane/ArduPlane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ void Plane::update_GPS_10Hz(void)
*/
void Plane::update_control_mode(void)
{
if (control_mode != &mode_auto) {
if ((control_mode != &mode_auto) && (control_mode != &mode_takeoff)) {
// hold_course is only used in takeoff and landing
steer_state.hold_course_cd = -1;
}
Expand Down
2 changes: 1 addition & 1 deletion ArduPlane/mode_takeoff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ void ModeTakeoff::update()
alt, dist, direction);
plane.takeoff_state.start_time_ms = millis();
takeoff_mode_setup = true;

plane.steer_state.hold_course_cd = wrap_360_cd(direction*100); // Necessary to allow Plane::takeoff_calc_roll() to function.
}
}
}
Expand Down

0 comments on commit 9bf7812

Please sign in to comment.