Change 800 to a define

This commit is contained in:
Jason Short 2012-02-18 21:13:28 -08:00
parent 83ad721b73
commit 5d658e5743
5 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@ static void output_motors_armed()
int out_max = g.rc_3.radio_max; int out_max = g.rc_3.radio_max;
// Throttle is 0 to 1000 only // 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) if(g.rc_3.servo_out > 0)
out_min = g.rc_3.radio_min + MINIMUM_THROTTLE; out_min = g.rc_3.radio_min + MINIMUM_THROTTLE;

View File

@ -29,7 +29,7 @@ static void output_motors_armed()
int out_max = g.rc_3.radio_max; int out_max = g.rc_3.radio_max;
// Throttle is 0 to 1000 only // 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) if(g.rc_3.servo_out > 0)
out_min = g.rc_3.radio_min + MINIMUM_THROTTLE; out_min = g.rc_3.radio_min + MINIMUM_THROTTLE;

View File

@ -24,7 +24,7 @@ static void output_motors_armed()
int out_max = g.rc_3.radio_max; int out_max = g.rc_3.radio_max;
// Throttle is 0 to 1000 only // 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) if(g.rc_3.servo_out > 0)
out_min = g.rc_3.radio_min + MINIMUM_THROTTLE; out_min = g.rc_3.radio_min + MINIMUM_THROTTLE;

View File

@ -23,7 +23,7 @@ static void output_motors_armed()
int out_max = g.rc_3.radio_max; int out_max = g.rc_3.radio_max;
// Throttle is 0 to 1000 only // 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) if(g.rc_3.servo_out > 0)
out_min = g.rc_3.radio_min + MINIMUM_THROTTLE; out_min = g.rc_3.radio_min + MINIMUM_THROTTLE;

View File

@ -28,7 +28,7 @@ static void output_motors_armed()
int out_max = g.rc_3.radio_max; int out_max = g.rc_3.radio_max;
// Throttle is 0 to 1000 only // 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) if(g.rc_3.servo_out > 0)
out_min = g.rc_3.radio_min + MINIMUM_THROTTLE; out_min = g.rc_3.radio_min + MINIMUM_THROTTLE;