PX4/MAVLink Integration

Firmware/software/electronics/mechanics
Post Reply
dennis
Beginner
Posts: 1
Joined: Fri Sep 23, 2016 2:08 pm

PX4/MAVLink Integration

Post by dennis » Sat Sep 24, 2016 11:56 am

Hi all, In our lab, we have many larger drones running on the Pixhawk platform, and I thought it would be great to have a lower cost and smaller drone that we could use to test trajectories before applying them to the more expensive and dangerous drones, and to use our space more efficiently for swarming. We chose the CF2 platform due to it's hackability and comparable specs to a full flight controller.

For interoperability between the entire code base, I recently ported over the Crazyflie 2.0 drivers to the PX4 flight stack: http://dev.px4.io/hardware-crazyflie2.html.

Incase anyone was interested, I've open sourced all the work into the main PX4 repository. Currently it has full flight functionality with support for all onboard sensors and motors. The wireless driver also retains partial support for CRTP so can fly with the mobile app. But, more importantly, it supports full MAVLink over wireless via a Crazyradio PA (it is multiplexed via a reserved CRTP port).



gwiily
Beginner
Posts: 20
Joined: Wed Dec 02, 2015 2:12 am

Re: PX4/MAVLink Integration

Post by gwiily » Mon Sep 26, 2016 3:10 am

It's a great work

whoenig
Expert
Posts: 326
Joined: Mon Oct 27, 2014 2:55 am

Re: PX4/MAVLink Integration

Post by whoenig » Mon Sep 26, 2016 3:12 am

Great work - thank you for sharing! Do you see any changes/improvements in terms of flight performance if your run PX4 vs. the default firmware?

tobias
Bitcraze
Posts: 1995
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: PX4/MAVLink Integration

Post by tobias » Mon Sep 26, 2016 6:58 am

Great work and thanks a lot for sharing! We have had the idea of doing it for a long time but never gotten to it.

As @whoenig says it would be nice to get a quick comparison.

graboosky
Beginner
Posts: 16
Joined: Mon Jan 27, 2020 8:11 am

Re: PX4/MAVLink Integration

Post by graboosky » Sun Mar 15, 2020 7:34 pm

Hi, great idea!

One question. Can I use Crazyradio with pixhawk? I mean one Crazyradio PA on GCD and one Crazyradio PA on drone side?

kimberly
Bitcraze
Posts: 326
Joined: Fri Jul 06, 2018 11:13 am

Re: PX4/MAVLink Integration

Post by kimberly » Mon Mar 16, 2020 3:40 pm

So technically with a lot of hacking, sure you can. But I wonder if that is necessary at all to honest.... You can bridge the CRTP protocol over the existing bridge that pixhawk already has for the computer. For instance, somebody did this for PRRT to act like an crtp bridge here in our library: https://github.com/bitcraze/crazyflie-l ... n/pull/141

graboosky
Beginner
Posts: 16
Joined: Mon Jan 27, 2020 8:11 am

Re: PX4/MAVLink Integration

Post by graboosky » Sat Apr 11, 2020 11:13 am

And what is PRRT?
I would like to use Crazyradio with Raspberry pi as bridge so I could talk to Raspberry through wifi-MAVLink and rest comunication would be handled by Raspberry. But not sure it is way to go. What do You think?

kimberly
Bitcraze
Posts: 326
Joined: Fri Jul 06, 2018 11:13 am

Re: PX4/MAVLink Integration

Post by kimberly » Tue Apr 14, 2020 12:16 pm

Prrt stands for: Predictably Reliable Real-time Transport, and this is a communication protocol used outside of the CF universe (https://www.nt.uni-saarland.de/project/ ... transport/).

Mavlink with crazyradio doesn't seem like a good idea... Doesn't pixhawk also have their own dongle that you can connect to your raspberry pi? The crazyradio's firmware would need to be adjusted to much in order to accommodate the MAVlink and I'm not sure its easy or even possible.

A major recommendation, is to look to the existing tools that are already implemented. The pull request that I send in a previous pose is also meant for using a raspberry pi. The communication between the rasppi and the computer is just different. Maybe start out there so that you will have a better feel of what is possible. We haven't done this ourselves with MAVlink+raspberrypi so it is difficult to help you with that.

Post Reply