px4iofirmware: Indicate with a comment that band limiting happens in pwm_limit() call

This commit is contained in:
Lorenz Meier 2014-05-23 20:23:33 +02:00
parent 542cc7d7fb
commit 0ea3e95422
1 changed files with 1 additions and 0 deletions

View File

@ -213,6 +213,7 @@ mixer_tick(void)
mixed = mixer_group.mix(&outputs[0], PX4IO_SERVO_COUNT); mixed = mixer_group.mix(&outputs[0], PX4IO_SERVO_COUNT);
in_mixer = false; in_mixer = false;
/* the pwm limit call takes care of out of band errors */
pwm_limit_calc(should_arm, mixed, r_page_servo_disarmed, r_page_servo_control_min, r_page_servo_control_max, outputs, r_page_servos, &pwm_limit); pwm_limit_calc(should_arm, mixed, r_page_servo_disarmed, r_page_servo_control_min, r_page_servo_control_max, outputs, r_page_servos, &pwm_limit);
for (unsigned i = mixed; i < PX4IO_SERVO_COUNT; i++) for (unsigned i = mixed; i < PX4IO_SERVO_COUNT; i++)