ACM: use g.rc_speed for all APM_RC.SetFastOutputChannels calls

This commit is contained in:
Andrew Tridgell 2012-03-02 17:25:07 +11:00
parent 0fc646d666
commit 0ff44563ec
7 changed files with 13 additions and 8 deletions

View File

@ -218,7 +218,7 @@ static void heli_move_swash(int roll_out, int pitch_out, int coll_out, int yaw_o
static void init_motors_out()
{
#if INSTANT_PWM == 0
APM_RC.SetFastOutputChannels( _BV(CH_1) | _BV(CH_2) | _BV(CH_3) | _BV(CH_4) );
APM_RC.SetFastOutputChannels( _BV(CH_1) | _BV(CH_2) | _BV(CH_3) | _BV(CH_4), g.rc_speed );
#endif
}

View File

@ -6,7 +6,7 @@ static void init_motors_out()
{
#if INSTANT_PWM == 0
APM_RC.SetFastOutputChannels(_BV(MOT_1) | _BV(MOT_2) | _BV(MOT_3) | _BV(MOT_4)
| _BV(MOT_5) | _BV(MOT_6));
| _BV(MOT_5) | _BV(MOT_6), g.rc_speed);
#endif
}
@ -238,4 +238,4 @@ static void output_motor_test()
APM_RC.OutputCh(MOT_6, motor_out[MOT_6]);
}
#endif
#endif

View File

@ -6,7 +6,8 @@ static void init_motors_out()
{
#if INSTANT_PWM == 0
APM_RC.SetFastOutputChannels(_BV(MOT_1) | _BV(MOT_2) | _BV(MOT_3) | _BV(MOT_4)
| _BV(MOT_5) | _BV(MOT_6) | _BV(MOT_7) | _BV(MOT_8));
| _BV(MOT_5) | _BV(MOT_6) | _BV(MOT_7) | _BV(MOT_8),
g.rc_speed);
#endif
}

View File

@ -6,7 +6,8 @@ static void init_motors_out()
{
#if INSTANT_PWM == 0
APM_RC.SetFastOutputChannels(_BV(MOT_1) | _BV(MOT_2) | _BV(MOT_3) | _BV(MOT_4)
| _BV(MOT_5) | _BV(MOT_6) | _BV(MOT_7) | _BV(MOT_8));
| _BV(MOT_5) | _BV(MOT_6) | _BV(MOT_7) | _BV(MOT_8),
g.rc_speed);
#endif
}

View File

@ -5,7 +5,8 @@
static void init_motors_out()
{
#if INSTANT_PWM == 0
APM_RC.SetFastOutputChannels(_BV(MOT_1) | _BV(MOT_2) | _BV(MOT_3) | _BV(MOT_4));
APM_RC.SetFastOutputChannels(_BV(MOT_1) | _BV(MOT_2) | _BV(MOT_3) | _BV(MOT_4),
g.rc_speed);
#endif
}

View File

@ -4,7 +4,8 @@
static void init_motors_out()
{
#if INSTANT_PWM == 0
APM_RC.SetFastOutputChannels(_BV(MOT_1) | _BV(MOT_2) | _BV(MOT_4));
APM_RC.SetFastOutputChannels(_BV(MOT_1) | _BV(MOT_2) | _BV(MOT_4),
g.rc_speed);
#endif
}

View File

@ -8,7 +8,8 @@ static void init_motors_out()
{
#if INSTANT_PWM == 0
APM_RC.SetFastOutputChannels(_BV(MOT_1) | _BV(MOT_2) | _BV(MOT_3) | _BV(MOT_4)
| _BV(MOT_5) | _BV(MOT_6));
| _BV(MOT_5) | _BV(MOT_6),
g.rc_speed);
#endif
}