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
Replies
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.