From 05024cc06c9c984f9ff75de69d9d0005255461af Mon Sep 17 00:00:00 2001 From: Jason Short Date: Sat, 18 Feb 2012 21:13:28 -0800 Subject: [PATCH] Change 800 to a define --- ArduCopter/motors_octa.pde | 2 +- ArduCopter/motors_octa_quad.pde | 2 +- ArduCopter/motors_quad.pde | 2 +- ArduCopter/motors_tri.pde | 2 +- ArduCopter/motors_y6.pde | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ArduCopter/motors_octa.pde b/ArduCopter/motors_octa.pde index 402d60da46..475c0a6768 100644 --- a/ArduCopter/motors_octa.pde +++ b/ArduCopter/motors_octa.pde @@ -29,7 +29,7 @@ static void output_motors_armed() int out_max = g.rc_3.radio_max; // Throttle is 0 to 1000 only - g.rc_3.servo_out = constrain(g.rc_3.servo_out, 0, 800); + g.rc_3.servo_out = constrain(g.rc_3.servo_out, 0, MAXIMUM_THROTTLE); if(g.rc_3.servo_out > 0) out_min = g.rc_3.radio_min + MINIMUM_THROTTLE; diff --git a/ArduCopter/motors_octa_quad.pde b/ArduCopter/motors_octa_quad.pde index b8566f7f8e..0d22507c66 100644 --- a/ArduCopter/motors_octa_quad.pde +++ b/ArduCopter/motors_octa_quad.pde @@ -29,7 +29,7 @@ static void output_motors_armed() int out_max = g.rc_3.radio_max; // Throttle is 0 to 1000 only - g.rc_3.servo_out = constrain(g.rc_3.servo_out, 0, 800); + g.rc_3.servo_out = constrain(g.rc_3.servo_out, 0, MAXIMUM_THROTTLE); if(g.rc_3.servo_out > 0) out_min = g.rc_3.radio_min + MINIMUM_THROTTLE; diff --git a/ArduCopter/motors_quad.pde b/ArduCopter/motors_quad.pde index eb29581ea3..418da33d6b 100644 --- a/ArduCopter/motors_quad.pde +++ b/ArduCopter/motors_quad.pde @@ -24,7 +24,7 @@ static void output_motors_armed() int out_max = g.rc_3.radio_max; // Throttle is 0 to 1000 only - g.rc_3.servo_out = constrain(g.rc_3.servo_out, 0, 800); + g.rc_3.servo_out = constrain(g.rc_3.servo_out, 0, MAXIMUM_THROTTLE); if(g.rc_3.servo_out > 0) out_min = g.rc_3.radio_min + MINIMUM_THROTTLE; diff --git a/ArduCopter/motors_tri.pde b/ArduCopter/motors_tri.pde index 037ea1dc4f..b34fda09b5 100644 --- a/ArduCopter/motors_tri.pde +++ b/ArduCopter/motors_tri.pde @@ -23,7 +23,7 @@ static void output_motors_armed() int out_max = g.rc_3.radio_max; // Throttle is 0 to 1000 only - g.rc_3.servo_out = constrain(g.rc_3.servo_out, 0, 800); + g.rc_3.servo_out = constrain(g.rc_3.servo_out, 0, MAXIMUM_THROTTLE); if(g.rc_3.servo_out > 0) out_min = g.rc_3.radio_min + MINIMUM_THROTTLE; diff --git a/ArduCopter/motors_y6.pde b/ArduCopter/motors_y6.pde index c18c854fad..1c91b1fa70 100644 --- a/ArduCopter/motors_y6.pde +++ b/ArduCopter/motors_y6.pde @@ -28,7 +28,7 @@ static void output_motors_armed() int out_max = g.rc_3.radio_max; // Throttle is 0 to 1000 only - g.rc_3.servo_out = constrain(g.rc_3.servo_out, 0, 800); + g.rc_3.servo_out = constrain(g.rc_3.servo_out, 0, MAXIMUM_THROTTLE); if(g.rc_3.servo_out > 0) out_min = g.rc_3.radio_min + MINIMUM_THROTTLE;