The setup:
* The plane is a high wing aileron trainer with a 160 cm span and lots of wing area. Very stable.
* Ardupilot running ver. 25_04.
* No shield.
* x,y and Z sensor from paparazzi
* Telemetry downlink
* u-Blox GPS
Flight preparations:
The first thing i noticed was that the software didn't follow the startup routine in the manual:
(I'm not using throttle at this time)
- Power on CHECK
- Check the Remove Before Fly plug is connected CHECK
- Twitch servos to indicated startup has begun CHECK
- Record Radio Trims to memory CHECK
- Begin looking for a GPS fix - Flash the blue LED until a fix CHECK
- Set the Blue LED to solid to indicate a GPS fix CHECK
- Twitch servos once CHECK
- Calibrate Radio Min and Max (and optionally XY IR sensors) How is this done?
- Twitch servos until Remove before Fly pin is removed Did not work
- Save home location and flight settings to memory CHECK
This didn't discourage me from taking off to do some test flights. I had uploaded a few waypoints but the first flight was made with RTL and STABILIZE modes available.
First flight
STABILIZE worked perfect. Flying with it enabled was no problem and it recovered from quite steep angles without to much oscillation.
RTL. This is where the problem started. The plane tries to fly away from home. Its doing steep turns away from home alternating left and right. My first thought was that i didn't store a home position and that the plane was oscillating away. I decided to test AUTO mode instead.
Second Flight:
I auto mode i experienced exactly the same behavior. The plane tried to reach the waypoint by turning away from it. when flying in the opposite direction it started to oscillate with 40 degree turns left and right.
Summary:
I am not sure what went wrong, but it seems like the AP is trying to turn the plane but it banks in the wrong direction. I have looked in mu Setup file but it looks OK.
When looking at the plane from behind and rolling it, which way should be positive angles. Clockwise or counter clockwise?
Any other ideas what went wrong?
Regards
Magnus
Replies
Start with P gain for the nav loop with no I or D gain, and no crosstrack gain. That will get you started. Tune for optimal performance, then start adding the other gains.
I should add that it is possible to mis-configure the hardware so that it will always fly the opposite direction, or try to fly upside down, or other amusing things ;)
--Upgrade to the latest software (now 2.6)
--If that doesn't help, please try with throttle connected (jumper wires soldered)
--If that doesn't do it, please upload your config file and I'll take a look.