Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. General Questions
  3. Starling 2 - Mag Alignment

Starling 2 - Mag Alignment

Scheduled Pinned Locked Moved Unsolved General Questions
4 Posts 2 Posters 133 Views 1 Watching
  • 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.
  • rozner88R Offline
    rozner88R Offline
    rozner88
    wrote on last edited by
    #1

    Every time I restart px4 on the Starling v2, my heading is off by 90 degrees. To troubleshoot, I turned off External Vision in PX4 parameters, and use mag for heading. This did not fix the heading issue. I can manually fly in Position control without any "toilet bowling" or control issues, but during Auto Missions the vehicle initially doesn't fly as expected. I planned a Mission with a takeoff, two waypoints, and landing. On takeoff and initial transit to the first waypoint the vehicle drifts around a lot. I see resetQuatStateYaw warnings in flight and then it starts to fly better. In flight the heading adjusts to point the correct direction. I've tried doing mag calibrations, and that didn't help. After rebooting PX4, the heading starts off by 90 degrees again.

    Here is an example log
    https://review.px4.io/plot_app?log=2a1c9b0e-6b82-456e-8808-fe8a18a9dde8

    Is Mag0 ROT = 0 correct? Should it be rotated 90? I know there are documented GPS issues, and the Mag/GPS are mounted together. Is this a related issue?

    1 Reply Last reply
    0
    • Eric KatzfeyE Offline
      Eric KatzfeyE Offline
      Eric Katzfey
      ModalAI Team
      wrote on last edited by
      #2

      What is CAL_MAG0_ROT set to, 0? You can try to set it to 2 (yaw 90) or 6 (yaw 270) and see if that helps the situation.

      rozner88R 1 Reply Last reply
      0
      • Eric KatzfeyE Eric Katzfey

        What is CAL_MAG0_ROT set to, 0? You can try to set it to 2 (yaw 90) or 6 (yaw 270) and see if that helps the situation.

        rozner88R Offline
        rozner88R Offline
        rozner88
        wrote on last edited by
        #3

        @Eric-Katzfey CAL_MAG0_ROT yaw 90 worked. Why isn't that the default parameter on the starling? Are some of the GPS/mag boards different?

        1 Reply Last reply
        0
        • Eric KatzfeyE Offline
          Eric KatzfeyE Offline
          Eric Katzfey
          ModalAI Team
          wrote on last edited by
          #4

          That'a a calibration parameter that is set automatically by the mag calibration procedure. Normally it should properly detect the orientation / rotation and set it. I'm not sure why that wasn't happening for you when you calibrated the mag.

          1 Reply Last reply
          0

          Reading along? Create a free ModalAI Forum account to join in.

          With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

          Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          ModalAI
          Categories Recent Tags ModalAI.com Docs
          © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups