# Attitude Estimator Error

Source: https://forum.modalai.com/topic/1318/attitude-estimator-error
Category: VOXL 2 and VOXL 2 Mini (https://forum.modalai.com/category/26/voxl-2-and-voxl-2-mini)
Tags: voxl-2
Posted: 2022-09-12 15:28:50 UTC by mawriyo
Replies: 10 · Views: 1941

## mawriyo · 2022-09-12 15:28:50 UTC

I had purchased the voxl2 I/O board and got everything hooked up. Upon trying to calibrate the voxl2 over UDP an error "Attitude estimator not running, check system boot" is thrown. I tried using mavlink shell but according to https://docs.modalai.com/voxl2-px4-user-guide/#known-issues-and-limitations this is not available... Could you provide a guide to debugging messages on the flight controller similar to that of mavlink shell / nuttshell.

## Reply by modaltb (ModalAI staff) · 2022-09-12 16:29:40 UTC

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.

## Reply by mawriyo · 2022-09-12 17:01:59 UTC

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

Apparently the file is too large... i apologize for the link :/

## Reply by modaltb (ModalAI staff) · 2022-09-12 17:06:56 UTC

![8c8472ed-2630-49af-a62a-01389fd4273d-image.png](https://forum.modalai.com/assets/uploads/files/1663002404018-8c8472ed-2630-49af-a62a-01389fd4273d-image.png) 

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

## Reply by modaltb (ModalAI staff) · 2022-09-12 21:18:12 UTC

@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](https://forum.modalai.com/assets/uploads/files/1663017367964-46be0533-04c0-4212-9f0c-613719cf27f3-image-resized.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
```

## Reply by mawriyo · 2022-09-13 15:26:21 UTC

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...

## Reply by mawriyo · 2022-09-13 15:49:08 UTC

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

## Reply by Eric Katzfey (ModalAI staff) · 2022-09-13 16:01:50 UTC (in reply to mawriyo)

@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?

## Reply by mawriyo · 2022-09-13 16:24:35 UTC

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.

## Reply by Eric Katzfey (ModalAI staff) · 2022-09-15 03:36:59 UTC (in reply to mawriyo)

@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.

## Reply by Eric Katzfey (ModalAI staff) · 2022-09-27 23:38:15 UTC (in reply to mawriyo)

@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.
