ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Suggestions for performing VIO

    Ask your questions right here!
    3
    3
    273
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mohammednaveed
      last edited by mohammednaveed

      Hi all,
      I have a silly question
      I have been performing VIO flights indoor without any issue. So the drone I am working with is using a pixhawk 4 gps and i am flying indoor. The GPS is disabled but the compass is still enabled. So here is the silly question, I have been always facing north while powering up my drone. Is this method correct to do for performing VIO? My thought process is that the onboard compass is able to determine the true heading, but the VIO tracking camera considers the heading where it was powered on as north.(like if i face east and power on the drone, that heading would show as north on QGC) Wouldnt this create a compass variance error while navigation?

      Moving to more advance thing!
      How to perform an outdoor (open field) to indoor (basement) transition while in position mode? What should be the steps i need to follow and things i should keep in mind!

      Thanks & Regards,
      Mohammed Naveed

      1 Reply Last reply Reply Quote 0
      • Cliff WongC
        Cliff Wong ModalAI Team
        last edited by Cliff Wong

        Hi Mohammed--
        Please check your PX4 parameters that:

        EKF2_MAG_TYPE = Magnetic Heading
        SYS_HAS_MAG = 1
        

        If VIO is the sole source of data input for the estimator, then yes, North will always be the origin's reference orientation at power up (aka it's in FRD frame, north always being F). The above params should use the mag for correction in NED frame. If you still don't see that, you'll need to pull the ulog (and convert it to csv's), and check the estimator_status_0.csv control_mode_flags column and dissect the bit flags for mag_* and see if they are all true (magnetic yaw heading is being fused). If not, the bit flags should reveal the additional param changes needed. Just realize once you start using fusing magnetometer data, your command trajectories/waypoints (e.g. offboard mode commands) will need to be in NED frame.

        For outdoor->indoor type transitions (while under VIO/GPS), we offer a forked PX4 version (unsupported) here under the tag: v1.11.3-0.2.3 with some notes on how it works.

        Here's an overview and an example. Just let us know if you are interested in more details on this forked version.

        1 Reply Last reply Reply Quote 0
        • Steve TurnerS
          Steve Turner
          last edited by

          Cliff,

          Apologies for hijacking this thread slightly, but in another one I was interested in this transition mechanism.

          It looks like the responsible code to monitor GNSS signals and perform the transition is here: https://github.com/modalai/px4-firmware/pull/1/files#diff-4086bdb716e4bb6c6668a2d61f8c87ef3f15caf4c7d7032595c7ec28a4cffdc7R106

          Are these changes merged into the official build of v1.11.3-0.2.3 on the ModalAI site at?: https://storage.googleapis.com/modalai_public/flightcore-releases/v1.11.3-0.2.3-modalai_fc-v1_default.px4

          I haven't seen the firmware ever "flip" the EKF2 mask, but perhaps there is another parameter I need to set to enable the GNSS quality monitoring. I'll poke around a bit more, just wanted to make sure I was on the right track with the above changeset.

          Thanks much for any insight!
          Steve

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB | Contributors