• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
ModalAI Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
    • Register
    • Login

    Attitude Estimator Error

    VOXL 2
    3
    11
    605
    Loading More Posts
    • 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.
    • M
      modaltb ModalAI Team
      last edited by 12 Sept 2022, 16:29

      Hi @mawriyo ,

      I just added some info that should help:
      https://docs.modalai.com/voxl2-px4-developer-guide/#how-to-access-the-px4-shell

      (Also, there's a known issue that when the PX4 process is killed (e.g. CTRL+C from the shell) the system freezes and needs a reboot)

      Please let me know if things aren't clear and we can update docs.

      1 Reply Last reply Reply Quote 0
      • M
        mawriyo
        last edited by mawriyo 12 Sept 2022, 17:04 12 Sept 2022, 17:01

        The following occurs
        https://imgur.com/a/dftsjQZ

        Apparently the file is too large... i apologize for the link 😕

        1 Reply Last reply Reply Quote 0
        • M
          modaltb ModalAI Team
          last edited by 12 Sept 2022, 17:06

          8c8472ed-2630-49af-a62a-01389fd4273d-image.png

          Shrunk it! ;). OK let me check into this

          1 Reply Last reply Reply Quote 0
          • M
            modaltb ModalAI Team
            last edited by 12 Sept 2022, 21:18

            @mawriyo ,

            Do you have an external mag/compass or no? I'm thinking maybe not, and if that's the case perhaps EKF2 is looking for mag data....

            I replicated during "level horizon" calibration if the mag is missing:
            46be0533-04c0-4212-9f0c-613719cf27f3-image.png

            In order to proceed without a mag, you can run the following (assuming PX4 is running already, and these commands are in a new terminal):

            # set to NONE
            px4-param set EKF2_MAG_TYPE 5
            
            # verify
            px4-param show EKF2_MAG_TYPE
            
            1 Reply Last reply Reply Quote 0
            • M
              mawriyo
              last edited by 13 Sept 2022, 15:26

              We are using an external gps + mag (Here3 gps combo) and wired up the system accordingly. We still are not able read data from either... Additionally we cannot get the voxl2 IO to register the voxl... IE We see a blue flashing led and a solid orange. We cant get that to become something we use...

              1 Reply Last reply Reply Quote 0
              • M
                mawriyo
                last edited by 13 Sept 2022, 15:49

                Updating px4 fixed the blinking LED matter and we can Arm. (yay!) but we still are having issues connecting the HERE3 radio... please advise

                E 1 Reply Last reply 13 Sept 2022, 16:01 Reply Quote 0
                • E
                  Eric Katzfey ModalAI Team @mawriyo
                  last edited by 13 Sept 2022, 16:01

                  @mawriyo Our PX4 implementation is custom for the VOXL 2 and usually requires some additional work when integrating new components. We normally use the Holybro GPS / Compass / LED units or the Matek units and so we can only say that those are known to be supported. Anything else, such as the Here3 unit, probably will need some extra work to integrate. How are you attaching the Here3 to the system? Do you have a wiring diagram that you can provide?

                  1 Reply Last reply Reply Quote 0
                  • M
                    mawriyo
                    last edited by mawriyo 13 Sept 2022, 16:25 13 Sept 2022, 16:24

                    Using https://ardupilot.org/copter/_images/here-plus-pixhawk.png as a reference...

                    5V -> 5V
                    GPSRX -> GNSS TX 3P3V
                    GPSTX -> GNSS RX 3P3V
                    I2C SCL -> MAG SCL 3P3V
                    I2C SDA -> MAG SDA 3P3V
                    Ground -> Ground

                    1:1
                    2:2
                    3:3
                    4:4
                    5:5
                    8:6

                    We also swapped RX and TX to double check.

                    E 2 Replies Last reply 15 Sept 2022, 03:36 Reply Quote 0
                    • E
                      Eric Katzfey ModalAI Team @mawriyo
                      last edited by 15 Sept 2022, 03:36

                      @mawriyo Okay, looks like you have a Here+ GPS / Compass, not a Here3. Do you know which magnetometer is inside? Seems like some versions have HMC5883 which we should support now, and some have ICM20948 which we do not. However, adding new magnetometer support is usually relatively straight forward. I can't tell from your comments if you were successful in getting both GPS and Compass (magnetometer) running properly? You also mention a Here3 radio. Are you still having trouble with that? How are you trying to attach that to the system? Do you have any documentation on the Here3 radio that you are trying to use so that we can review it to understand how it is supposed to work. This is a new device for us and we have no experience with it.

                      1 Reply Last reply Reply Quote 0
                      • E
                        Eric Katzfey ModalAI Team @mawriyo
                        last edited by 27 Sept 2022, 23:38

                        @mawriyo Here3 GPS support is now available in voxl-px4 1.4.27 available here: http://voxl-packages.modalai.com/dists/qrb5165/dev/binary-arm64/voxl-px4_1.4.27-202209272330_arm64.deb. This needs to be used with the Here3 in "i2c mode" which means opening up the unit, placing the switch in the "i2c" position, and creating a custom wiring harness to route UART and i2c lines over to VOXL 2 J19. Launch voxl-px4 with the new -h flag to enable this new support. The Here3 unit has an ak09916 magnetometer and TCA62724FMG LED controller.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB | Contributors