From 1d086c83f0f4f033ef8971c212bd9b9ab49df181 Mon Sep 17 00:00:00 2001 From: rmackay9 Date: Wed, 4 Apr 2012 23:03:21 +0900 Subject: [PATCH] ArduCopter - system.pde - changed references to "motor_armed" to "motors.armed()" as part of the move to use AP_Motors library. --- ArduCopter/system.pde | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ArduCopter/system.pde b/ArduCopter/system.pde index 273384606d..b252083d8b 100644 --- a/ArduCopter/system.pde +++ b/ArduCopter/system.pde @@ -190,8 +190,8 @@ static void init_ardupilot() #endif #if FRAME_CONFIG == HELI_FRAME - g.heli_servo_manual = false; - heli_init_swash(); // heli initialisation + motors.servo_manual = false; + motors.init_swash(); // heli initialisation #endif RC_Channel::set_apm_rc(&APM_RC); @@ -392,7 +392,7 @@ static void set_mode(byte mode) control_mode = constrain(control_mode, 0, NUM_MODES - 1); // used to stop fly_aways - motor_auto_armed = (g.rc_3.control_in > 0); + motors.auto_armed(g.rc_3.control_in > 0); // clearing value used in interactive alt hold manual_boost = 0; @@ -507,7 +507,7 @@ static void set_mode(byte mode) throttle_mode = THROTTLE_AUTO; // does not wait for us to be in high throttle, since the // Receiver will be outputting low throttle - motor_auto_armed = true; + motors.auto_armed(true); } // called to calculate gain for alt hold