Connecting Raspberry Pi w/ Pixhawk and Communicating via MAVLink Protocol
Вставка
- Опубліковано 23 сер 2024
- 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/d...
You can download Raspian Jesse here:
www.raspberryp...
Here are the steps to install Raspian on your SD card:
www.raspberryp...
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.
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?
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.
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!
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.
This is exactly what I was looking for, thank you. Eagerly looking forward to your next tutorial.
Thank you for watching.
Awesome, thank you. Finally i got it working because of your clear video. Greetings from Holland
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.
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.
Thanks for this video. Looking forward to more on this and anything you can share on obstacle avoidance.
Thanks for following. Appreciate the feedback.
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, 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.
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.
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.
hello guys there are few things that have changed following the 2016 to 2020, the raspberry pi no longer calls rasbian but the raspberry pi OS which is the same. The most important thing is that the wxgtk2.8, you can use 3.0 so follow the linux installation of the MAVproxy that line of the code from them and then the rest is same ...enjoy...
Hii which document is this?
@@ishikakajaria8754 which document means????
@@anujregmi4582 the linux installation one but I found it thanks. I keep getting Link one down after I test the mavproxy. Can u help me why this is happening?
@@ishikakajaria8754 Well Currently i am not working in that but i cannot say you exactly what is going wrong i need more information, I can try to see if possible send me a video. But there is another guy also who has made a recent video about raspberry pi connection with Pixhawk. This is his video link:
ua-cam.com/video/kB9YyG2V-nA/v-deo.html
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!
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.
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.
I was liiking for a video like this! thank you!
Amazing. Can no wait for your next videos. Keep up the great work.
Awesome, thanks for explain and presentations. I appreciate it 👍
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.
thank you so much.The detail you showed is just I need.
No problem. Glad it helped.
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.
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!
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.
Excited for the rest!
Thanks. Appreciate you following along.
This is exactly what I need. Thanks man.
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
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.
Hallo Dennis..
I have a problem when the connect to pixhawk..
When the syntax is run, the command is "link 1 down" and "no link"..
Can you help me to solve the problem..
Thank you..
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.
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 :)
Thanks bro
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.
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!
Awesome, can't wait to see more
Thanks. Appreciate you following along.
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!
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?
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!
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
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
I would like to control a GoPro camera on my quadcopter - switch between video/still and trigger the camera.
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?
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!!
How do you get your pixhawk to recognize the camera module? I have been looking for a while and cannot find anything ):
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.
Thank you, Thank you, Thank you, Thank you, Thank you
Wow I had no idea this was even remotely possible :O
Great video. Have a question. While running drone using MAVlink protocol, can I also see that drone's status connecting to Mission Planner?
Very helpful tutorial. I am using an APM 2.8 flight controller.Can I proceed with the same procedure for APM.
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.
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?
Hi Denis , thanks , really thanks for your vidéos .
No problem. Thanks for watching.
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.
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.
Hi Dennis... both the Telem ports on my Pixhawk are already occupied... what would be the option to connect a RPi to the Pixhawk?
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 ?
Instead of a mac, would a pc/laptop running windows 7 / 10 could be used?
Thank you.
Henri
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.
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.
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!
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, 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?
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 ?
Thank you for this video.
Subscribed
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 very mich for this tutorial! have you ever used the raspberry pi as a receiver for the pixhawk?
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.
I am having a power-up issue. It says low battery power. Any idea how I can overcome this. Same hardware R-Pi4 + pixhawk 2.4.8
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?
Hi, do u connect a telemtry radio to your raspberry pi as well or just the pixhawk and the computer?
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?
V. good information. Can you attach the link for "installing DroneKit and using Python to do some interesting things with Raspberry Pi and Pixhawk "
sir please help i have error this error while connecting to my rpi2 with pixhawk..
serial exception devise respond readiness to read but returned no data (multiple devices connected or multiple acces on port?)
sir i have done everything but unable to
Would you recommend buying a pixhawk 2.4.8 like yours in 2020 or should I look for something better? I'm plannin on using a companion computer as well.
Excellent video BTW :-)
The most common flight controller is still Pixhawk. Navio2 is also pretty sweet. You're building an aerial drone? I'm building a sub.
FLUX_CAPACITOR yes, an aerial one :-)
Great presentation
What is the range a FPV Can transmit?
200 KM?
May I ask... do this system have to be used with pixhawk??? or its compatible with other AP like the ardupilot? I'm very interested.. but in honesty I just can't change all my aircraft auto pilot controllers...
A lot of ArduPilot based flight controllers support companion computers as discussed here: ardupilot.org/dev/docs/companion-computers.html I have messed with APM 2.6 but will take a look. Good luck getting going.
Can we establish the connection using serial0 instead of ttyAMA0?
Can arduino connect with the pixhawk while the arduino are connected in 3 sensors like ph do and turbidity sensor?
your the man! awesome video!
Thanks for the good words. I appreciate it.
Are there any commands that can be run through Rpi Terminal where the wheels would move?
Thank you very much for this
No problem. Glad to share it. Thanks for the feedback.
Hey, I hope you will see this comment. I am new to raspberry pi coding and I am not sure which raspberry pi model to buy. Will this image still work on a raspberry pi 4?
Great video, do you think it’s possible to connect the nvidia nano with a wifi add on for nano
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.
Dennis, At 10:22 into this video you show changing the Uart from zero to two. Looks like in my version of Raspbian jessie that line is not there at all. Have you noticed this and possibly have a way around it? Also did you have to change your values in mission planer such as SERIAL2_Protocal. It dose not look like they are listed in MP anymore. Thanks for the videos too.
I'll have to take a look at this as I'm not really sure. It's been a few months since I've messed with this setup, but I plan on revisiting soon. I'll share what I find out and please do the same if you figure it out first. Thank you.
Thanks for the reply, I think I have found out how to enable the serial channel on the newest version or Raspbian jessie. I don’t have it in front of me now but if you click the raspberry in the top left corner of the desktop it was under preferences or system settings. Basically its in the same screen to enable ssh and VNC. I still need to find the parameter for the serial ports on the pix-hawk to get it to work. Did you do this too. I noticed this step was not in your video.
Update, I think I got it workings with out changing any of the prams. I think there is an extra space in the documentation for the code to install on the pi 3. I copied and pasted from git hub these lines in the link. github.com/bduva002/ardupilot_wiki/commit/4264da1884e3dd835de864ebea316b76e4c65059 .
Now I just have to figure out why the modes wont change. when I type mode RTL i get argument is not a float or it is unknown.
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.
brother i just can read data but arm throttle, mode GUIDED -like as setting command not work
how can i do now? plz tell me?
Hi. You connected raspberry pi and mac with Wi-Fi network
I will fly my drone(pixhawk connected by raspberry pi) outside.
and I wanna keep connection between my laptop and raspberry pi while drone is flying even far away
flight distances would be 1/4 miles(maximum).
I know using RF modules, I can get streaming video data.
But I wanna receive not only video but also image processing data using openCV and send extra operation messages from my laptop to drone.
Do you know the solution about this problem?
Thanks~
The telemetry radios definitely are the way to go for traditional command/control. Regarding OpenCV and accessing the image data I'm not sure what the best approach is at the moment. I have a similar need and will continue to research and share my findings. Let us know if you figure anything out as well. Thanks for the question and wish I had a better answer.
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.
hello, can you do the same with pixhawk cube orange and pi4 as i'm getting some tracback error, if u have the solution let me know how to sort it out. thank you
Hello, i'm unable to install some of the libraries and would love for some help. i'm getting those after the line i type in:
sudo apt-get install screen python-wxgtk2.8 python-matplotlib python-opencv python-pip python-numpy python-dev libxml2-dev libxslt-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libxslt1-dev' instead of 'libxslt-dev'
Package python-wxgtk2.8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python-wxgtk2.8' has no installation candidate
Any advice?
Thanks
Thank you for the video. I have a telemetry connected to my laptop. Is it possible to send data from my laptop to raspberry pi over Pixhawk?
I need to know a little bit more about your setup. Is there a telemetry module connected to Pixhawk? If so you should be able to connect your Pi to another telemetry port and get MAVLink out of it.
Why did you disable serial link with raspi-config in the beginning and then enabled it in the boot script? Any specific reason?
Awesome video - Thanks!!!
No problem. Thanks for following along.
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.
Hi Dennis, I wonder if there is a way i can use Raspberry pi to save GPS data from pixhawk while at same time it tooks pictures from Raspberry pi camera i hope there is code or any instruction on how doing it :) i'm doing a similar project as u did here i must say i really enjoy ur channel. I already connected my pixhawk to Raspberry, and everything works fine.
Very cool to hear about your project. I'm not sure about saving the GPS data while taking a picture. That sounds like a neat idea. Hopefully I can look into this soon. Thank you for the feedback on my channel. Take care.
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