First flight of Linux APM on Raspberry Pi 2 with Navio+

Hey guys!

Today we’ve made the first flight of Linux APM on Raspberry Pi 2 with Navio+.

Navio+ is an autopilot HAT that includes all the necessary sensors: U-blox M8N GPS/Glonass/Beidou receiver, MPU9250 3-axis gyro, 3-axis accelerometer and 3-axis magnetometer, MS5611 barometer, ADS1115 16-bit ADC for battery monitoring, PCA9685 PWM generator and an RGB LED.

Raspberry Pi 2 is a new quad-core version of the most popular single board computer in the world. It was clear that APM would benefit from higher processing power and as Raspberry Pi Foundation decided to stick to the HAT standard for their boards, Navio+ fits and works perfectly without any hardware modifications.  

How does it compare to the good old Model A+/B+? According to the benchmarks made by David Hunt RPi2 gave us about 7 times higher performance.

For real-time performance we fly on PREEMPT_RT patched kernel only. This time, compiling a stable kernel turned out to be quite a challenge. Raspbian for RPi2 is based on Linux 3.18 and at the time of release there was no RT patch for that version. Luckily patch came out just two weeks later, but there were some issues with the USB driver, so we had to spend some time to investigate and fix those. Finally, after everything was solved and after long nights of stress testing we took it for a flight test today.

Despite the strong wind copter behaves nicely, loiters steadily and overall is a lot of fun to fly.

New Raspberry Pi 2 gives clear advantages over the older model, we are able to run main loop at 400Hz without missing a single cycle.  This is what your PERF will look like if you fly RPi2:

Today Emlid team celebrates its first birthday, a year ago we have started the Navio project with an idea to fly on Linux. I would like to thank everyone who worked with us through this year and made all this possible. Special thanks go to our team members who work hard, but do not usually show up as authors of blog posts: Georgii Staroselskii, Egor Fedorov and Vlad Zakharov.

You can get a Navio+ here :)

Have a great weekend!

Views: 6283

Comment by JB on March 31, 2015 at 9:07pm

Hey Emlid

Wanted to get one but it seems I missed the offer...bummer!

Comment by Adam Erickson on March 31, 2015 at 11:07pm

Looks great! I imagine the relative strengths of the Erle Brain are its redundant IMUs and built-in 4GB eMMC, which add quite a bit of safety (e.g., no card to dislodge and cause a system crash). However, the BBB can be a pain even for simple things like WiFi due to a lack of support, while the RasPi2 and Odroid C1 are much faster. Honestly, I'm not sure which I prefer, but they are both very exciting to see. Let me know if I'm missing something.

Comment by Mikhail Avkhimenia on April 1, 2015 at 4:04am

@Adam Erickson

Even if SD card is ejected it won't lead to a system crash as APM on RPi+Navio will continue to work.

Comment by Adam Erickson on April 1, 2015 at 2:52pm

Does the Navio+ support stacking of the Odroids? I know drone computer vision researchers have done this successfully with the Odroid U3 boards. This could provide redundancy too, addressing the main system shortcoming.

Comment by JB on April 2, 2015 at 12:59am

Thanks Emlid

All good now! ;-)

Comment by Adam Erickson on April 2, 2015 at 6:29am

I'm in the same boat here as JB. Is it still possible to get the offer?

Comment by JB on April 2, 2015 at 6:37am

You might get lucky if you try it today...;-)

Comment by Emlid on April 2, 2015 at 6:42am

@Adam Erickson

Sure! We've now prolonged the "FLYLINUX" coupon for one more day.

What do you mean by "stacking of Odroids"? Two odroid boards connected to one Navio?

Comment by Adam Erickson on April 2, 2015 at 7:43am

Great, thank you! Can I order the ground station GPS as well?

Yes, two Odroids running in parallel connected to one Navio.

Comment by Mike Knott on April 2, 2015 at 9:56am

When will boards be shipping from this sale?


You need to be a member of DIY Drones to add comments!

Join DIY Drones


Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here

© 2020   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service