Circle mode failsafe error in code.

I flew my first apm flight today and noticed a possible error in the way fail safe and circle mode works. It almost resulted in the loss of my aircraft.Firstly, does circle mode circle around the GPS location it was engaged in? Or does the circle just drift with the wind.Today I flew out of range of my RC Tx as a test and was already out of range of my ground station (so we couldn't see the plane on the screen). Circle mode engaged after 1 second of RC Tx loss, but when it re acquired my Tx signal, it did not go back into Auto mode, instead, it continued to drift downwind circling, seeming to not enter RTL after 20 seconds because the Tx signal was re acquiring, then getting lost during each circle. Finally it hit 20 seconds of no RC Tx signal and commenced RTH, but when it re acquired the signal this time, it went into auto mode and tried to continue the mission. At this point, it flew out of range again and the same process started again.I managed to get the aircraft home by forcing an RTH whilst I had RC signal.Testing shows that it will go from circle mode back to auto mode if I jump to stabilize then back to auto.Remember that the whole time I was out of range of my 433mhz ground station, so we couldn't see the plane.So in brief,1) circle mode is not able to automatically resume auto mode when it re acquires RC Tx2) circle mode seems like its not based around a GPS point and drifted the circles in the wind (did I say it was 20 kts breeze).3) after it did the 20sec RTL failsafe, it went back into auto (should it continue home?), and then flew the mission until it hit failsafe againlastly, in mission planner, the 1 second failsafe drop down menu shows one option of RTL even though the action is actually circle mode.I believe, that the action in event of a 1 sec failsafe should actually be loiter.Hope this all makes sense, or someone can tell me I'm wrong about how it works, but seemingly my tests showed that the aircraft can potentially be blown away. My plane drifted about 1km downwind and out of my sight during this test.I have afew other questions, but I'll post them in the appropriate place in these forums.ThanksMatt

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

Join diydrones

Email me when people reply –

Replies

  • Matt, On the intended behaviour of CIRCLE you might find this useful from the 2.69 release notes, Paul

    'Another significant change in mode behaviour is that CIRCLE mode now holds altitude. This is important because CIRCLE is used in the first stage of failsafe conditions, and if your plane is badly trimmed it could lose quite a lot of altitude before the RTL stage of failsafe kicks in. Note that this doesn't mean that CIRCLE is now the same as LOITER - in a LOITER the plane will adjust its roll to keep going around the target position, whereas in CIRCLE the position of the plane isn't considered - it just holds a small roll angle, which results in a large circle that drifts with the wind. This is deliberate as we want CIRCLE to not be dependent on the GPS, and to involve no sharp turns.'
  • Developer

    HI Matt,

    Thanks for the report, that does indeed sound like a bug. I'll have a look at it for the next release.

    Cheers, Tridge

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @gclue_akira: 柏の葉で走行させてるjetracerの中身 #instantNeRF #jetracer https://t.co/giVvuE4hP7
Jul 4
DIY Robocars via Twitter
Cool web-based self-driving simulator. Click save when the AI does the right thing https://github.com/pncsoares/self-driving-car
Jul 4
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
Jun 25
DIY Robocars via Twitter
Jun 25
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
More…