Connecting Raspberry Pi w/ Pixhawk and Communicating via MAVLink Protocol
HTML-код
- Опубликовано: 29 июл 2016
- This is a high-level overview of setting up Raspberry Pi (amzn.to/2a78kf8) with Raspian OS and installing the necessary libraries to communicate with Pixhawk using MAVLink/MAVProxy. This is something I've been experimenting with over the last year and wanted to share the process.
In upcoming videos I'll demonstrate installing DroneKit and using Python to do some more interesting things with Raspberry Pi and Pixhawk.
This ArduPilot page is what I used to do the initial setup:
ardupilot.org/dev/docs/raspber...
You can download Raspian Jesse here:
www.raspberrypi.org/downloads...
Here are the steps to install Raspian on your SD card:
www.raspberrypi.org/documenta...
It's really an exciting time to be in the world of UAVs. I hope this video was helpful and please post any questions or comments below.
I can't thank you enough for making these videos. They're the only video tutorials out there on using companion computers with pixhawk. They're really getting me through my college project.
Good luck on your project and thanks for the good words. I appreciate it.
The one and only youtuber making some higher end tutorials about drones connecting raspberry pi and pixhawk, with dronekit. Very interesting :) I sure hope there will be more tutorials about RPI and pixhawk coming!
Thanks so much for the good words. Yes more RPi/Pixhawk stuff coming soon. Take care.
Hi sir. I have done the dronekit configuration. However, I can only read from Pixhawk, I couldn't send commands from RPI to pixhawk. Any idea why?
ive been so interested in building a Long range fixed wing with autonomous capabilities read a load of non sense crap on groups when i asked about Pixhawk Ardupilot etc no one gave me a straight answer felt discouraged and demotivated, its very nice of you to explain in so much detail, atleast now i have proper superficial knowledge about what is what and whats going on, thanks allot!
This is exactly what I was looking for, thank you. Eagerly looking forward to your next tutorial.
Thank you for watching.
Perfect project! Can't wait to see all the uses that can come out of this setup. Gr8 vid, way to go!
Thank so much for the feedback.
Hey Dennis
Your timing is incredible. I am currently working on a raspberry pi 3b project using Emlid apm sheild along with Emlid Reach. Unlike yourself, I am far from a computer programmer. So I'm running into a language barrier. Thank God I have teenagers. Looking forward to future videos on this discussion. Thanks for keeping us all in the loop Dennis
Keith
Keith, Emlid looks like some serious computing power! I'm familiar with Edison but wasn't familiar with Emlid until you mentioned it. I'll post an update soon and hopefully we can all learn from each other on this topic. Thanks for the feedback and I hope all is well.
That's pretty impressive Dennis; I was presented PI some 1 year ago from an open source club in Phnom Penh; and here we are integrating PIxhawk and this small powerful enough computing PI machine! Wow; this looks promising for a few Grams more on the craft with its slaves commands.... Cheers once again for such inspiring tutorials intros; truly inspiring... The only problem is that I do not code on Linux! ;( Cheers and Safe Flying!
I'm not sure if you're into programming at all, but if you are I'd love for you to join our gitter chat sometime. Maybe we can collaborate on some projects together. gitter.im/dbaldwin/DronePan Take care.
Amazing. Can no wait for your next videos. Keep up the great work.
Thanks Dennis, exactly what I'm wanting to explore. Thanks for sharing and keep the videos coming.
My pleasure. I've really enjoyed working with Pi and Pixhawk, of course. Thanks for following.
Awesome, thank you. Finally i got it working because of your clear video. Greetings from Holland
Wow that was an eye opener! I had no idea that was being developed. Thanks for sharing.
No problem. I've really enjoyed the flexibility of having a companion computer that communicates with the main flight controller. It really opens the doors for some interesting drone applications.
Wow, this is great stuff! Im very excited to see what you can do with computer vision with the Pi!
You and me both :) Thanks for following along and I hope all is well.
I was liiking for a video like this! thank you!
Wow, awesome is an understatement. Thanks for kindly sharing Dennis. As usual, you rock! I intend to do a similar setup soon I hope, and this helps.
Thanks for the feedback. Good luck when you get around to it. I think you'll find the possibilities are limitless.
This is exactly what I need. Thanks man.
Thanks for this video. Looking forward to more on this and anything you can share on obstacle avoidance.
Thanks for following. Appreciate the feedback.
Great Dennis, as always very useful and as others have said very exciting. I look forward to further instalments.
Appreciate it. I will be posting an update soon.
Excited for the rest!
Thanks. Appreciate you following along.
Another great video!! I'm waiting for the next one. I'm gonna start playing with dronekit.
Glad to hear that. I hope you enjoy it and please let us know how it works out for you.
Hi Dennis,
Thanks for this very good video!
However, when we try to apply the video, we have been stucked at the following part:
pi@raspberrypi:~ $ ls /dev/tty*
/dev/tty /dev/tty19 /dev/tty3 /dev/tty40 /dev/tty51 /dev/tty62
/dev/tty0 /dev/tty2 /dev/tty30 /dev/tty41 /dev/tty52 /dev/tty63
/dev/tty1 /dev/tty20 /dev/tty31 /dev/tty42 /dev/tty53 /dev/tty7
/dev/tty10 /dev/tty21 /dev/tty32 /dev/tty43 /dev/tty54 /dev/tty8
/dev/tty11 /dev/tty22 /dev/tty33 /dev/tty44 /dev/tty55 /dev/tty9
/dev/tty12 /dev/tty23 /dev/tty34 /dev/tty45 /dev/tty56 /dev/ttyAMA0
/dev/tty13 /dev/tty24 /dev/tty35 /dev/tty46 /dev/tty57 /dev/ttyprintk
/dev/tty14 /dev/tty25 /dev/tty36 /dev/tty47 /dev/tty58
/dev/tty15 /dev/tty26 /dev/tty37 /dev/tty48 /dev/tty59
/dev/tty16 /dev/tty27 /dev/tty38 /dev/tty49 /dev/tty6
/dev/tty17 /dev/tty28 /dev/tty39 /dev/tty5 /dev/tty60
/dev/tty18 /dev/tty29 /dev/tty4 /dev/tty50 /dev/tty61
pi@raspberrypi:~ $ sudo -s
root@raspberrypi:/home/pi# mavproxy.py --master=/dev/ttyAMA0 --baudrate 57600 --aircraft MyCopter
Using MAVLink 1.0
Using MAVLink 1.0
Connect /dev/ttyAMA0 source_system=255
Running script /root/.mavinit.scr
-> module load droneapi.module.api
DroneAPI loaded
Loaded module droneapi.module.api
no script MyCopter/mavinit.scr
Log Directory: MyCopter/logs/2016-08-15/flight15
Telemetry log: MyCopter/logs/2016-08-15/flight15/flight.tlog
MAV> Waiting for heartbeat from /dev/ttyAMA0
I can not get any heartbeat. It stucks at this stage.
Could you please send your suggestions about this issue? Why it stucks at this stage and what should I do?
Thanks in advance.
Hi Dennis,
Thanks for this very good video!
However, when we try to apply the video, we have been stucked at the following part:
pi@raspberrypi:~ $ ls /dev/tty*
/dev/tty /dev/tty19 /dev/tty3 /dev/tty40 /dev/tty51 /dev/tty62
/dev/tty0 /dev/tty2 /dev/tty30 /dev/tty41 /dev/tty52 /dev/tty63
/dev/tty1 /dev/tty20 /dev/tty31 /dev/tty42 /dev/tty53 /dev/tty7
/dev/tty10 /dev/tty21 /dev/tty32 /dev/tty43 /dev/tty54 /dev/tty8
/dev/tty11 /dev/tty22 /dev/tty33 /dev/tty44 /dev/tty55 /dev/tty9
/dev/tty12 /dev/tty23 /dev/tty34 /dev/tty45 /dev/tty56 /dev/ttyAMA0
/dev/tty13 /dev/tty24 /dev/tty35 /dev/tty46 /dev/tty57 /dev/ttyprintk
/dev/tty14 /dev/tty25 /dev/tty36 /dev/tty47 /dev/tty58
/dev/tty15 /dev/tty26 /dev/tty37 /dev/tty48 /dev/tty59
/dev/tty16 /dev/tty27 /dev/tty38 /dev/tty49 /dev/tty6
/dev/tty17 /dev/tty28 /dev/tty39 /dev/tty5 /dev/tty60
/dev/tty18 /dev/tty29 /dev/tty4 /dev/tty50 /dev/tty61
pi@raspberrypi:~ $ sudo -s
root@raspberrypi:/home/pi# mavproxy.py --master=/dev/ttyAMA0 --baudrate 57600 --aircraft MyCopter
Using MAVLink 1.0
Using MAVLink 1.0
Connect /dev/ttyAMA0 source_system=255
Running script /root/.mavinit.scr
-> module load droneapi.module.api
DroneAPI loaded
Loaded module droneapi.module.api
no script MyCopter/mavinit.scr
Log Directory: MyCopter/logs/2016-08-15/flight15
Telemetry log: MyCopter/logs/2016-08-15/flight15/flight.tlog
MAV> Waiting for heartbeat from /dev/ttyAMA0
I can not get any heartbeat. It stucks at this stage.
Instead of ttyAMA0, I also tried serial0. But it did not send any heartbeat either.
Could you please send your suggestions about this issue? Why it stucks at this stage and what should I do?
Thanks in advance.
thank you so much.The detail you showed is just I need.
No problem. Glad it helped.
Nice work! Looking forward to some practical applications for this.
Thanks, Phil. Good luck with your projects.
Dennis Baldwin My main interest is in using thermal imaging on a drone. I have a Tarot 680 with Pixhawk and Four Duo-R almost ready to fly, so interested in how I may be able to add some AI functions.
Awesome, thanks for explain and presentations. I appreciate it 👍
Great vid. I've planned to experiment w/ CV on a 150lb rover I built. Object recognition and tracking is high on the list for my project. Watching your progress w/ RP closely.
Sounds like an awesome rover!!! I'm by no means an expert when it comes to object recognition, but will hack together an example. Thanks for following along.
Awesome, can't wait to see more
Thanks. Appreciate you following along.
This is very cool, I am just trying to do the same thing only with the Beaglebone . . . your video was very helpful. Thanks!
Glad it helped and good luck with your Beaglebone project. Keep us posted on your progress!
Thanks for sharing the info please do your videos on weekly basis or monthly basis , i am waiting for flight of the transition plane quad you had build .i really like your habit of deep understanding of the systems.
Thanks for the good words. I'll try to post more often. Appreciate your feedback.
Wow I had no idea this was even remotely possible :O
Thank you for this video.
Subscribed
Cool stuff Dennis! I played with this a little while back but never got very far. Plenty of ideas and not enough time...
I hear you. There is always never enough time ;) Thanks for the feedback.
Dennis, I purchased QAV400 years ago I was going to use a raspberry pie and pixhawk to control QAV400, I am missing few items. Do to a job I put this aside for since 2013 and would like to finish my QAV400.
Current Specs:
- Lumenier QAV400 frame
- T-Motor MT2212-11 1100KV motors
- fpvmanuals 30 amp ESC’s with SimonK firmware
- 3DR Pixhawk with GPS
- APC 8x4.7 SF and APC 8x4.7 SFP
- GoPro Hero 3 camera
- Lumenier 5200mAh 4S battery
As you can see I am missing few items, but my intent was to control the QAV400 via smart phone or tablet. I see you connected a raspberry pie, but not for that purpose, I love to pick your brain, so I can finish this build.
Awesome! thanks for sharing!
No problem. Thanks for following along.
Awesome video - Thanks!!!
No problem. Thanks for following along.
your the man! awesome video!
Thanks for the good words. I appreciate it.
I am a novice, I am looking forward to a tutorial on how to use mavlink and connect with raspberry PI, thank you very much for sharing
This is it. Thx thx thx looking for it boss. Thx again 👍
Hi Denis , thanks , really thanks for your vidéos .
No problem. Thanks for watching.
Thanks bro
thank you for this tutorial, it's great :D
No problem. Glad to hear it helped.
Dennis, I've tried it on my px4 and it works, but why on my APMpro the mode can't change? always stay in STABILIZE mode
my problem is fixed, I try to add --mav10 in mavproxy command, I found it here : ardupilot.github.io/MAVProxy/html/getting_started/starting.html
Many many compliments Dennis!! I want to make something similar to you but with openvpn on 4g network between the raspberry and the pixhawk :-)
That sounds like a great project. Please keep us posted on any progress!
+Dennis Baldwin yes, for sure!!
PixHawk, Debian, SSH, Python
I wish it was Christmas here in TX so it wasn't so hot! Glad you are into all these technologies. I absolutely love them. Have a great week yourself.
Thank you very much for this
No problem. Glad to share it. Thanks for the feedback.
This is a great demo. I look forward to watching more of your videos. Have you experimented with Intel Edison and Pixhawk? I have a Pixhawk 2 w/ integrated Edison. I want to learn how to program it similar to what you have done.
I have limited experience with Edison but would really like to get more familiar with it. Thanks for watching and I appreciate the feedback.
your video is so awesome :)
Thanks for the feedback and following along.
I first want to thank you for this awesome viedo and channel, it has served as a great inspiration for a bunch of academic and personal projects I am planning on undertaking. Using OpenCV for object detection and tracking on UAV platforms is one of the topics I am interested in and I'm looking into buying a Raspberry Pi 4 for this. I am kinda of on a budget so I wanted to ask you, whether the 2GB Raspberry Pi 4 would be enoguh for this application or if getting more RAM would be mandatory?
Sir, I did like u what u done in youtube it showing same problem left ones right and right ones left compass calibration. Pls help me sir.
I quite recommend Navio+ for those wanting to go that way. It is a hat (daughterboard) for the pi. Does away with the pixhawk and runs an rtl distro.
I've been wanting to check that out. Thanks for sharing your experience.
Where does the control of the RPi step in? Does it override the current Flight Mode (e.g. Mission) and the Telemetry 1 Port or what? And can I also use the RC at the same time, because I thought the RC was usually connected to Telemetry 2 port.
Cool! Next thing to do would be to put a 3G module on Raspi for extremely long distance communication and fpv with a bit of lag :)
Totally! I've been thinking about a cellular modem would be cool. Even if it could grab images from the PI and upload them in realtime. Hadn't thought about streaming FPV. That would be interesting :)
Hi Denis, another very interesting video, thanks for that. Supposing one built a bunch of programs on the Pi and wanted to trigger them from the ground e.g.: to execute custom flight operations, what do you think would be a good way to go about that? Is it possible to transmit commands from the operators Tx (I have a Taranis) to the Pi to trigger these 'operations' or would it be necessary to have a separate command radio to transmit commands? I was wondering if it would be possible to use MAVLink to encode ones own command protocol and add those commands to whatever method is used to send e.g.; MAVlink commands from a ground station like qgroundcontrol to the aircraft. My real desire is to use this to develop a richer camera controller for the Olympus OPC 4/3 camera, but its analogous to executing remote commands on a Pi, in fact the same protocol might be used to operate the Raspberry Pi camera, or to control some other kind of sensor such as Lidar etc.
This is such a good question that I've been sorting through lately. I'll post some more info later this week. I'm traveling right now but have some ideas to achieve this. I like your idea of more fine grained control of the your camera. I've been wanting to do the same with my Canon S110 and other cameras that I put into my wing.
Thank you so much for the sharing. I have a question about the Raspberry PI you used. Is it a 32bit or 64bit? Does it matter? Thank you.
Thank you very mich for this tutorial! have you ever used the raspberry pi as a receiver for the pixhawk?
Thank you, Thank you, Thank you, Thank you, Thank you
Great video. Have a question. While running drone using MAVlink protocol, can I also see that drone's status connecting to Mission Planner?
Dennis, great video (as all your others - you are great). The possibilities are huge. Could you share what is your big plan? I guess this will help (at least for me) build a mental picture and fit the puzzle pieces together... Tks!
No big plan other than experimenting with opencv and some other external sensors to give input to Pixhawk. I'd love to get OpenCV object recognition for avoidance and tracking. I'm not an expert in this area, but want to experiment with that combined with DroneKit. Hope that gives you some insight. If you have any suggestions I'd love to hear them. Thanks.
The 6 pin ftdi to toe entry cable is found where? What’s it called or how do you make one?
I had trouble with this myself, but ended up getting it working. I would be very interested if someone has a better suggestion:
-I bought a set of "Dupont" wires
-My pixhawk came with a telem to telem 6 pin wire
I cut the telem cable in half, and spliced each of the wires to a dupont wire of the corresponding color (leaving the 4th, and 5th pins unconnected) according to these instructions:
www.researchgate.net/publication/323683430_Communicating_with_Raspberry_Pi_via_MAVLink
Very helpful tutorial. I am using an APM 2.8 flight controller.Can I proceed with the same procedure for APM.
Very nice tutorial, thanks! Do you know if this would work on Matek H743-wing V2 FC? Or just the Pixhawk? Cos it's kinda expensive and I'm looking for an alternative FC into Ardupilot where I could connect many sensors too
Question: Is it a good practice to feed the pi directly from telemetry port?. I want to do something similar but I´m afraid about the current that the pi will drag from the pixhawk.
The pi3 continues to reboot , and I can't connect through ssh . So I plug in hdmi , and see the pi trying to reboot . So I solder small power outlet wires from main board , and install ubec and plug into pi . Now I can ssh to pi no more trying to reboot everything works good . Don't use telemetry port 2 to power pi .
I have a similar experience where the pi kept trying to reboot when it was powered from the telemetry 2 port. I ended up using a small powerbank to power the pi via its own usb port and strapped it to my drone.
Hi Dennis
I have a question or maybe a clarification.
I have been seeing everywhere, whenever RPI and Pix are connected - it is suggested to do over Telem1/2 to RPI serial Pins or use an FTDI connector to an RPI USB.
What should happen if we connect it directly from Pixhawk USB to RPI USB?
I tried that connection and it still works at least for reading Flight data using Drone kit. Just wanted to know, why it is recommended to connect over telem port!
Thanks in advance!
interesting thanks for sharing.
No problem. I hope you're doing well.
im doing well thanks, been studying for 107 how about you ?
Hi Dennis, what version of raspberry are you using? We are testing on a PI v1, and the mavproxy service loads 90% cpu, with a very slow response. Thanks for sharing your videos.
Version 2. I've never used V1 so I'm not sure if that's a known issue. Please let us know what you discover.
How can i get the realtime image from the drone to my Laptop.
Hai, I am trying to connect my pixhawk to rapberrypi. Could you please let me know where to find the command list (documentation) for communicating to pixhawk from raspberry terminal ? I mean commands you mentioned here like 'Arm safety off'.
I am looking for controlling altitude, roll, pitch and yaw from terminal so i need a related command list to do the same.
Thanks in advance!
In my case I have a jetson nano and a pixhawk mini. I don't have a second telemetry port on the pixhawk. Can I use any other port and do the same software configuration you did here ?
Thnk you for this video ...i have a question about the pixhawk ...can we change the algorithm of PID control with an other algorithm if yes how can we do it
Hi there! Nice and useful video, thanks for sharing. Just a quick question, hope you can help me: do you know if I can supply the Pixhawk with a power supply instead of a LiPo battery? I will be a lot of time working with PC, so I don't need to fly the drone yet. Thanks for your time and hope you are ok these days!
Hello. Thank you so much for this tutorial. I’m going to make a flying wing with 4g telemetry like this but the problem is that the official 3DR pixhawk isn’t available in my country, and a clone of that from Radiolink is also expensive and is said to be not much stable so I was thinking if I can do the same using apm2.8 and an old frimware of ardupilot. Is that possible and is that the same as what you showed in the video? Thank u so much in advance for your help.
I'm working with an Arduino to receive telemetry information via serial 4 on PixHawk however some but not all MAVLink messages are received despite boosting the rates: for example setting SR2_EXT_STAT to 10Hz and I still only receive 2/7 messages which are supposed to be bundled with SR2_EXT_STAT. Do you know if PixHawk limits which messages go to the extra serial ports or if I am missing some step in getting the other messages?
Why did you disable serial link with raspi-config in the beginning and then enabled it in the boot script? Any specific reason?
Dennis, thanks for such a great educational video. I'm considering putting together a Drone with Pi Zero (or Pi Zero W) and the PXFMini flight controller (designed for Raspberry Pi by Erle Robotics). Have you tried something similar?. are there any advantages of your setup over the one I'm considering?.
Thank you for the kind words. I don't have any experience with either of those hardware components, but sounds like a really cool project. I've seen both of them and have wanted to mess around with them. Please keep me posted on how your project goes.
Did you make a video for image processing? I want to load OpenCV in my Raspberry Pi, do image processing and tell the UAV where to go, but I can't find how to set the waypoints dynamically. Thanks
I'll need to look into this. I haven't been able to do any image processing yet, but definitely plan to. Let us know if you come up with anything. Thanks.
Great video, do you think it’s possible to connect the nvidia nano with a wifi add on for nano
Could I use this with the Arducopter 2.6 instead of Pixhawk?
NICE VIDEO. if instead of using an ardupilot for a drone, if I have to use ardusub in pixhawk to control my REMOTELY OPERATED SUBMERSIBLE, how will I start the mavproxy?
Awesome video. Now I can combine machine learning and drones. Is anything cooler? ;) Thanks for this video, nice job.
No problem. Yes machine learning with drones can definitely lead to the killer app. My ML skills are weak but I'm trying to become more proficient.
I am planning to use ROS2 with Fast DDS in my companion computer, in this case do I need to install Mavlink? I have read px4 guide page and there was always a Mavlink for Flight Mode etc. And I confused. Could you help me with this issue?
Hello Dennis, have you used the dronekit api? I need to use it on raspberry PI, but I could install it :( Can you help me?
Does this allow you to control servo out puts? If yes could use this with a 4g modem to fly and stream video over 4g network
HAve you made any further videos regarding RPi3 with pixhawk ? If any please send link of it thanks
Where can I get that df13 to raspi cable
Hi, do you know something about ardurover? I am looking for help
Hey dennis great Video. I was curious if I can read sensor values(accelerometer and gyro) from the Pixhawk to Raspberry Pi during flight and issue commands to the pixhawk from the Pi, like move from Point A to Point B and maintain pose and prevent drifting?
Definitely possible based on the documentation I've read, but have never implemented this before. If I can get some free time I'll put together a tutorial. Thanks for the question and good luck with your setup.
Are there any commands that can be run through Rpi Terminal where the wheels would move?
Hi, do u connect a telemtry radio to your raspberry pi as well or just the pixhawk and the computer?
Rpi console gets hung when I install pymavlink "sudo pip install pymavlink". Any suggestions or solutions? Thanks
I bought a rpi 2 just to see if my problem was with the 3. It didnt get me a heartbeat so I tried the rpi 2 and a new pixhawk. I got a heart beat! I went through the setup wizard for the new pixhawk. Immediately after I arm, it goes into disarm: STABILIZE> arm throttle
STABILIZE> Got MAVLink msg: COMMAND_ACK {command : 400, result : 0}
ARMED
Arming checks disabled
DISARMED
Thanks Dennis for your help!
So glad to hear that. Good work Ashley!
i have some quaestion about video processing in raspberry. can i use video tx from camera raspberry after processing in raspberry and direcly sending by video tx to Ground station. if possible what port in raspberry can use to connect to video tx? thx
I'm not sure about this. I don't have experience working with video processing and RPi but will hopefully look into it in the future.
I am currently trying to connect a Jetson nano with the Pixhawk but haven't found much information about it. Do you know if it's possible ? and maybe how to approach this task ?
Hi Dennis Great Presentation. I am using Cube PX2 with Raspberry pi. I see an issue with MAV> Link 1 Down. I cannot get around it. Any Ideas?
Is it possible to connect the Raspberry Pi 3 to the Pixhawk via the USB ports on both devices (instead of connecting the GPIO pins to the Telem port) ?
It should be.
You can also connect it with USB, that's necessary if you want to use the Intel compute stick with a powerful Core M. Just allow the serial coms back using raspi-config then use the command "mavproxy.py --master=/dev/ttyACM0 --baudrate 57600 --aircraft MyCopter"
if the command is not working, try "ls /dev/tty*" with you ardupilot device unplug and again after you plug it back, you should have a new ttyxxxx device.
Good tip. Thanks for sharing!
Hi Dennis... both the Telem ports on my Pixhawk are already occupied... what would be the option to connect a RPi to the Pixhawk?
Hey Dennis, really good job here. I wanted to ask you i did what you show here exactly but after online system 1 script i had no line APM ... When i tried to enter a command, it doesnt show me anything. I have just 'STABILIZE>' line here. Im using rpi zero and apm 2.5. Another note i wired them with logic level converter. Thanks for your help...
Strange. It almost sounds like something is wrong with your RX line where responses are coming back. I'll give it some more thought and let you know if I come up with anything. Let us know if you figure out anything from your end. Thanks for the comment.
if you use APM you must add --mav10 , it will be mavproxy.py --master=/dev/ttyAMA0 --baudrate 57600 --aircraft MyCopter --mav10
explanation in here : ardupilot.github.io/MAVProxy/html/getting_started/starting.html
How to flash ardupilot on pixhawk or it comes along it already?
Could I use a Pi Zero and a GoPro to do this? Will I pilot my drone in a long range watching the video in qgroundcontrol? Thank you a lot!
I think you can but you need to solder in the RPIO pins if you use an extender. I tried without soldering and it failed, but moved to a pi 3 and it worked, I believe because the RPIO pins are connected, not just passing through a loop.
I would like to control a GoPro camera on my quadcopter - switch between video/still and trigger the camera.
Hi! how to make mission planner way points give order to raspberry take a picture? thanks
Hi, I am currently working on a project that involves an onboard Raspberry Pi, I have a question that how do I communicate with the onboard computer from my laptop on the ground, shall I add a Wireless internet connection onboard the UAV or is it possible to communicate via the telemetry radio connected to Pixhawk?
Can arduino connect with the pixhawk while the arduino are connected in 3 sensors like ph do and turbidity sensor?
How did you get the cable to connect the pi and pixhawk (6pin gpio to telem connection). If you made it yourself, do you have parts list for what you used incl tools?
I wired up the cable per this diagram:
ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html
and used the telemetry cable that shipped with my Pixhawk. Wired it to one end of an FTDI connector I had like in this photo:
www.ftdichip.com/Products/Cables/USBTTLSerial.htm
Obviously not the USB end but the end with the black connector.