@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?
rozner88
Posts
-
Starling 2 - Mag Alignment -
Starling 2 - Mag AlignmentEvery 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-fe8a18a9dde8Is 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?