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
RT @donkey_car: Human-scale Donkey Car! Hope this makes it to a @diyrobocars race https://www.youtube.com/watch?v=ZMaf031U8jg
Saturday
DIY Robocars via Twitter
Saturday
DIY Robocars via Twitter
Jun 16
DIY Robocars via Twitter
RT @GrantEMoe: I won my first @diyrobocars @donkey_car virtual race! Many thanks to @chr1sa @EllerbachMaxime @tawnkramer and everyone who m…
Jun 13
DIY Robocars via Twitter
RT @gclue_akira: JetRacerで自動走行したコースを、InstantNeRFで再構築。データセットは別々に収集 #jetracer #instantNeRT https://t.co/T8zjg3MFyO
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: SPC 3.0 Now the motor also works. This car is doable. I just need to design a deck to mount my compute and sensors. http…
Jun 13
DIY Robocars via Twitter
RT @SmallpixelCar: My new car SPC 3.0. https://t.co/CKtkZOxeNQ
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: High speed at @diyrobocars thanks @EdwardM26321707 for sharing the video https://t.co/o4317Y2U1S
Jun 7
DIY Robocars via Twitter
RT @SmallpixelCar: Today at @RAMS_RC_Club for @diyrobocars. Used @emlid RTK GPS and @adafruit @BoschGlobal IMU. Lap time 28s https://t.co/R…
May 28
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
More…