@Cliff-Wong said in Starling 2 Max Crashes in Position Hold Mode After Disabling Magnetometer for Indoor Flight:
8000000
Hi Cliff,
Thank you for your response. I checked the config file and "en_vio" was set to 'true'.
Also I tried moving the drone inside the drone cage and was able to get a trajectory similar to yours initially:
Screenshot from 2025-05-23 20-31-49.png
However, the results are inconsistent. Sometimes the trajectory is inaccurate, and the drone drifts away in the portal view:
Screenshot from 2025-05-23 20-27-07.png
Could this be related to calibration issues, or is VIO inherently unreliable in some cases? Could the drift be due to a lack of visual features in the environment?
Also, do you think it's safe to fly indoors without the magnetometer? (I had to disable it because I was getting an interference error that prevented arming)
Are there any other PX4 parameters I should adjust to ensure safe indoor flight? I want to double-check that everything is set up correctly before attempting another test because I don't want to crash the drone like last time.
Lastly, is there a way to test the VIO setup in a HITL simulation before performing an actual flight, just to verify that everything works as expected?
Thanks again for your help!