I've got a JR XP7202 which is a 7 channel 72MHz Tx.

On the 'copter, I've got a JR 790.  They talk using sPCM.

 

Works great in the CLI, but not in "flight" mode (whatever non-CLI mode is).

I've found a method/function call (APM_RC::GetState() ) which never seems to go non-zero with the FM setup.

So the call

if (APM_RC.GetState() == 1)

is never true.

 

Is this something I need to "tweak", or am I barking up the wrong tree here?

 

Views: 84

Reply to This

Replies to This Discussion

If your Rx puts out standard PWM it should work. Can you post the output of your radio test in the CLI?

I added the following code to the CLI - which dumps each radio channel in turn.

The outputs displayed for each varied between about 1000 and 1800 as I moved the appropriate controls on the Tx. Everything is put away now, so I don't have the active log. Sorry.

Note that this never gates on the GetState() call. Indeed, every time I call GetState() here, it is zero.

My next step (which will be tomorrow night; work is the curse of the amateur helicopterist) is to add code to either the CLI to call GetState or to the mainline to see whether it ever goes non-zero.


void dumpRC() {
SerPrln("Display channels in turn. Press Enter to move to next one");
/*
* Go through channels in order:
* throttle, rudder, aileron, elevator, gear and Aux2
*/
dumpSingleRC(CH_THROTTLE, "Throttle :");
dumpSingleRC(CH_ROLL, "Roll :");
dumpSingleRC(CH_PITCH, "Pitch: ");
dumpSingleRC(CH_RUDDER, "Rudder :");
dumpSingleRC(CH_5, "Gear: ");
dumpSingleRC(CH_6, "AUX 2:");
}

void dumpSingleRC(int channel, char * prompt) {
    int setting;
    int frame;
    SerFlu();
    while (1) {
      setting = APM_RC.InputCh(channel);
      frame = APM_RC.GetState();
      SerPri(frame); SerPri(" ");
      SerPri(prompt);
      SerPrln(setting);
      delay(100);
      if(SerAva() > 0){
          break;
          }
      }
    }

 

When in FLY-mode is the PPM Light on on the APM?  I just switched over to spektrum and Turnigy radios from the Jr 8303 8ch FM.  I used the  Jr 790 with my Trex 450 heli.  The 790 doesn't have a crystal right? just a little button?  I had a tough time setting mine up with my Tx radio.  Try another reciever first.    

Yeah, the 790 is synthesized.  

I will check the PPM light tomorrow night.

Check the light on the reciever as well.

In Fly mode.

 

PPM light is flashing.

Green LED is solid

Red LED is off (no GPS lock, but the LED on the GPS is solid blue)

 

Jr790 blue LED is on.

 

No response on copter to throttle inputs on transmitter.

 

 

I have used same JR radio & Rx for testing & flying for last 2 years, It will work fine, but I don't use ArduCopter-NG it should use same RC library files too. Check your radio setup, do you use throttle cut? It could be causing issues. I have a good setup for fixed wings with all bells a whistles, but not for ArduCopter  Is Fail Safe set up correctly?

Making progress here.

 

It's not the radio.  Sorry, chaps.  I found a radio diagnostic and ran it, which worked fine.

 

By adding various print statements, I see that what happens is that the main loop starts, reads the radio, reads the GPS and loops a few times (14 to 20) before stopping printing.

 

So I think that something isn't working right (either because my hardware skills are poor -or- I've misconfigured something in the header file).  Somewhere there's a bit of code that thinks it is waiting for a device to come ready ...

 

Time to start turning off things and seeing where I am going awry.

Got it. 

if I undefine the Magnetometer, then I'm looping successfully.   Now to go figure out what's what.

 


RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service