Failure of PX4 plane code running

I’m trying to run PX4 on navio2 and I’m getting this text output as well as the servos trying to over extend and making a horrible noise. The servo failure noise happens directly after ekf2 start in the .config file. Here is the output:

commands file: ./posix-configs/rpi/px4_fw.config


| ___ \ \ \ / / / |
| |/ / \ V / / /| |
| __/ / \ / /
| |
| | / /^\ \ ___ |
_| / / |_/

px4 starting.

INFO [dataman] Unkown restart, data manager file ‘rootfs/fs/microsd/dataman’ size is 11797680 bytes
ERROR [drivers__linux_gpio] read 4: open: No such file or directory (2)
ERROR [drivers__linux_gpio] export failed: write: Device or resource busy (16)
ERROR [navio_rgbled] red led: failed to export
ERROR [drivers__linux_gpio] unexport 4: write: Invalid argument (22)
ERROR [drivers__linux_gpio] unexport 27: write: Invalid argument (22)
ERROR [drivers__linux_gpio] unexport 6: write: Invalid argument (22)
Command ‘navio_rgbled’ failed, returned -1
WARN [commander] Buzzer: px4_open fail

WARN [commander] Buzzer init failed
WARN [commander] Preflight checks always pass on RPI.
.
.
INFO [mavlink] mode: Normal, data rate: 1000000 B/s on udp port 14556 remote port 14550
Sleeping for 1 s; (1000000 us).
INFO [logger] logger started (mode=all)
pxh> INFO [mavlink] using network interface eth0, IP: 10.0.18.10
INFO [mavlink] with broadcast IP: 10.0.18.255
INFO [navio_sysfs_pwm_out] Loaded mixer from file ROMFS/px4fmu_common/mixers/AERT.main.mix
INFO [lib__ecl] EKF aligned, (pressure height, IMU buf: 17, OBS buf: 16)

Exiting…
ÿShutting down
Restoring terminal

Oh, I just posted on another post you made, but I see you have the output here. Did you make your raspberry pi image using the Emlid image linked in the development-guide? Or did you set up your own image for the pi?


Sid

Thanks for the responses. I most likely cloned the master branch, but I will try the stable branch today thanks for the advice. We set everything up according to the PX4 devguide and emlid instructions for image.

Stable image still caused the same erros along with the servo over extension.

I can stop the servo extension noise but commenting out the ekf2 line or this line in the posix-configs/rpi/px4_fw.config file:

navio_sysfs_pwm_out start -m ROMFS/px4fmu_common/mixers/AERT.main.mix

How can I set the mixer so we don’t get over extension of the servos?

Hi there,
So if you navigate to the directory ROMFS/px4fmu_common/mixers/ and take a look at the README.md file there, it provides documentation about the mixer. I recommend reading that file as well as the comments in AERT.main.mix, but if you change the last two constants on the lines that start with O: (lower and upper limits) on the offending servos, you should be able to keep your servos within their proper ranges.