ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

ArduPilot 2.5 PPM Firmware may need update for DX8 users

Open dspanogle opened this issue 13 years ago • 2 comments

The PPM firmware in 32U2 shipped with the APM 2.5 does not correctly decode the PWM signals from a Specktrum DX8 and AR8000 receiver in the following situation (and perhaps other situations and with other radios)! This is important because that is the radio sold by 3DR!

To demonstrate the issue:

  • Use Arducopter version 2.9.1b and earlier. (Not related to problem but demonstrates it)
  • Use the Spectrum AR8000 receiver All 8 PCMs connected to APM. (This receiver is used by a lot of Arducopter fliers. other 8 channel + receivers may cause the issue)
  • Set the DX8 to a frame rate of 22ms when binding the receiver to the DX8 Note: The receiver boots in 22 ms mode prior to binding so the issue also occurs if the APM is booted without the DX8 transmitter turned on - regardless of the frame rate during binding.
  • Configure channel 7 for RTL.
  • Configure mode 1 to stabilize in configuration.
  • power tjhe APM through USB and connect to Mission Planner Flight Data view
  • Select stabilize mode with channel 5.
  • leave channel 7 normal (NOT RTL)
  • randomly (about every two to three minutes) the mode will switch to RTL then back to stabilize.
  • Seems channel 7 is changing to RTL randomly for a short time.
  • There may be other 'glitches' in other channels I have not noticed.

My investigation indicates this is caused by improper decoding of the PCM signals by the PPM decoder - producing a short period of time when channel 7 (in the PPM output) goes to the high PW (RTL) value. The PCM input for channel 7 does not change. This has been verified with a storage oscilloscope. It is my thinking that the interrupt routines are getting a race condition because this particular receiver (and perhaps others) output some of the PCM signals at the same time (they overlap in time).

If the Specktrum receiver is bound using an 11ms frame rate, the overlaps of the PCM signals from the receiver are different and this issue does NOT occur. This would seem to indicate my thinking is correct. There may be other 'glitches' I have not noticed.

Work around:

  • When using a DX* and the AR8000 receiver, always bind the receiver using an 11 ms frame rate. This may not prevent other channel glitches.
  • Perhaps do not connect PCM channel 8 (this has not been verified)
  • Somewhere in the documentation, document this issue.

Permanent solution:

  • Update the ArduPPM_v2.2.68_ATMega32U2. firmware (shipped with the APM 2.5) to version ArduPPM_v2.3.16_ATMega32U2

I have done the firmware update and the issue cannot be reproduced. (Solid mode for 1 hour, no change with the DX8 bound in 22 ms or 11 ms, with the transmitter on or off)

dspanogle avatar Jun 20 '13 22:06 dspanogle

The APM 2.5 has been shipping with the ArduPPM_v2.3.16_ATMega32U2 since 04MAR2013. Your's must have been shipped prior that date and you have not updated your firmware until now. Please refer to this post on the DIY Drones site. http://www.diydrones.com/profiles/blogs/new-arduppm-firmware-version-2-3-16-in-the-downloads-section

CraigElder avatar Jun 20 '13 23:06 CraigElder

You are correct, I had an earlier model. Did not know of the update on shipping models. Onward and Upward

dspanogle avatar Jun 21 '13 00:06 dspanogle