From 9723e52a011ad6dca8eb2f7763067512f5570289 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Sun, 3 Jun 2012 11:12:38 -0700 Subject: [PATCH] using current PWM rather than a re-read of the PWM. --- ArduCopter/Camera.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/Camera.pde b/ArduCopter/Camera.pde index 36b3e16aa9..320c2b1163 100644 --- a/ArduCopter/Camera.pde +++ b/ArduCopter/Camera.pde @@ -22,7 +22,7 @@ camera_stabilization() // ----- // Allow user to control camera pitch with channel 6 (mixed with pitch DCM) if(g.radio_tuning == 0) { - g.rc_camera_pitch.set_pwm(APM_RC.InputCh(CH_6)); + g.rc_camera_pitch.set_pwm(g.rc_6.radio_in); g.rc_camera_pitch.servo_out = g.rc_camera_pitch.control_mix(ahrs.pitch_sensor); }else{ // unless channel 6 is already being used for tuning