From d36ee786e465c312b94a264a6f963f595b5350c8 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Tue, 8 Sep 2015 01:06:19 -0700 Subject: [PATCH] Plane: init hold_course in do_takeoff --- ArduPlane/commands_logic.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ArduPlane/commands_logic.cpp b/ArduPlane/commands_logic.cpp index 58b6fa1a14..cad18cffe8 100644 --- a/ArduPlane/commands_logic.cpp +++ b/ArduPlane/commands_logic.cpp @@ -329,6 +329,7 @@ void Plane::do_takeoff(const AP_Mission::Mission_Command& cmd) // zero locked course steer_state.locked_course_err = 0; + steer_state.hold_course_cd = -1; } void Plane::do_nav_wp(const AP_Mission::Mission_Command& cmd)