# Failure of PX4 plane code running

**URL:** <https://discuss.px4.io/t/failure-of-px4-plane-code-running/3436>\
**Category:** Uncategorized\
**Created:** [May 31, 2017, 9:20pm UTC](https://discuss.px4.io/t/failure-of-px4-plane-code-running/3436 "2017-05-31T21:20:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![paan2097](https://discuss.px4.io/user_avatar/discuss.px4.io/paan2097/32/4697_2.png) [@paan2097](https://discuss.px4.io/u/paan2097)\
**Post date:** [May 31, 2017, 9:20pm UTC](https://discuss.px4.io/t/failure-of-px4-plane-code-running/3436/1 "2017-05-31T21:20:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sigi0073](https://discuss.px4.io/letter_avatar_proxy/v4/letter/s/bc79bd/32.png) [@sigi0073](https://discuss.px4.io/u/sigi0073)\
**Post date:** [June 1, 2017, 1:57am UTC](https://discuss.px4.io/t/failure-of-px4-plane-code-running/3436/2 "2017-06-01T01:57:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![paan2097](https://discuss.px4.io/user_avatar/discuss.px4.io/paan2097/32/4697_2.png) [@paan2097](https://discuss.px4.io/u/paan2097)\
**Post date:** [June 1, 2017, 2:20pm UTC](https://discuss.px4.io/t/failure-of-px4-plane-code-running/3436/3 "2017-06-01T14:20:19Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![paan2097](https://discuss.px4.io/user_avatar/discuss.px4.io/paan2097/32/4697_2.png) [@paan2097](https://discuss.px4.io/u/paan2097)\
**Post date:** [June 1, 2017, 3:40pm UTC](https://discuss.px4.io/t/failure-of-px4-plane-code-running/3436/4 "2017-06-01T15:40:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![paan2097](https://discuss.px4.io/user_avatar/discuss.px4.io/paan2097/32/4697_2.png) [@paan2097](https://discuss.px4.io/u/paan2097)\
**Post date:** [June 1, 2017, 5:01pm UTC](https://discuss.px4.io/t/failure-of-px4-plane-code-running/3436/5 "2017-06-01T17:01:15Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![sigi0073](https://discuss.px4.io/letter_avatar_proxy/v4/letter/s/bc79bd/32.png) [@sigi0073](https://discuss.px4.io/u/sigi0073)\
**Post date:** [June 2, 2017, 12:09am UTC](https://discuss.px4.io/t/failure-of-px4-plane-code-running/3436/6 "2017-06-02T00:09:29Z")

</div>

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.
