Multiple compasses in firmware 3.3 for PX4?

Hi,

I have stumbled a bit on this topic.

I started building new platform on the AUAV-X2 px4 clone FC, and it has an embedded compass in it.

I will use M8N GPS/Compass units with an external compass, but I do not see in the Mission Planner an option similar to APM where we could specify arbitrarily if we use external or internal compass.

How it should be setup?

Also, if we have a possibility to use dual GPS sensors on 2 different UART ports - is there a same method to use multiple compasses?

Can be 3.3 firmware setup to use external compass as a priority 1 unit and correlate it with a secondary compass reading for a redundancy? Or if I have 2 M8N GPS units connected - I will get 3 compasses total at same time this way, how will it work and how can it be configured?

Regards, Paul.

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

Join diydrones

Email me when people reply –

Replies

  • I just did research on this myself.

    The compass interface on Pixhawk uses I2C interface. The chips that are commonly used come wtih the same I2C address. You can't have two devices on the I2C bus with the same adddress. So no you can't use the extra compass in your second GPS. It is a little confusing because there are parameters in Mission Planner for a compass3.

    If you look at the parameters in Mission Planner and search for "compass" you will see the answers to all your questions.

    There is a parameter to use the external compass as the primary.

    • I see, it makes sense. I just spent some time trying to do exactly same thing and got to the same result.

      Still, I have an internal compass in the unit and one in the GPS module, so it is dual system, and will just decide if I want to run second GPS or not.

      It did not seem to have any positive effect to have 2 same units attached, I did not get better/faster HDOP drop yet, but will try to experiment a bit more tomorrow.

      • Well my ignorant guess at the matter is that the M8N must have a wider bandwidth antenna to cover the multiple GPS bands that it does, which means it will be noisier. The older 6 series have more narrow bandwidth antennas and could have a better hdop. ( I have tested this and indeed my 6 can have a better hdops even when the M8N has more satellites)

        So I am using an M8N for more satellites, to cover when the M6 loses a sat or two and the M6 for the best hdop when it has a good lock.

        GPS performance is so very important for the GPS flight modes that I think having redundent GPS is a good idea.

        Cheers

        • I just tried an experiment - unsoldered antenna from old 5q unit i have and soldered it into this m8n but it did not produce anything good, it waited forever and got some wrong coordinates and locked into no sats at all. So i soldered original one back and it is still same story - bouncing between 5-7 sats... Will try tomorrow with an another unit while waitng for an USA made m8n to arrive. Those i got are all from ebay and act, well, erratic.
This reply was deleted.

Activity

Gremsy liked Gremsy's profile
Mar 12
DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13, 2022
More…