Ardupilot first flight - Easystar with Xbee and Telemetry - Having issue...

Ok, so the first flight went well. Stabilization mode works great, tested that 2nd. NE Test perfect. Then I takeoff and switch to enable autopilot, no crazy diving, plane turns east and then straightens out. And flys east. I try different entry angles, all it does is turn back east. I landed and read the waypoint file, all the waypoints look good. So whats going on, is the aircraft trying to return home, and not initializing the autopilot. ? Is the GPS somehow confused as to compass heading ? I have only a 2 switch setup, so I am not using a 3 switch setup. I did not modify the code at all so its default. Any ideas why its doing this, I do not have the ne code test enabled anymore, i checked that right away assuming it did not write the update to turn it off. Any help much appreciated..

Views: 77

Reply to This

Replies to This Discussion

So you set #define FAKE_BEARING back to 0?

With a two-position switch, "on" is RTL, so waypoints are ignored unless you've changed the settings. Are you doing the proper field setup with the jumper to reset "home"?
Thanks chris for the quick reply. Fake Bearing is back to 0, I jumper bind at the launch location, so if the switch were on in RTL mode then why isn't it coming back to me, instead its flying away from my RTL launch point to the east. Is there something wrong with my initial settings for the GPS. Funny thing is, if the plane turned 180 it would be coming right back to my RTL. Is it possible there is something wrong with my initial settings.
How would i change a 2 switch to have off = up and down = waypoint???
#define RADIO_SWITCH_ACTION 0 // 0: TX Switch centered = waypoint mode & full = RTL mode. 1: TX Switch centered = RTL & full = waypoint mode.
So, with a 2 position switch if I change to 1 will up = off and down = waypoint ? sorry if this seems like a dumb question, but the above states 0 = centered = waypoint and full = RTL. So my assumption is this is for a 3 position switch. Am I right ?
With a two-position switch the middle setting is ignored. So if you want "on" to be waypoint mode you'd set that to 1
Just checking: after you changed the Fake Bearing back to 0 and saved the file, you compiled and reloaded the code to the board again?
yes....compile via verify correct ? then upload via IO...
Just clicking on the "Upload via I/O" does both compile and upload. No need to verify.
Thanks - good to know...
Hi Peter,
This is great that more people are posting test flights so we can compare notes. You wrote that the "NE Test" was perfect? You walked around with FAKE_BEARING set to 1 and the rudder guided you in the right direction? If so, and then you fly and the rudder guides the plane East, that's really weird. You could probably diagnose this problem on the ground and save all the time and risk of flying by leaving the fake bearing @ 0, binding the home location with the jumper and then walking away from the home location around 30 ft, turning on the AP and seeing if the rudder guides you back.
I used to do this all the time with the older code versions but now you just have to watch out since the throttle will be activated.
Thanks Bryan, I want to provide as much detail as I can on my use of this GREAT Open Source Autopilot.

I updated the code again, per chris last night I changed the switch to 1. So full = waypoint. I will try the ground test as you recommend today,the reason I did the airborne test was I am super comfortable with the location and plane, and the stabilization test passed with flying colors, as well my telemetry was reporting all systems correctly. I did a 20 minute ground test with the NE code and also had my spotter watch the telemetry to make sure it reports the proper AH results when I go up, down, right and left. It did perfectly. What is weird is why when I switched on it decided RTL was EAST instead of coming back to my bind point. When I checked the readings last night, after the flight the config tool read the proper H position when I read it. So I did not attach the GPS and rebind last night, just wanted to see if the autopilot had the right Home position and waypoint - and it does. So is there possibly something confused with the autopilots direction, the reason I ask is if the plane was flying 180 degrees opposite the eastern flight path that would have been the proper Return to Home flight path where I launched from. It was flying exactly EAST away from the RTL point. Could it be confused ? Thinking WEST is EAST and EAST is WEST ? Is that possible ? Just a thought....Will post my 2nd test flight results this evening after I finish it.

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