ArduCopter Raspberry Pi interface help

I'm working on a research project with a group to make a communications link that bridges one point to another through multiple quadcopters that automatically find the best position to loiter and land in to create the strongest link. The signal management and position algorithms would be handled by an onboard Raspberry Pi.

Does anyone know of any way to directly interface them, or has anyone done this already? I want to be able to set guided GPS points, get GPS position from the autopilot to the Raspberry PI, and still leave the autopilot unmodified. I'd prefer not to have to make a custom MAVLINK program to run on the Raspberry Pi, but if I have to, can I read the serial and only pull the values I need, and still be able to send guided points? Thank you for your help in advance!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Hi,

    If you don't want to modify ArduCopter you just have to interpret MAVLink on the RPi. Unless you only need the position - then you can branch the output wire from GPS in two - one to Ardupilot and one to RPi. You can't command the copter then.

    But believe me, it is to the better that there is only MAVLink on the wires. It is a neat and tidy protocol and the is a complete and working code generator that makes you efficient C code to read and write MAVLink.

    See this stupid but simple code that I wrote some time ago. It compiles on Linux and can read and write (some) MAVLink. It will get you the idea how easy it is. Of course you may improve with threads etc.

    To get the code generator, google for MAVLink, there it is. It is implemented in Python.

    Regards

    Soren

This reply was deleted.

Activity

Gremsy liked Gremsy's profile
Mar 12
DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
Nov 27, 2022
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Nov 24, 2022
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Nov 24, 2022
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Nov 24, 2022
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Nov 24, 2022
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20, 2022
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8, 2022
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8, 2022
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23, 2022
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23, 2022
DIY Robocars via Twitter
Oct 23, 2022
DIY Robocars via Twitter
Oct 19, 2022
DIY Robocars via Twitter
Oct 18, 2022
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13, 2022
More…