Developer

ArduCopter 2.9 / 2.9.1 released

ACRO bug (fixed in 2.9.1b): while doing flips in ACRO mode, if you switch to Stabilize while inverted your throttle will go to minimum.  To regain throttle control you need to switch back to ACRO then back to Stabilize again (i.e. switch to stabilize twice).  You never lose control of roll/pitch/yaw.

Loiter/AltHold/Auto/RTL bug: if you switch into these modes with throttle at zero motors will go to minimum until you raise the throttle.

Auto mode altitude bug (fixed in 2.9.1b): setting a waypoint altitude greater than 320m over home altitude may wrap around and instead be interpreted as a low altitude.

ArduCopter 2.9 is now in the mission planner and the downloads area!

The major improvement is we use inertial navigation to improve altitude hold.  This increased reliance on the accelerometers means you must do some additional set-up before flying:

1. Perform the new accelerometer calibration in the mission planner (video).  The auto-trim metho has also changed (video).

3690987999?profile=original

2. Add vibration dampening foam between your frame and the APM.  Some suggested materials: DuBro, gel, hk foam.

3690988058?profile=original

 3. If upgrading from 2.8.1, modify the throttle and altitude PID values:

  • Increase your Throttle Rate P, reduce I to zero, increase D
  • Increase Altitude Hold P, reduce I to zero
  • Tune Throttle Accel P and I terms but try to keep P about 1/2 the size of I

3690988113?profile=original

 

Here is the list of major changes (a more detailed list can be found in the release notes):  

  • Alt hold using inertial navigation (Leonard, Randy, Jonathan)
    • AUTO_VELZ_MIN, AUTO_VELZ_MAX parameters control the max climb/descent rate for the autopilot (cm/s)
    • PILOT_VELZ_MAX controls max climb/descent rate for the pilot (in cm/s)
  • Landing improvements (Leonard/Randy).  Copter will descend to 10m or until an object is sensed with the sonar.  Then slows to 50cm/s descent (speed can be adjusted with LAND_SPEED parameter). (video).
  • Surface tracking with sonar (Randy/Leonard).  Copter will attempt to maintain current distance from objects in front of sonar regardless of altitude.  Only used in alt-hold and loiter, not used for missions.  Sonar can be enabled/disabled with CH7 switch. (video)
  • Failsafe improvements (Randy/Craig/John Arne Birkeland) including bug fixes, additional check for PPM encoder failure and implementation of battery failsafe.  Set-up instructions are here.
  • Mediatek gps driver accuracy improvements and use of SBAS [Craig].  Instructions on upgrading your mediatek to firmware 1.9 are here.
  • Traditional Heli improvements (Rob) including (a) bringing heli code back into the fold, (b) enabled rate controller (previously only used angle controllers). (c) fix to rotor speed controllers - now operates by switching off channel 8.  (d) allow wider collective pitch range in acro and alt hold modes vs stabilize mode  (e) bug fix to allow collective pitch to use the entire range of servos
  • Acro trainer (Leonard). Copter will return to be generally upright if you release the sticks in acro mode.
    • ACRO_TRAINER : set to 1 to enable the auto-bring-upright feature
    • ACRO_BAL_ROLL, ACRO_BAL_PITCH : controls rate at which roll returns to level
  • Camera control improvements (Randy/Sandro Benigno):  (a) AP_Relay enabled for APM2  (b) Trigger camera with CH7 or DO_DIGICAM_CONTROL command  (c) Allow pilot override of yaw during missions and fixed CONDITIONAL_YAW command.
  • PPM sum support for transmitters with as few as 5 channels (Randy/Tridge/John Arne Birkeland).
  • Performance and memory useage improvements (Tridge).

 

As per usual PIDs are optimised for the 3DR/jDrones quad with 850 motors and 10" props. If you're using more powerful motors/props and are seeing bad flight behaviour in stabilize, start by turning down Rate Roll P in 25% steps.

Special thanks to our testing team lead Marco and the dedicated bunch on the 2.8.1 release thread who put their copters at risk while testing the pre-release version.  Some of their videos are here: 1 2 3 4 5 6 7 8

Please feel free to report issues you find in the discussion below and/or add them to the issues list.

 

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

Join diydrones

Email me when people reply –

Replies

  • Hi Randy, 

    I decided to upgrade my QuadX to 2.9.1, APM2.0, but I am not able to fly it, since I can not have a controlled airborn.

    I did attach the last log fly with a test to fly on my backyard, not able to takeoff, the copter is very unstable.

    I did check the latest PID config as highlited by you on red rectangles, I did recalibrate the accelerometers as in video (level, left, right, up, down, back),   I did recalibrate the ESC one by one, I did check the "motors" setup in CLI and each start on proper direction and order, I did rebind also the RX-TX.

    I do have a foam under the APM2.0 (in case) and I did check on Log the Accel_Z and it looks good for me, between -5 and -15, see below.

    My TX is a dx6i. For 2.9.1, I noticed there is a "Save Trim" with CH7 and "Auto Trim" during the flight. 
    But I do not have a spare channel for Save Trim CH7 and Auto trim is not possible since I can not takeoff and hover. Somehow the HUD is not horizontal.

    I did check if I have Error on my log, not errors, I did check spikes from TX/RX, not spikes.

    Please let me know if you find something wrong on my log attached and give me please some hints.

    3692610059?profile=original

    2013-02-03 16-18 30_outside_test.log

  • I now have many auto missions with my new H frame quad and 2.9.1 is fantastic but I have been experimenting with the more exotic mission planner waypoint functions.

    It probably me but the only ones that seem to work as advertised are waypoint, do change speed, loiter time and land.

    I was hoping ‘loiter turns’ would circle nose to center to enable filming of a selected point. For that matter circle mode doesn’t seem to work either, more like a drunken loiter. Have tried different radiuses but it seems to manage about ¼ turn and get stuck.

    I need the quad to reach a certain height to clear treetops before proceeding but ‘condition change alt’ seemed to get ignored.

    Like I said it probably me but any advice appreciated.

    Quick video of simple mission at only 2m/s

    https://www.youtube.com/watch?v=Go_EYjBYc24&feature=youtu.be

     

     

  • Randy I finally loaded 2.9.1 and after calibrating everything managed to get in two flights this afternoon.  For a first time after replacing my APM1 with APM2 and also flashing my MTK GPS to 1.9 it was not too bad.  The wind was slight to moderate and gusting a little at times.  In stabilize mode I had to put a lot of effort to keep my quad stable in the gusting wind so I expect my trial PID's for the Jdrones frame with 880Kv motors and 12x45 props is off the mark.  I had hoped someone might share some settings with bigger motors but I guess I will have to work it out myself.   I cannot see my quad flying anything like the videos posted here any time soon. But I like a challenge.  I am amazed though at the pilot skills to be able to fly so far away (like in the 2.9 video acro and stab modes) and keep the arducopter under such good control manually flying with yaw and other controls reversed on the return legs to home. 

    On my second flight I tried loiter with 2.9.1 and the MTK with 1.9 code.   Even with the wind gusting between 5-10 knots my quad held on station very well (in about a 5-10meter square) except I had to manually control the throttle other wise the quad would hit the ground quickly.  Still more development before the code will allow me to take my hands off the controls in loiter for a few seconds, but I am impressed.  Great job Dev team.

    Unfortunately I only have a telemetry log, no other logs were retrievable from the APM after my flight despite setting them up and having nothing prior stored (full erase and reset before loading new code).  I did notice there is an issue with the auto magnetic declination process too (See attached graph) for my region the magnetic declination setting manually is 12.23 but the auto method only managed to set it to 0.2 I will just set it manually based on this result.

    In case anyone is interested my test PIDs for 880Kv motors, on a Jdrones quad frame are as follows: 

    STAB Roll & Pitch:  P 3.0, I 0.0, IMAX 5.0

    Stab Yaw: P 4.0 I 0.0 IMAX 8

    Angular Rate Roll &Pitch: P 0.09 I 0.06 D 0.0040 IMAX 8.0

    I made no other changes (all values are defaults except the ones I posted here)

    Rate Roll Pitch:

    Magnetic_Dec_03Feb2013.JPG

    https://storage.ning.com/topology/rest/1.0/file/get/3692609535?profile=original
  • Using Mission Planner 1.2.33, Arducopter 2.91 firmware on APM2.5 & 8ch serial PPM input at ch1, after putting pink on ch 2&3, flight mod change is not displayed in mission planner however with same setup when I uploaded firmware Arduplane 2.68 then mod change is very well displayed in the MP1233.

  • Guys sorry to ask for some more help but I am moving from an old code (circa 2.1) and need some suggested starting point for the parameters on a jdrones frame with 880KV with 12x45 props. I used to use P values for STAB Roll and Pitch of 3.0 down from 4.5 and increase I's to 0.10 I have not had much success with Tuning loiter in the past so A good suggested PARms file for the larger 880 motors and 12x45 props with the current code would be appreciated. Also is there a reference table I can look at to make sure I have the correct default values at the moment for 2.9.1 which are used for all 3DR frame testing? Cheers
  • Speaking of THR_MID I am going to ask a dumb question hear but is this set by any chance on the final radio calibration step? I was setting up 2.9.1 last night for test today and at the end of the Radio Calibration in the Mission Planner you are asked to centre the sticks (both I assume) but also a contradictory throttle down. I see two ways to interpret this 1. both sticks are centred and the throttle trim is all the way down or 2. One stick is centred that does not contain the throttle and the one with the throtte is down? (sorry wrote this for Mode 1 & 2). Perhaps I over think things but I wondered if this final centring instruction is cationary or actually transfers mid point values to APM including (if the throttle is centred) the THR_MID value or some other critical data point for the calibration?
  • Man, you guys are killing me. New release, finished the new quad, AndroPilot is looking great, we have the first sunny dry day in weeks and.... I am stuck in a class all day.

    Sigh.

  • Today, I test Loiter, RTL, Auto 2.9.1 and Failsafe are all very nice. 

    2013-02-02 17-20 1.log

    2013-02-02 17-22 2.log

  • Where can I find documentation on how to run APM code on PX4, starting from both git repositories, where to put apm sources in PX4 sources (root, apps?) modify appconfig, makefiles, etc..., and configure apm

    As Arducopter 2.9.2 is the first official release for PX4, these info deserve a dedicated area.

    Thanks

  • Moderator

    Randy, flew 2.9.1-rc2 quite a bit this morning (with Craig Elder watching :)) - a couple missions, Alt Hold, Loiter and free flight.

    Nothing untoward to report, flew really well, no failsafe false alarms. Well done again to all those involved.

This reply was deleted.

Activity

Jose Araujo liked Jose Araujo's profile
Aug 29
spencer harvey liked spencer harvey's profile
Jul 9
More…