Added a comment about lower half of the array

This commit is contained in:
Amilcar Lucas 2011-09-10 23:58:25 +02:00
parent 93e13ace97
commit 5fc771f9d8
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ static void trim_radio()
// expects the changes to take effect instantly // expects the changes to take effect instantly
static void update_aux_servo_function() static void update_aux_servo_function()
{ {
// positions 0..3 of this array never get used, but this is a stack array, so the entire array gets freed at the end of the function
RC_Channel_aux::Aux_servo_function_t aux_servo_function[NUM_CHANNELS]; // the function of the aux. servos RC_Channel_aux::Aux_servo_function_t aux_servo_function[NUM_CHANNELS]; // the function of the aux. servos
aux_servo_function[CH_5] = (RC_Channel_aux::Aux_servo_function_t)g.rc_5.function.get(); aux_servo_function[CH_5] = (RC_Channel_aux::Aux_servo_function_t)g.rc_5.function.get();
aux_servo_function[CH_6] = (RC_Channel_aux::Aux_servo_function_t)g.rc_6.function.get(); aux_servo_function[CH_6] = (RC_Channel_aux::Aux_servo_function_t)g.rc_6.function.get();