ArduPilot LOITER and AUTO problems

Hardware:

  • EasyStar
  • ArduPilot
  • Airspeed
  • Thermopile

Software

  • ArduPilot 2.7.1

Hello,

I had a old Ardupilot laying around for two years now. Last week I assembled everthing an did my first flights.

I copied the AP_config.h and modified it just a little bit(CH_MIN/CH_MAX and one servo reverse) for my EasyStar.

While the first flight(maybe 3m/s wind from north) I tried STABILIZE and LOITER. Both worked very good(see picture).

3690929327?profile=original

My first AUTO flight (2m/s wind from NE) was also very good. After both waypoints where reached the plane circled over the launch point.

3690929278?profile=original

At the same day I uploaded other waypoints, without changing everything else. Since than it is not possible to fly in AUTO mode and LOITER/RTL is very bad. The plain fly around and sometimes its hard not to switch back to MANUAL but give the AP the change to navigate back to WP. STABLE is still very good.

See this flight with nearly no wind. The AP find always back but mostly fly first straight far away.

3690929356?profile=original

In the meanwhile I used fresh code(I taught that I have changed maybe something without I noticed it), but still the same problem. I erased the whole EEPROM with the EEPROM clear example in Arduino. I tried to find a solution here in the forum...

I don't know how to solve the problem, where to start, how to debug. Right now I try to simulate with FlightGear, but had no success to bring the hole system to run.

Has somebody a hint for me, where/how to start?

Attached you can find the .klm and logfiles.

Kind regards

Sebastian

klm_and_logfiles.zip

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • HI Sebastian,


    Ok, if in stabilize mode, adn it looks good, you need to try FBW-A first (keep throttle under your control)

    IF..when in FBW yuo can fly around and the plane holds the bank angles you have selected in #defines

    AND ...when whacking the sticks in the corners it flies nicely but deos not try to commit suicide, then you are on the right track.

    IF NOT!

    then check this.

    set bank angle to no more that 35deg pitch to no more than 10 + or - (check)

    looking at your kmls's there are 2 things that jump out at me...

    1: your PID's might be too high (not entirely sure on this, so please post your .h file

    2: your traveling speed might be too low OR yuor GPS is not updating at 4hz or higher (both have a similar effect on travel)

    I would check this first..if need be, get her flying quicker

    consiquence of this is that if shes flying quicker and the turns are too slow, then your bank angle V PID's will need changing.

    if when flying quicker she is all ove the place then do teh reverse...

    first...post your .h (header and config file) and lets see if there is somthing glaringly obvious with this.

    regards,

    mike.

This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…