MegaPirateNG / ardupilot-mpng

MegaPirateNG
GNU General Public License v3.0
117 stars 105 forks source link

No input on PPM sum with Frsky SBUS to PPM encoder on 3.0.1r3 #74

Open strips opened 10 years ago

strips commented 10 years ago

Using Spektrum DX7 TX and Orange DSM2 RX with SBUS out and an Frsky SBUS to CPPM encoder. All channels read 0 when configured for PPM. It works fine in Megapirateng 2.8r3.

Configuring for PWM works fine and non connected channels read 900.

Using HK My pro red board.

Regards Stian

SirAlex commented 10 years ago

How much PPM channels has this SBUS to CPPM converter? In order to work with MPNG, you must have exact 8 channels!

strips commented 10 years ago

The only reference for the number of channels the encoder supports is this: "SBUS to CPPM decoder have two frame width for option: for 21ms, it is 8 channels at most; for 28ms, it is 12 channels" from frsky forum: http://www.frsky-rc.com/BBS/viewtopic.php?f=4&t=131#p229

The DX7 TX is only 7 channel, the RX is only 6 channel but passes through all 7 channels on sbus. I was able to use all the 7 channels with PPM on 2.8r3.

secretman28 commented 10 years ago

try the Minima PPM receiver fixup it fix up my aurora 9 ch problem... same receiver..

strips commented 10 years ago

Tried the fix and tested several times with AVR_RC_INPUT_NUM_CHANNELS = 6 to 9.

I am thinking to get a friend of mine to check the output of the SBUS to PPM encoder with a scope. Du you know what I should look for regarding pulse / with and number of pulses.

secretman28 commented 10 years ago

You using a 7 channel you suppose to have 8 ch in mpng . but you using a ppm converter or a frysky recv?

Envoyé depuis un mobile Samsung

-------- Message d'origine --------
De : strips
Date :11/01/2014 05:22 (GMT-05:00)
À : MegaPirateNG/ardupilot-mpng
Cc : jp
Objet : Re: [ardupilot-mpng] No input on PPM sum with Frsky SBUS to PPM encoder on 3.0.1r3 (#74)

Tried the fix and tested several times with AVR_RC_INPUT_NUM_CHANNELS = 6 to 9.

I am thinking to get a friend of mine to check the output of the SBUS to PPM encoder with a scope. Du you know what I should look for regarding pulse / with and number of pulses.


Reply to this email directly or view it on GitHub: https://github.com/MegaPirateNG/ardupilot-mpng/issues/74#issuecomment-32092373

strips commented 10 years ago

As stated in first post. I use a Spektrum DX7 transmitter (7 channels). An Orange DSM2 reciever with 6 PWM outputs and an SBUS out giving you all the 7 channels from the transmitter.

To the SBUS output I connect a FRSKY SBUS to PPM dekoder/encoder. This re-coder supports max 8 or 12 channels (selectable with a jumper). I'm not sure if it always reports the max number (8) or only the 7 from SBUS. I do not know what the PPM-signal looks like.

secretman28 commented 10 years ago

Ok i dont know veri mutch on ThIS setup did you try 7 ch?

and wy you dont use only the spektrum satelite directly to your fc? ?? easyer less mess whit stuff

Envoyé depuis un mobile Samsung

-------- Message d'origine --------
De : strips
Date :11/01/2014 09:44 (GMT-05:00)
À : MegaPirateNG/ardupilot-mpng
Cc : jp
Objet : Re: [ardupilot-mpng] No input on PPM sum with Frsky SBUS to PPM encoder on 3.0.1r3 (#74)

As stated in first post. I use a Spektrum DX7 transmitter (7 channels). An Orange DSM2 reciever with 6 PWM outputs and an SBUS out giving you all the 7 channels from the transmitter.

To the SBUS output I connect a FRSKY SBUS to PPM dekoder/encoder. This re-coder supports max 8 or 12 channels (selectable with a jumper). I'm not sure if it always reports the max number (8) or only the 7 from SBUS. I do not know what the PPM-signal looks like.


Reply to this email directly or view it on GitHub: https://github.com/MegaPirateNG/ardupilot-mpng/issues/74#issuecomment-32097734

strips commented 10 years ago

The Hobbyking MW PRO red FC doesn't have a satellite in port. That would of course be preferable.

I'm gonna try 7 channels again. If not working I have to go back to 2.8r3 or switch over to PWM. I just think it's weird the 2.8r3 work fine with the same PPM-setup.

secretman28 commented 10 years ago

Try 8 in case the converter GivE An rssi signal like minima or frysky.

Envoyé depuis un mobile Samsung

-------- Message d'origine --------
De : strips
Date :11/01/2014 14:36 (GMT-05:00)
À : MegaPirateNG/ardupilot-mpng
Cc : jp
Objet : Re: [ardupilot-mpng] No input on PPM sum with Frsky SBUS to PPM encoder on 3.0.1r3 (#74)

The Hobbyking MW PRO red FC doesn't have a satellite in port. That would of course be preferable.

I'm gonna try 7 channels again. If not working I have to go back to 2.8r3 or switch over to PWM. I just think it's weird the 2.8r3 work fine with the same PPM-setup.


Reply to this email directly or view it on GitHub: https://github.com/MegaPirateNG/ardupilot-mpng/issues/74#issuecomment-32104822

strips commented 10 years ago

It is 8 channels default and that didn't work to begin with.

I made a video of testing with an oscilloscope. As I understand it looks like 8 channels/periods framed with negative pulses. It continues high and repeats again.

https://www.youtube.com/watch?v=GwsRZAX92zI&feature=youtube_gdata_player

Regards Stian

strips commented 10 years ago

How do I go about debugging the channel-counting? Is there a way to get debug/printing to serial out or in console? I do not mind messing about in the code. Though I don't know C but the basics looks ok.

I think the SBUS-PPM converter should work as its 8 channels.

kamphausen commented 10 years ago

It´s a missconfig in RCInput_MPNG.cpp... Set the #define MIN_PPM_SYNCHWIDTH 2500 and it should work...at least in R4 it´s set to 5000....which will never ever work....

Kamphausen

strips commented 10 years ago

Thanks. I will test this. I recently dismantled my MW pro but will connect and test MIN_PPM_SYNCHWIDTH 2500.