APM2 AUTO Modes Commanding Nose Down

I'm working with an APM2 after months of experience with an APM1 in an EasyStar.  The new APM2 has an airspeed sensor and typically shows 8-10 mph when sitting on the bench.  On its last flights, we tested Manual and got the plane trimmed and flying well.  We tested Stabilize and it flew even better (!) in that mode.  The last test was with RTL.

When switched into RTL, the plane turned back to Home.  It was at just about the Default Altitude of 250 feet, but it started to descend.  It was at about 200 feet when crossing Home and starting the RTL turn.  It continued to descend through the turn to the point we had to go back to Manual and recover to safe altitude.

On the bench, whenever the APM2 goes into Auto or RTL, nav_pitch goes to -5 and the elevator servo is send into a corresponding nose-down position.  The -5 degrees just happens to be the Min Pitch configuration setting.  So, I know what's causing the dive, but why?

Can anyone say why the APM would command a descent when at target altitude in an Auto mode?  I need to find the reason before attempting flight again.  It's using version 2.28 firmware.  The params file is attached. Thanks.

easystar.param

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

Join diydrones

Email me when people reply –

Replies

  • Developer

    If you have the airspeed sensor enabled, then pitch is controlled by airspeed.  If the unit is not flying, there is no airspeed and in response a negative pitch command is given (to speed up).

    If you have the airspeed sensor attached it is easy to test on the ground either through the CLI, or using telemetry, by simply blowing on the pitot tube and seeing the response.

  • Just to make sure I didn't miss something in the setup, I read through the Wiki's Airspeed Sensor setup page. (http://code.google.com/p/ardupilot-mega/wiki/Airspeed)  The second sentence says--

    "It is not recommended for most new users, however, as it does require additional tuning and adds one more layer of control to set up."

    The page goes on to detail how to connect it to the APM and how to test for basic functionality.  But there is nothing that I can find about how the airspeed sensor is tuned or what additional layer of control it adds.  Would someone point me to the Airspeed sensor documentation so I can see how to tune it and how it affects operations?

  • Some more research has focused this question.  The "descent" problem is seen only when the airspeed sensor is enabled.  When the Airspeed sensor is disabled, then the APM2 commands maximum nav_pitch in RTL mode on the bench.  This is completely understandable since the "default altitude" is set to 250 feet.

    So, the question becomes -- "Why does the APM descend in RTL when using the airspeed sensor?"

    Is there anyone out there who works with the source and can explain how the APM uses airspeed when holding altitude?

This reply was deleted.

Activity

DIY Robocars via Twitter
May 15
DIY Robocars via Twitter
May 14
DIY Robocars via Twitter
May 13
DIY Robocars via Twitter
RT @f1tenth: Say hi to our newest #F1TENTH creation for @ieee_ras_icra next week in Philly. It’s going to be huge! 😎 🔥 @AutowareFdn @PennEn…
May 13
DIY Robocars via Twitter
May 11
DIY Robocars via Twitter
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Noticed my car zigzagged in last run. It turned out to be the grass stuck in the wheel and made the odometry less accura…
May 8
DIY Robocars via Twitter
RT @SmallpixelCar: Test my car. RTK GPS worked great. Thanks @emlid for their support. https://t.co/EkQ6qmjmWR
May 8
DIY Drones via Twitter
RT @chr1sa: @kane That's @diydrones circa 2009. Still have a box of those Canon cameras that we used to strap into planes, just like this.…
May 3
DIY Robocars via Twitter
RT @chr1sa: Our next @diyrobocars race is going to be outside at a real RC racetrack in Fremont on May 28. Fully autonomous racing, head-to…
Apr 30
DIY Robocars via Twitter
RT @f1tenth: Our Spring 2022 F1TENTH course @PennEngineers is coming to an end with a head-to-head race as a big finale. So proud of our st…
Apr 26
DIY Robocars via Twitter
RT @DanielChiaJH: I wrote a thing! Throughout the development of my @diyrobocars car I've been using @foxglovedev Studio to visualize and d…
Apr 23
DIY Robocars via Twitter
RT @SmallpixelCar: My new car for high speed. Low body, everything ( @NVIDIAEmbedded Jetson Xavier NX, @emlid RTK GPS, IMC) under the deck…
Apr 23
DIY Robocars via Twitter
Apr 21
DIY Robocars via Twitter
RT @f1tenth: F1TENTH Race training setup @PennEngineers for our upcoming ICRA2022 @ieee_ras_icra competition. @OpenRoboticsOrg @IndyAChalle…
Apr 21
DIY Robocars via Twitter
RT @fatcatFABLAB: Proud to be hosting a restarted DIY Robocars NYC Meetup April 26. Come by if you want to talk about and race self-driving…
Apr 17
More…