Posted by Nigel Ross on September 10, 2009 at 3:46pm
I am in the early stages of testing my ardupilot 2.3 before flying.My Spektrum DX6i is a 2.4 GHz 6 channel RC. Channel 5 is only a 2 position switch, which I use as the toggle between manual & auto.I am trying to determine the correct setting for parameter 1-6 (RADIO_SWITCH_ACTION), since I would like auto mode to be Waypoint mode (mode 2).When I switch the running ardupilot from manual to auto, the red mux light comes on, but the mode led does not come on, independent of the values of 1-6 in the downloaded code...When I originally tested the board, I do have a record of this LED being on, but this is no longer the case.I would welcome the following help on 2 points:1. What is wrong, and is there any suggestion for why the led no lone=ger works? Is it possible to establish if the LED is broken, or something else is wrong?2. Is there another way to determine (on the ground) which mode (RTL or Waypoint) when the plane is set to auto mode?ThanksNigel
You need to be a member of diydrones to add comments!
I tuned my custom cont chnl pots in my Xmtr by watching the print out on the screen in ms.
pretty cool hea? Just modify the print lines and use the serial monitor to read the channel.
It's a must for trouble shouting. Download the aurduino compiler (17)and read the aurduino reference.
You will learn a little C +? as I have.
You won't have a cntl_in. I added that one.
You would also have to connect this channel to to the regular control pin for the leds to work.
Good luck.!
Config line 1-6 does not control whether that mode LED comes on. That's determined by the code running on the Attiny, which you can only modify if you have an AVR programmer.
If you only have a two-position switch, you have two options:
1) Program your TX to mix two channels to create a "middle position". So toggle 5 and toggle 6 down could be "middle" while both up are "up"
2) The mode and status LEDs tell you what mode the autopilot is in. What that means is determined by line 1-6:
Replies
The control ch5 will be plugged into the ail or ch 2 input to the board.
then just print that channel's variable, like this
Serial.print((int)refresh_rate);
Serial.print(", ch1: ");
Serial.print(ail_in);
Serial.print(", ch2: ");
Serial.print(elev_in);
Serial.print(", cntl_in:");
Serial.println(cntl_in);
Serial.println("");
/* elev_in = read_Ch2()*/
I tuned my custom cont chnl pots in my Xmtr by watching the print out on the screen in ms.
pretty cool hea? Just modify the print lines and use the serial monitor to read the channel.
It's a must for trouble shouting. Download the aurduino compiler (17)and read the aurduino reference.
You will learn a little C +? as I have.
You won't have a cntl_in. I added that one.
You would also have to connect this channel to to the regular control pin for the leds to work.
Good luck.!
If you have a Servo rbox, you can quickly determine if the CNTL channel is functioning correctly.
When the servo PW is <1.3 ms, both the MUX and MODE will be off.
Between ~1.3 ms and ~1.6 ms, both the MUX and MODE will be on.
Greater than ~1.6 ms, only the MUX will be on.
Hope this helps.
Regards,
TCIII
If you only have a two-position switch, you have two options:
1) Program your TX to mix two channels to create a "middle position". So toggle 5 and toggle 6 down could be "middle" while both up are "up"
2) The mode and status LEDs tell you what mode the autopilot is in. What that means is determined by line 1-6:
//1-6
#define RADIO_SWITCH_ACTION 0 // 0: TX Switch centered = waypoint mode & full = RTL mode. 1: TX Switch centered = RTL & full = waypoint mode.