APM 2.20 - Auto mode - losing altitude

APM 2.20 with APM Mega 2560, I only added these lines to APM_Config.h:

#define SERIAL3_BAUD        57600
#define AIRSPEED_SENSOR     ENABLED
#define GCS_PORT      3

 

In stabilized mode, everything works fine.  In Auto mode, the plane flies to and from waypoints nicely.  However, I notice that in Auto mode, APM stopped the throttle so the plane loses altitude quickly.  Sometimes I had to nudge the elevator up to help the plane to fly to the next waypoint.

 

Is there any other configuration value that I should set?  Or which code in particular (i.e. navigation.c or altitude.c) is working on the altitude hold?  I also attach HK GCS output here as well. 

 

Best wishes,

 

Peter

 

220711-1650.hko

220711-1800.hko

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

Join diydrones

Email me when people reply –

Replies

  • 3D Robotics
    Make sure that you don't have absolute altitude checked in the Mission Planner and that your altitudes are set to reasonable values for each waypoint.

    You should also be using APM2.21. Why are you editing the APM_Config.h file? You should be uploading the firmware from the Mission Planner and enabling the airspeed sensor via that, too. No Arduino required.
  • Check your pitch reverse switch - maybe it is in wrong position.
This reply was deleted.

Activity