sakuraclamp / arducopter

Automatically exported from code.google.com/p/arducopter
0 stars 0 forks source link

camera_stabilization cause coarse RC signal #424

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. In stabilize mode, slowly move the RC transmitter stick.
2. The servos usually move in coarse step. Especially in Heli Swash servos.
3. comment the camera_stabilization() function in fifty_hz_loop(), repeat 
previous steps. The servos move much more smoothly.

I have checked the camera_stabilization() code. It is caused by this code:

   g.rc_camera_pitch.set_pwm(APM_RC.InputCh(CH_6));

I guess the APM_RC.InputCh(CH_6) cause an interference to the PPM capture 
interrupt. I suggest changing it to g.rc6.radio_in, since CH 1-8 have already 
been read in the fast_loop().

Original issue reported on code.google.com by hazy...@gmail.com on 3 Jun 2012 at 2:00

GoogleCodeExporter commented 8 years ago
nice. Putting into trunk now.
Jason

Original comment by jasonshort on 3 Jun 2012 at 6:10