Why not allow switch from LOITER mode to FLIP mode?

I've checked the code (AC 3.3.2) and found it is only supported that switch to FLIP mode when in ACRO, STABILIZE and ALT_HOLD mode before, 

because of this "if" statement in bool flip_init(bool) function in file control_flip.cpp:

if (control_mode != ACRO && control_mode != STABILIZE && control_mode != ALT_HOLD) {
return false;
}

I want to test switch from LOITER to FLIP and then restore back to LOITER, before I test, can somebody tell me the risks in it?

Thanks!

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

Join diydrones

Email me when people reply –

Replies

  • Unless you change the code it won't do anything.

    I set up a friends tri-copter to use flip mode, and it has to be done from alt-hold (he only had alt hold, pos hold and pos hold with super simple mode) as trying it from pos hold resulted in nothing at all happening.

    I suspect the same result if you try it from any mode other than acro, stabilize or alt hold.

    • Yes. I tried it from LOITER, which seems flip better with nothing worse happened.

  • The modes listed are ones that do NOT use GPS data. Trying to "flip" in loiter can be bad as it will cause EKF issues and positioning issues which will likely cause your craft to head back to china or worse.

    It would be like the worst GPS glitch in history I imagine.

    • Thank you!

      But the "bad" thing you describe will never happen, because the craft is always in China with me.

      • That's one of the funniest replies I've seen on this forum. :)

        I would guess that the devs put that check in there for a reason. Given the big altitude change, it might be an issue with the barometer along with what Craig mentioned.

        If you do try this, please post back with results.

        • I'm always in the mood to watch a good crash video. But in this case I'd feel sorry for him as I am pretty sure a crash would be the result. 

          • I changed the code to allow the mode switch from LOITER to FLIP, and test it outdoors. It seems like the copter flips better than the original version.

  • I could be wrong, but it might be a safety feature that's preventing you switching from Loiter to FLIP mode. However, it should work from another mode such as Stabilize...

This reply was deleted.

Activity

gotham liked gotham's profile
12 hours ago
DIY Robocars via Twitter
RT @RoboticMasters: Monaco GP Circuit in the Donkey Sim (coming soon). Including buildings, tunnel and all! https://github.com/robotics-masters/sim-donkeycar-f1/tree/f1-tracks @diyr…
yesterday
DIY Robocars via Twitter
RT @breadcentric: Here are the details of #AWSDeepRacer finals: https://blog.deepracing.io/2020/12/01/aws-deepracer-league-finals-2020-round-1-schedule/ #awsreinvent2020 #AWSreInvent https://t.co/ovqsjp8V…
yesterday
DIY Robocars via Twitter
RT @breadcentric: #AWSDeepRacer League #awsreinvent2020 Open race is on Dec 1st - Dec 31st in three categories, 15 DeepRacer Evo (with LIDA…
yesterday
DIY Robocars via Twitter
RT @a1k0n: @SmallpixelCar @diyrobocars It's just something that's easy to track with chroma keying. I ended up using different colors on th…
Monday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
RT @TinkerGen_: "The Tinkergen MARK ($199) is my new favorite starter robocar. It’s got everything — computer vision, deep learning, sensor…
Nov 23
DIY Robocars via Twitter
Nov 23
DIY Robocars via Twitter
RT @roboton_io: Join our FREE Sumo Competition 🤖🏆 👉 https://roboton.io/ranking/vsc2020 #sumo #robot #edtech #competition #games4ed https://t.co/WOx…
Nov 16
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16
DIY Robocars via Twitter
Our review of the @TinkerGen_ MARK robocar, which is the best on the market right now https://diyrobocars.com/2020/11/15/first-impressions-of-tinkergen-mark-robocar/ https://t.co/ENIlU5SfZ2
Nov 15
DIY Robocars via Twitter
RT @Ingmar_Stapel: I have now explained the OpenBot project in great detail on my blog with 12 articles step by step. I hope you enjoy read…
Nov 15
DIY Robocars via Twitter
RT @DAVGtech: This is a must attend. Click the link, follow link to read the story, sign up. #chaos2020 #digitalconnection #digitalworld ht…
Nov 15
DIY Robocars via Twitter
RT @a1k0n: Got a new chassis for outdoor races (hobbyking Quantum Vandal) but I totally didn't expect that it might cause problems for my g…
Nov 11
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10
DIY Robocars via Twitter
Nov 9
More…