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

ModalAI Forum

  1. ModalAI Support Forum
  2. VOXL Compute & Autopilot
  3. Flight Core
  4. BAR30 on Flight Core

BAR30 on Flight Core

Scheduled Pinned Locked Moved Flight Core
5 Posts 3 Posters 1.3k Views 2 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.
  • Andrew KeefeA Offline
    Andrew KeefeA Offline
    Andrew Keefe
    wrote on last edited by
    #1

    Does the Flight Core firmware support the BAR30 pressure sensor? I plugged one into J13 after changing out the connector, but the sensor didn't register in QGroundControl. Then it donned on me that ArduSub supports the BAR30, but not the others. I'm using the Flight Core on a submersible and I will be using the BAR30 for depth.

    If this isn't already supported then I will need to manually pull it in from ArduSub I suppose. I can write my own app to access the I2C bus and publish the information as a node.

    1 Reply Last reply
    0
    • modaltbM Offline
      modaltbM Offline
      modaltb
      ModalAI Team
      wrote on last edited by
      #2

      Hi Andrew,

      We've not tried using this sensor, but getting I2C drivers up and going is pretty easy normally. I found this in the Nuttx code base that might help:

      Link Preview Image
      NuttX/drivers/sensors/ms58xx.c at 904a602c74dc08a100b5c2bd490807de19e73e10 · PX4/NuttX

      Standard NuttX with current PX4 patches. Contribute to PX4/NuttX development by creating an account on GitHub.

      favicon

      GitHub (github.com)

      You'd need to enable the driver to build in here:
      https://github.com/PX4/PX4-Autopilot/blob/master/boards/modalai/fc-v1/default.cmake#L17

      And to run on startup here:
      https://github.com/PX4/PX4-Autopilot/blob/master/boards/modalai/fc-v1/init/rc.board_sensors

      1 Reply Last reply
      0
      • Andrew KeefeA Offline
        Andrew KeefeA Offline
        Andrew Keefe
        wrote on last edited by
        #3

        It looks like ArduSub modified the ms5611 driver to accommodate the ms5837 and calls the driver AP_Baro_MS5611. The init() has a switch case on _ms56xx_type and includes a "BARO_MS5837" case.

        Link Preview Image
        ardupilot/libraries/AP_Baro/AP_Baro_MS5611.cpp at ArduSub-4.0.0 · ArduPilot/ardupilot

        ArduPlane, ArduCopter, ArduRover, ArduSub source. Contribute to ArduPilot/ardupilot development by creating an account on GitHub.

        favicon

        GitHub (github.com)

        It also includes a function for calculating the temperature and compensated pressure for the 5837.

        The Flight Core firmware incudes a different version of the MS5611 driver that doesn't support the ms5837. This would be a good update to pull in.

        1 Reply Last reply
        0
        • modaltbM Offline
          modaltbM Offline
          modaltb
          ModalAI Team
          wrote on last edited by
          #4

          If it's a good addition, and you're up for it, I'd suggest going for it and adding the driver to the 'standard' PX4 code base! If it's in the master branch we could pull it in pretty easily.
          Thanks!

          1 Reply Last reply
          0
          • ryan_meagherR Offline
            ryan_meagherR Offline
            ryan_meagher
            Contributor
            wrote on last edited by
            #5

            I know this is kinda an old post but I have created a driver for px4 that can use both flavors of the MS5837 the bar2 and bar30. I will create a pull request with px4 so it will be available.

            1 Reply Last reply
            1

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            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