From 966cacf90662770ee627fa6f4f7ee8cdd5d01975 Mon Sep 17 00:00:00 2001 From: "tridge60@gmail.com" Date: Mon, 21 Mar 2011 07:30:32 +0000 Subject: [PATCH] tridge: report mode switch changes git-svn-id: https://arducopter.googlecode.com/svn/trunk@1801 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- ArduCopterMega/control_modes.pde | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ArduCopterMega/control_modes.pde b/ArduCopterMega/control_modes.pde index 68e2ddcc88..d0240c2fb0 100644 --- a/ArduCopterMega/control_modes.pde +++ b/ArduCopterMega/control_modes.pde @@ -6,12 +6,14 @@ void read_control_switch() //motor_armed = (switchPosition < 5); if (oldSwitchPosition != switchPosition){ - set_mode(g.flight_modes[switchPosition]); oldSwitchPosition = switchPosition; prev_WP = current_loc; + Serial.print("Changed to flight mode: "); + Serial.println(flight_mode_strings[g.flight_modes[switchPosition]]); + // reset navigation integrators // ------------------------- reset_I();