Connect a Raspberry Pi to a Pixhawk running Ardupilot/PX4

  Рет қаралды 162,018

Tiziano Fiorenzani

Tiziano Fiorenzani

Күн бұрын

Пікірлер: 357
@prandtlmayer
@prandtlmayer 5 жыл бұрын
To all the followers: here is a Facebook community where you can post projects, ideas, and questions. Open to everyone who wants to learn robotics... having fun Like the page and start posting facebook.com/tizianotutorials/
@RajPatel-vc6mg
@RajPatel-vc6mg 2 жыл бұрын
Is it possible to connect to the onboard Rasberry pi with rfd 900 telemetry or herelink telemetry? If so, can you make a video on how to set it up ? The short WiFi range for Rasberry pi communication is a big limitation and 4g is unreliable where I live. Thanks
@satyamraj6881
@satyamraj6881 4 жыл бұрын
Hi, Tiziano. Thank you for making these tutorials. I learnt how to program drones using your video and made an agricultural drone prototype for which I won a contest in college. Please upload more drone videos in the future:)
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Great to hear! Never stop learning and be passionate, post your experiments tests and fails
@prandtlmayer
@prandtlmayer 7 жыл бұрын
In the video I forgot to DISABLE THE BLUETOOTH. Open the file /boot/config.txt and add the following line: dtoverlay=pi3-disable-bt
@Jonasmelonas
@Jonasmelonas 5 жыл бұрын
Based on the audio, I believe this is Darth Vader's younger geeky italian brother
@yusufduran2422
@yusufduran2422 4 жыл бұрын
Thanks from turkey. Grazie mille Tiziano, da un turco-italiano. Sei il migliore.
@prandtlmayer
@prandtlmayer 6 жыл бұрын
I didn't add any system like that, but you can use a maverick image for that purpose. In my case I just set the host name up with a unique name (i.e. raspi-uav) so then I can refer to the host name as name.local (i.e. raspi-uav.local) rather than warring about fundung the ip address
@noahorosw
@noahorosw 7 жыл бұрын
Just a tip for all of you doing this project ! The pixhawk telemetry port 2 will not power the raspberrypi . You will have to solder power outlet wires from the main board , and connect a ubec to power the pi . Then you can ssh wireless to windows pc . Otherwise no connection .
@noahorosw
@noahorosw 7 жыл бұрын
At least for me the pi was just constantly rebooting , never actually starting . I hdmi a monitor to pi to find this .
@noahorosw
@noahorosw 7 жыл бұрын
Definitely install the ubec ! After finally loading Ubuntu Mate , the power cord that was supplied with the pi wasn't enough to power it ...
@maroquio
@maroquio 5 жыл бұрын
Hello! Did you get it working using RPi GPIO UART connected to UART telemetry port of the flight controller?
@PankajMali
@PankajMali 4 жыл бұрын
Hello I powered my rpi3b via the telemetry 2 port and it runs perfectly, the thing you said got me in a glitch as the setup is perfect running.
@alparslangazimemis
@alparslangazimemis 3 жыл бұрын
@@PankajMali Hi bro, did you use the UBEC?
@jasonlobo9379
@jasonlobo9379 5 жыл бұрын
Sir you are truly a great teacher. Hats off. I haven't seen any teacher be such great at teaching complex mechanisms like you have. Thanks a ton
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Thanks, your feedback is what makes me doing that
@noahorosw
@noahorosw 7 жыл бұрын
Perfect timing ! I have 10 days to make this happen .
@prandtlmayer
@prandtlmayer 7 жыл бұрын
Glad it was helpful
@noahorosw
@noahorosw 7 жыл бұрын
It's actually the project I'm working on ! Raspberrypi to Pixhawk on a HMF U580 quadcopter perfect for my project .
@atw98
@atw98 6 жыл бұрын
How did you go? did you get it going? and are you using 3/4g or just as an inboard companion?
@angelleal3005
@angelleal3005 4 жыл бұрын
@@noahorosw How did it go ? Same for me but with a Jetson nano instead of the pi.
@Lunasa0x01
@Lunasa0x01 3 ай бұрын
Thank you. I’ve been trying to do this for a long time!
@umutcanargun5108
@umutcanargun5108 2 жыл бұрын
Hi, Tiziano. Thanks for the tutorial, it's an excellent work. I have a question also: I have a raspberry pi which is to run a Dronekit-based object detection program; How can i access to my raspberry pi over the Mission Planner to get the object detection program started before the drone takes off?
@prandtlmayer
@prandtlmayer 2 жыл бұрын
Connect through wifi and build a simple user interface in python for example. Send UDP messages to command your raspberry pi
@sundaresann4749
@sundaresann4749 7 жыл бұрын
For next video, object tracking using opencv as you said (or) tracking mobile GPS as my suggestion. Great Video! Thanks
@prandtlmayer
@prandtlmayer 7 жыл бұрын
Sundaresan .N it probably won't be the next, but definitely a must do. Thanks
@delugemetric6934
@delugemetric6934 3 ай бұрын
Hi, i see this project is several years old. I am considering attempting this with the PixHawk6x and RPI cm4 Could you offer any imput on this?
@ais_robotic
@ais_robotic 9 ай бұрын
brother your teaching style is very good --Thank u . brother i have a problem that Mode change not work in dronekit ! no response in pychon3 but python 2.7 work properly . how i fix it??
@MrSiciro
@MrSiciro 5 жыл бұрын
Thank you very much but please slow down a little :-)
@TheMagogi
@TheMagogi 6 жыл бұрын
how the (public?) IP address is managed? Is there an AWS-like service to connect and reach the drone "node" when we go connected?
@angelleal3005
@angelleal3005 4 жыл бұрын
Hey Great Work. Can you make a video with a Jetson nano connected to the Pixhawk ?
@ahmetakifsaglam5675
@ahmetakifsaglam5675 3 жыл бұрын
Do you find anything?
@valentinibars8041
@valentinibars8041 4 жыл бұрын
I am using pixhawk 4 and a Raspberry pi 4 and connected them in serial through telem2 port on pixhawk 4. So I am using /dev/ttyAMA0 with baud rate fixed at 921600 (following ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html) but I have no heartbeat. Can you help me when I run test_connect.py
@yusufduran2422
@yusufduran2422 4 жыл бұрын
if you used pixhawk before, you should delete all files into pixhawk sd card.
@anghao7050
@anghao7050 4 жыл бұрын
Please Help me. at 6:07 I have a problem like this 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 E: Unable to locate package pyhton-matplotlib E: Unable to locate package pyhton-numpy E: Unable to locate package libxm12-dev thanks!
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Are you on python 2.7?
@anghao7050
@anghao7050 4 жыл бұрын
@@prandtlmayer Oh! thank you so much. I fixed it
@vishalbharati9384
@vishalbharati9384 4 жыл бұрын
thank you sir, will this work for fixed wings too?
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Yes, I have a video and a library that I developed just for fixed wing
@vishalbharati9384
@vishalbharati9384 4 жыл бұрын
@@prandtlmayerthank you for replying 😊.. yes sir i have watched it . its only about simulation will it work real models?
@raafsports1728
@raafsports1728 3 жыл бұрын
can you show us how to run any Python script on RPi and see the simulation on mission planner ? A small video this would be very helpful, thank you in advance
@ashokkummar7661
@ashokkummar7661 3 жыл бұрын
hi Tiziano, Thanks for this awesome tutorial video, I have one question, is the procedure explained in the video same for CC3D flight controller also ?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
As long as is Mavlink and runs Ardupilot it should be ok
@JARC99_
@JARC99_ 4 жыл бұрын
Hello, excellent video really helpful. I have a question, I'm looking into adding a linux computer to my projects but I am still not sure wether is better to add a Raspberry pi to a pixhawk controller or if I should go with a controller that alredy has the computer inside of it like the Beagle Bone Blue, what would you recommend?
@prandtlmayer
@prandtlmayer 4 жыл бұрын
If this is your first built I'd say keep things separated, a microcontroller based flight computer and a Linux companion PC.
@JARC99_
@JARC99_ 4 жыл бұрын
Tiziano Fiorenzani thank you. Do you have a recommendation on which pixhawk to buy?
@BrianLMurphy
@BrianLMurphy 6 жыл бұрын
I noticed that at the start of this video you you listed the Intel Edison as an option. That seems, to me a better option, so can you do a video on that setup? Or tell us how to use this instead?
@_tyrannus
@_tyrannus 6 жыл бұрын
Intel recently dropped the whole Edison project, in case you haven't heard already.
@reecejackson7210
@reecejackson7210 3 жыл бұрын
Would it be possible to connect a raspberry Pi to other flight controllers like the Mamba F405 directly with a raspberry pi? I am trying to do so using serial or PPM or SBUS but cannot find out how. It seems like the raspberry pi must act like a radio-controller. Would I need to use Betaflight or something else?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
As long as you know the protocol, you can connect with whatever you want. The very least interface level is using Servoblaster for controlling Gpios as servo and interface to the board as a radio receiver
@luisfcoleon3153
@luisfcoleon3153 4 жыл бұрын
Hi. I am very interested in this tutorial, but I don't know if you already updated the repositories of how_do_drones_work. Could you do a new tutorial? Good evening Bye
@alexkim1532
@alexkim1532 4 жыл бұрын
Hello, Hope all is well. Just a quick question on your companion computer (RPi) interface. How's the reliability with connection between micro USB port on Pixhawk to USB A port on RPi? Will it be reliable enough for running control loops on RPi while flying? Thank you in advance, AK
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Reliability is good, but I would not go that way. Use the serial port instead. You can go as fast as 1Mbps and does not have all of the hurdle and fragility of USB
@alexkim1532
@alexkim1532 4 жыл бұрын
@@prandtlmayer Thank you for your input! Will set up to use serial port instead of USB.
@luishernandez4964
@luishernandez4964 6 жыл бұрын
Great, thanks. i am anxious to learn more about the capabilities of a companion pc. Are you going to be making more videos about writing your own scripts. can you point me to some good resourcers on this topic.
@karatugba
@karatugba 3 жыл бұрын
I am always confusing about onboard and offboard topic... Could you answer it ? For instance, If I connect my any NVIDIA Jetson to my pixhawk though the UART, what will we say about it? Onboard or opposite?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
For offboard you mean the state in which PX4 accepts external commands?
@marcoHammond
@marcoHammond 7 жыл бұрын
Very interesting ! it's just what i'm trying to make! If I would like to buy a new drone (or make myself...) with pixhawk connectable to Rpi3 the way you show, where can I try ?
@prandtlmayer
@prandtlmayer 7 жыл бұрын
marcoHammond check out the Ardupilot.org or px4.io website, in their companion pc page. You can find even other all in one solutions
@xiaoxiao2838
@xiaoxiao2838 6 жыл бұрын
Thanks for the great tutorial Tiziano, something I was looking for. I have a little and strange problem though. I am not able to connect over USB (ttyACM0), connection times out. I do see ttyACM0 appear and disappear (ls /dev/tty*) as I plug and unplug USB cable but the following python script keeps on failing >> vehicle = connect ("/dev/ttyACM0", baud="115200", wait_ready=True)
@nebil.b
@nebil.b 5 жыл бұрын
Hi Tiziano, great video, how can I chose my flight controller? I'm seeking a more cheaper FC instead of Pixhawk that can run with raspberry pi + px4/ardupilot.. Because I'm in a project that will involve multiple autopiloting drones with flightpaths. Thank you.
@prandtlmayer
@prandtlmayer 5 жыл бұрын
There are many flavors and I do have my favorites. As for you, it depends on your budget. If you are setting up a cheap system, go with any 32 bit "pixhawk" clone (hobbyking, holybro, rctimer...) They will work fine, run Ardupilot or PX4 and they connect to any companion. If you need smaller boards, there is the pixfalcon and similar you can check out. The difference is that the smaller boards usually have only one IMU. Otherwise you can lean towards a RaspberyyPi hat type, like the Navio
@nebil.b
@nebil.b 5 жыл бұрын
@@prandtlmayer Thank you very much.
@nebil.b
@nebil.b 5 жыл бұрын
Sorry to bother you again Tiziano. Ciao, I will go for pixhawk or navio2 like you suggest, my project involves gps missions with the support of ardupilot or maybe px4. I've seek info about the pros and cons of both flight controllers but it seems that there isn't a reliable reviews about witch one chose. Seems like Navio2 has a better gps tracker (?). Any suggestions? And thank you again. Regards from Verona, Italy.
@rohaya-_-
@rohaya-_- 4 жыл бұрын
Is dronkit supported raspberry pi 4 + rasbian buster sir ?
@maroquio
@maroquio 5 жыл бұрын
First of all, thank you for your time on providing usefull tips for us. I'm really trying to do this connection using the FC telemetry port and RPi3 UART, but without success. My python code using dronekit works well using NanoPi NEO Air companion computer, but not using RPi3B+. I tried with RPi4B too, nut without success. I followed a lot of tutorials to config the UART ports in Raspberry Pi, but none of them made the thing works. Some data is arriving at /dev/ttyAMA0 according to minicom, but dronekit cannot stablish connection. Could you please give me any help with this? Thanks in advance!
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Probably you have still AMA0 assigned to Bluetooth. Check ttyS0
@maroquio
@maroquio 5 жыл бұрын
Tiziano Fiorenzani, it was the ground cable. I forgot it was mandatory to close the circuit with the UARTs. Thanks a lot for your time.
@최정훈-x9n
@최정훈-x9n 6 жыл бұрын
Great video. One question. I want to run dronekit python code from Raspberry Pi while connected to Pixhawk. And I want to see the process from mission planner which is connected with Piaxhawk with telemetry radios. When I tried it, it says mode 0 not available on mavlink definition. Don't know how to solve. Thank you
@prandtlmayer
@prandtlmayer 6 жыл бұрын
최정훈 stick with the tutorial. Have you followed step by step?
@anshularora
@anshularora 6 жыл бұрын
I am a little new at this and I am trying to build a Drone capable of autonomous flight. what can we do with connecting a raspberry pie? could send and receive data wirelessly (using Bluetooth or something else) ? and also could you connect a raspberry pie in a similar fashion to a audupilot? Thanks a lot :)
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Anshul Arora but this series is about that. I think you need first to step back and study deeper Ardupilot on Ardupilot.org, go through the wiki and then you can think of doing more advanced things
@The_Unobtainium
@The_Unobtainium 4 жыл бұрын
4:49 - shouldn't it be "browsable' instead of 'browesable'?
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Actually is "browseable" : www.samba.org/samba/docs/current/man-html/smb.conf.5.html
@luishernandez4964
@luishernandez4964 6 жыл бұрын
do this steps apply to the raspberry pi zero? I want to set it up as a companion pc and write python scipts and maybe opencv.
@prandtlmayer
@prandtlmayer 6 жыл бұрын
luis hernandez i setup the pi zero in the same way. Works nice, but not as powerful as the 3
@WimVandenBergh-t4c
@WimVandenBergh-t4c Жыл бұрын
Can you connect the telem2 of the pix hawk to giout tx and rx pin of the raspi if you have a 4ghat on the raspi already?
@prandtlmayer
@prandtlmayer Жыл бұрын
As long as those pins are unused, yes. You can also use a USB connection
@WimVandenBergh-t4c
@WimVandenBergh-t4c Жыл бұрын
@@prandtlmayer how can you check they are not used ? I could not find any video explaining the commands to change to have it connected to usb of raspi.
@angusfraser5562
@angusfraser5562 6 жыл бұрын
Tiziano, firstly thank you so much producing all of the onderful videos. I have a question though I got copter working just great I cant get plane to work as when it tries to download the plave zip file it says the file is not available. is there a super secret location where all the planes are kept:) thanks in advance#
@prandtlmayer
@prandtlmayer 6 жыл бұрын
I don't understand what file is trying to download. Anyway, my next video is about plane. Hold on
@angusfraser5562
@angusfraser5562 6 жыл бұрын
Sorry I was talking about using dronekit-sitl. It turns out the AWS instance that holds the plane image was down. I followed these instructions and in addition I configured USB as eth so that I can sh direct over USB by using this guide www.thepolyglotdeveloper.com/2016/06/connect-raspberry-pi-zero-usb-cable-ssh/
@prandtlmayer
@prandtlmayer 6 жыл бұрын
I personally don't use dronekit-sitl anymore, only if you want to test basic control, but the version of the firmware is outdated. If you run on Linux machine (not raspbian), you can run the ardupilot sitl with sim_vehicle.py. In windows you can do the same (even though it's a little bit more involved) or you can use Mission Planner and let it download the latest master rerlease and simulate it. I have a video about this
@atw98
@atw98 6 жыл бұрын
very greatful Thankyou for the push, got everything to get going just 1 question. Do you need both drone kit and Mavlink on the RPi. In the documentation it says you can load dronekit if you want to do tracking and add other features but is not clear if it is required to run just mavlink over 3/4g? If all you want is to control the drone not have video tracking and such, also it states that most of dronekit is in the mavlink API. After your little push I have done a lottttttt of reading and taken the huge learning curve as you suggested and followed your advice and I am very grateful that you pushed me to do that. Your right it is much more fun to do it yourself, I just didn't think I had the time so thanks for pushing me off my lazy Butt. Also did you every get around to do a dronekit Fixed wing/Plane setup? You mentioned that you had been working on such a video. I have not been able to find your video if so, so if you have could you please link it. Thank you again really appreciate it Gus
@prandtlmayer
@prandtlmayer 6 жыл бұрын
I am just collaborating with the local College for a paper about Fixed Wing and Obstacle Avoidance. I am developing the libraries and the SITL. So I will probably come out with a video about it soon. As for your question, Mavlink is just a protocol, dronekit is sort of a wrapper around the library pymavlink. It makes things much easier for you to handle a vehicle through mavlink interface, creating the object vehicle with lots of properties and methods and giving you the chance of creating your own messages and reading other messages using listeners. You can run dronekit on the companion pc as well as on the ground: it does not matter, as long as you specify the connection port. I have been using mavlink-router a lot to share the connection with the system to all the other nodes running on the same network. It's sort of mavproxy but lighter weight
@atw98
@atw98 6 жыл бұрын
Tiziano Fiorenzani so on your github repository would the mavlink api's work for a plane? Also just so you know after some reashearch all I want to do is be able to control my plane over3/4g with mavlink. Mavlink would give me the ability to actually do really long controled flights with a joypad or stick over mission planner GCS. I will obviously want to go further as I get into it but as for now its so I can switch to cruise mode then take over with FBWA and simple controls. Not image recognition or avoidance at the moment. Although that would be a fantastic thing for a plane but would need better than hobby grade sensors. If you could let me know if you feel that simple control through a GCS with just mavlink is achievable such as some of the videos on youtube of people just using gamepads to fly 15km it would be great. O and thank you not only have you made me study up on drone stuff I am making a RPi magic mirror for a family member with dementia to help them and integrating it with google home to try and make their life a little easier and it was your comment 'what fun would that be when I ask if I could just buy a RPi setup for flight so you have help in many ways, I am very greatful.
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Studying is the key. Never give up on studying, never feel lazy. Nothing is worse than laziness for an engineer. I had done that mistake in the past, never again. Anyway, I just setup a very nice python library for controlling a plane and I will be releasing the first issue with a video. It won't be long. You can arm and takeoff as a copter, control altitude and heading angle... very nice to expand.
@atw98
@atw98 6 жыл бұрын
Tiziano Fiorenzani looking forward to it. Am subscribed so look forward to a notice about the video.
@diegocamporeale6322
@diegocamporeale6322 7 жыл бұрын
ciao tiziano!video fantastico! tutto questo serve per avere una connessione remota dal drone al pc? ma é una connessione 4g ?spero di essermi fatto capire! grazie in anticipo!
@prandtlmayer
@prandtlmayer 7 жыл бұрын
Il tipo di connessione e' indipendente. Puoi connetterti con il companion pc tramite il wifi (che per quanto mi riguarda e' la cosa che faccio solitamente). Puoi certamente connettere un modem 4G all Raspberry e connetterti ad internet. Questo e' ottimo se vuoi gestire il tuo sistema da remoto, molto remoto. La Pi3 ha il wifi built in, e con un access point di buona fattura puoi avere un range di alcune centinaia di metri
@muhammadsaroshali2274
@muhammadsaroshali2274 5 жыл бұрын
I have an APM 2.8, If I connect the RPI on the telem port, then where will I connect the telemetry module used for connecting to the ground station through the Mission planner? There is only one TELEM port. Is there any way I could use both with APM?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Apm is not a good choice. Use any 32 bit board
@vitorhugolalanda1978
@vitorhugolalanda1978 6 жыл бұрын
Dear sir, fantastic vídeo! Can se aplly thís to a homnibus f4 or f3 series flight controles boards?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
As long as you flash Arducopter on it
@jimitjaishwal
@jimitjaishwal 4 жыл бұрын
Sir, can we connect pixhawk 2.4.8 with raspberry Pi and install drone kit?
@noahorosw
@noahorosw 7 жыл бұрын
I did it ! I got it to connect with test_connect.py at 57600 baudrate on the modified file ... COOL !!!!
@noahorosw
@noahorosw 7 жыл бұрын
Now that wasn't hard at all ...
@noahorosw
@noahorosw 7 жыл бұрын
I'm blown away ! Totally amazing .
@noahorosw
@noahorosw 6 жыл бұрын
I can't get the compasses consistent on the pixhawk with mission planner or mavproxy , I continue to receive bad AHRS , something about pos terrain all kinds of crazy stuff . Do I have to pull the pixhawk from the craft or is there a way around this ? The gyros are spinning out of control as compass - motor calibration .
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Noah Wheeler that sounds like a hardware problem. I'd post it on the forum. Mind as well doing a complete recalibration
@noahorosw
@noahorosw 6 жыл бұрын
I'm ready to do the flight test with the Raspberry pi but the craft just keeps flipping over , and mowing my lawn for me . The internal compass on the pixhawk I suppose is where I'm having the issue ? I don't suppose it would be the gps
@noahorosw
@noahorosw 6 жыл бұрын
Almost considering swapping out with the APM 2.8 so I can do the test . That will be a bit of work .
@prandtlmayer
@prandtlmayer 6 жыл бұрын
I think you got to change the autopilot. Post it on the forum
@noahorosw
@noahorosw 6 жыл бұрын
I think I fixed it I had to remove it from the quad , and Calibrate it without the gps connected so I knew which one I was calibrating . The GPS is Compass #2 in mission planner will re assemble and check everything , and recal the gps hopefully I will be good to go
@zeynepzelalkeles6746
@zeynepzelalkeles6746 4 жыл бұрын
4:59 We can't access to scripts folder before enter our password. Eventhough we write the password correctly we can't open the pidrone and access to scripts. The error is "Access is denied".
@zeynepzelalkeles6746
@zeynepzelalkeles6746 4 жыл бұрын
It says we don't have permission to access to the RASPBERRYPI network
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Verify you have followed all of the steps for setting up the board. You can also switch to "Mobaxterm" that includes an ftp server with drag and drop, so you can skip samba completely
@zeynepzelalkeles6746
@zeynepzelalkeles6746 4 жыл бұрын
@@prandtlmayer Thanks a lot for your answer, we opened file on PuTTy and made changes in it but we ended up with an error: Traceback (most recent call last): File "test_connect.py", line 80, in print("Maximum Throttle: %d"%vehicle.parameters['THR_MIN']) File "build/bdist.linux-armv7l/egg/dronekit/__init__.py", line 2714, in getitem KeyError: 'THR_MIN' We couldn't understand the error and we don't have much time. Can you tell what's wrong?
@zeynepzelalkeles6746
@zeynepzelalkeles6746 4 жыл бұрын
@@prandtlmayer We suppose 'THR_MIN' is no longer available as a parameter, what should we use instead of 'THR_MIN' ? Will 'THR_PASS_STAB' work?
@eto9432
@eto9432 3 жыл бұрын
Hello. the same problem happened with me. how did you solve the problem.
@redbearrc6706
@redbearrc6706 4 жыл бұрын
Hi. I am new to RP. Does all the programs work with RP 4 version? Thanks.
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Every single board computer running a Linux distribution would work. Some are better than others, but the raspberry Pi covers most of your projects and has a good support from the community
@FelipeLopez-ky3jp
@FelipeLopez-ky3jp 5 жыл бұрын
Hi, can i use the first generation of raspberry pi?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Yep
@anujregmi4582
@anujregmi4582 4 жыл бұрын
Hi tiziano can you please provide the details for the file, as i think you have removed or edited the python file dronekit_test_03.py
@joehannes23
@joehannes23 3 жыл бұрын
its renamed but still file 3 so just use that
@tejasu5259
@tejasu5259 6 жыл бұрын
Hello again. I'm trying to autonomously fly the quadcopter to a particular altitude using a raspberry PI. But each time I test it, the quadcopter seems to move in a diagonal direction to the desired altitude. It's never straight. Any reason why?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
what copter version are you running?
@tejasu5259
@tejasu5259 6 жыл бұрын
Hi. I've been trying to connect an APM 2.6 to Raspberry PI. The mavproxy.py executes correctly wherein I can arm the motors. But when I run the dronekit_test program is not able to arm the motors. In both case I'm accessing port /dev/ttyACM0. Can you please help me out? Thank you.
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Do not use APM2.6. It's too old. Use any 32 bit platform
@noahorosw
@noahorosw 7 жыл бұрын
I just want to say one more thing . You're awesome for doing all of this , for all of us . Weather we figure it out or not ? We should have to pay for this type of education you give away for free ... Thank you
@prandtlmayer
@prandtlmayer 7 жыл бұрын
Thanks Noah, that means a lot to me
@noahorosw
@noahorosw 7 жыл бұрын
Tiziano Fiorenzani did you get a chance to look at the connection logs ?
@prandtlmayer
@prandtlmayer 7 жыл бұрын
It looks like you are trying to connect with SS0. That is not possible. You need to stick with AMA0, but check the updated description for a missing part of the video
@noahorosw
@noahorosw 7 жыл бұрын
Tiziano Fiorenzani Okay I will soon as I get home
@noahorosw
@noahorosw 7 жыл бұрын
Okay I got it ... I can take it from here ... I will always follow your videos , and continue to build awesome QuadCopters .
@arpitsrivastava8431
@arpitsrivastava8431 6 жыл бұрын
Can i use pixracer along raspberry pi? Is there any difference between pixhawk and pixracer and pixhawk mini?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
arpit srivastava course you can. Any autopilot running ardupilot will do
@DavidKaden369
@DavidKaden369 7 жыл бұрын
Can you do a video how to setup Ardupilot with a cellular radio control link?
@prandtlmayer
@prandtlmayer 7 жыл бұрын
That is something I should learn myself first
@atw98
@atw98 6 жыл бұрын
David Kaden have a look at ANDRUAV. There are not many videos which I hope to rectify but it works straight out of the box with a phone one drone conected to pix and phone as GCS. I use it and works really well. I am trying to muddle my way through getting a RPI setup going then will swap over and see if any better than ANDRUAV. Free download only works on android. O and its free.
@MrSiciro
@MrSiciro 5 жыл бұрын
Perhaps we can do a python script to display osd information ?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Yes. Try it out!
@hafizawais4756
@hafizawais4756 5 жыл бұрын
plz tel me one thing how i can find coordinates while ardu connected with GPS and we take image from picamera ?????
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Once connected, use the vehicle.location field
@andrewwilkins4238
@andrewwilkins4238 4 жыл бұрын
earlier in the video it shows connection by serial to the raspberry pi. later it shows connection via micro usb. which one should we use?
@prandtlmayer
@prandtlmayer 4 жыл бұрын
For a quick debug you can use the USB. I'd recommend the serial port for your application, as sometimes the USB could trigger some debugging mode you don't want during the flight.
@richardoboyd
@richardoboyd 4 жыл бұрын
i am running a sub rov and its set up using Raspi3 with a holybro Pix4. the Pix4 died on me and was given a a radiolink pixhawk4. Looks the same but it would not connect to the RSPi. So i updated the Pix4 with a pix4 firmware and still nothing. I am new to this and so been searching all over the net for 3 days for a solution. any suggestion? Thank you.
@prandtlmayer
@prandtlmayer 4 жыл бұрын
What firmware are you running
@richardoboyd
@richardoboyd 4 жыл бұрын
@@prandtlmayer good news i manage to get the sub rov to work. I use the Qground control. Discovered i had lost power to the dc distribution system because of a faulty hobbywing ESC. Got that changed out bit now my sub's thruster will only turn in one direction. I swapped the thruster with a brand new unit but still the same result. Tried to swap channel on the Pixhawk but the results are the same. The ESC is the identical make and model as the faulty unit. Maybe it needs to be setup as its a new esc? Any advise?
@akshaytimmalapur
@akshaytimmalapur 6 жыл бұрын
Hello Tiziano. Its a good video I must say. I am working on similar project. I want to communicate with dropix flight controller using Matlab script via Rpi 3 model B. Can you please suggest me any of your tutorial on this or the steps I need to carry out to successfully do what I want. I am new to using flight controllers, Mission planner (Qgroundcontrol) and Rpi so any help would be appreciated. Thanks
@prandtlmayer
@prandtlmayer 6 жыл бұрын
First be sure you can connect with the autopilot as show in the video. After that is just a matter of writing your python script in the Raspi to control your vehicle. You can chose dronekit, mavros (recomended in your case probably) or, if you plan to use a PX4 stack, Dronecore (dronecore.io/). Matlab will run on your PC on the same network and you are to be sending UDP packets to the Raspberry pi, that must interpret the packets and command the vehicle accordingly. You can either write your protocol or use ROS and standard messages
@akshaytimmalapur
@akshaytimmalapur 6 жыл бұрын
I am following the steps of your video. I was able to put OS image on sd card. I do not have a monitor and keyboard and mouse for Rpi, so I am trying to connect Rpi from Laptop running windows, using puTTy. But I am unable to connect to the Rpi and error is "connection timed-out". Any sugguestions whats happening and what should be done? Thanks
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Actually there are a few ways of doing that. The first and easiest was to put a /boot/wpa_supplicant.conf file as specified here: raspberrypi.stackexchange.com/questions/10251/prepare-sd-card-for-wifi-on-headless-pi . This will make your pi connect with the wifi, so you can use putty to connect to pi@raspberrypi.local . Or, you can connect an ethernet cable to the pi and connect the same way through putty. Then modify the wpa_cupplicant.conf for setting up your wifi
@TurBull4nc3
@TurBull4nc3 4 жыл бұрын
Hi i did all the steps following the video and even disable rpi 3 bluetooth, however i got an error which state serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttACM0: [Errno 2] No such file or directory: '/dev/ttACM0'
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Ok, by default ACM0 is given to the bluetooth. Check again that step. Otherwise you can use the default port, should be ttyS0 (?). You can check with ls /dev/tty*
@AldoMauricioCastroFreire
@AldoMauricioCastroFreire 4 жыл бұрын
I am getting this error in the throttle part any reason why ? print("Maximum Throttle: %s" % vehicle.parameters['THR_MIN']) File "build/bdist.linux-armv7l/egg/dronekit/__init__.py", line 2714, in __getitem__ KeyError: 'THR_MIN'
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Since the time of the video, they changed the name of the parameter
@AldoMauricioCastroFreire
@AldoMauricioCastroFreire 4 жыл бұрын
@@prandtlmayer is there a new name, also I have been researching, does it support pixhawk 4 ?
@mendiguinhomarinheiro
@mendiguinhomarinheiro 5 жыл бұрын
hello! I can use a RBPi zero?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Yes. The pi0 can do everything. Just much more slowly. It depends on the complexity of your application.
@eliasgeiger5445
@eliasgeiger5445 4 жыл бұрын
I can confirm that the combination pixhawk (mRo) and raspi zero w works. But make sure to avoid any performance bottlenecks to make the best out of the limited resources. 1. only use raspian lite image without gui and any unnecessary packages 2. Disable BT AND the service hciuart to use the real hardware UART (ttyAMA0) device instead of miniUART (ttyS0) 3. Create/enlarge swapfile to prevent memory shortage problems 4. Disable all services that aren't required for your application 5. power it over a reliant source that can provide enough current at a stable voltage (e.g. BEC) and also check the power consumption of your USB peripherals, the raspi zero USB OTG port can't output much power by default and therefore is often a troublemaker
@RohitPatil-xz9jj
@RohitPatil-xz9jj 6 жыл бұрын
Great video, sir. I am getting an error that /dev/ttyACM0 doesn't exist (can't open the port ttyACM0) Can you help me, please?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
type ls /dev/tty* and check what ports you have. If you plug the autopilot with a USB cable (not recommended for real flight, use the UART instead), the port is usually ttyACM0 unless there is something else on that port or the port is still appended to the previous session. It will then assign ttyACM1 or ttyACM2.... If you use the UART, the predefined port on the Pi3 is ttyS0 or ttyAMA0 if you have disabled the bluetooth (as stated in the description)
@circuitbender4013
@circuitbender4013 7 жыл бұрын
to ssh into raspberry pi 3 just take the ssd card, install ubuntu on it, then go to the roots folder and create a folder called ssh then get your ip scanner of choice, connect the raspberry via LAN and scan for your pi everything else is common, go to terminal, ssh pi@ip and your in like flinn with raspberry as password
@prandtlmayer
@prandtlmayer 7 жыл бұрын
Course you can, but when you have multiple boards connected, the easiest way to me is to give each of them a different host name and then connect with name.local, rather that sniffing their ip every time
@AhmetOmerOzgen
@AhmetOmerOzgen 6 жыл бұрын
Can I install win10iot core for rasp pi 3, (I will plug a small stick 4g modem I hope drivers will work on win10 core). And then install mission planner windows version to rasperry pi 3 and control the pix hawk 4 via bluetooth or wired connection?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
I don't know, but it's worth trying
@PAWELEKTRONIK
@PAWELEKTRONIK 4 жыл бұрын
Witam. poproszę podaj linki do pobieranie, wsady oprogram dla rapberry pi? czekam odpowiedzi, dzięki.
@prandtlmayer
@prandtlmayer 3 жыл бұрын
Spróbuj w opisie
@khtan5531
@khtan5531 5 жыл бұрын
Dear sir, I have followed the steps in the tutorial to modify the Samba smb.conf file but I am not able to see the Raspberry device under network in Windows nor any shared folder. The settings I used in the smb.conf file is workgroup=WORKGROUP, wins support= yes, netbios name= raspberry. Did I make any mistakes ? What is the purpose of the shared folder ? is it critical for communications between the Raspberry Pi and Pixhawk controller ?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Did you set the samba password?
@khtan5531
@khtan5531 5 жыл бұрын
@@prandtlmayer, yes I did. Does it have anything to do with windows? I am using win10 on a laptop.
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Sometimes it's just windows. Try and force the research of your device, typing the address on the address line on top of your windows. Like //raspberrypi.local
@dheerajchaudhary7132
@dheerajchaudhary7132 6 жыл бұрын
Hi, I want to integrate my own Android app with Tower. My current app connects through raspberry pi hotspot. But tower requires internet access. So how should I integrate my app with tower provided my raspberry pi acting as a hotspot(access point).
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Dheeraj Chaudhary tower requires internet only for downloading the map. After that you should be good. I used it in conjunction with mavproxy on the pi multiple time
@dheerajchaudhary7132
@dheerajchaudhary7132 6 жыл бұрын
okay got it, will try again.
@ahmetakifsaglam5675
@ahmetakifsaglam5675 3 жыл бұрын
What about connection of Pixhawk and Jetson Nano?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
It works the same way
@annoying228
@annoying228 2 жыл бұрын
Hello, Can i use the ARDUCOPTER instead of the PIXHAWK?
@prandtlmayer
@prandtlmayer 2 жыл бұрын
Arducopter is the name of the firmware running on the Pixhawk, which is the name of the autopilot I have used
@annoying228
@annoying228 2 жыл бұрын
@@prandtlmayer My apologies i meant APM 2.8 Flight controller
@prandtlmayer
@prandtlmayer 2 жыл бұрын
No problem. No, the APM are not supported anymore
@TurksihBoy
@TurksihBoy 3 жыл бұрын
Hi everybody. Does Ardusub support to connect pixhawk 2.4.8 with pi 3 model B ?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
Are you using a 32bit board?
@TurksihBoy
@TurksihBoy 3 жыл бұрын
@@prandtlmayer yes. Pixhawk is a 32 bit board. ArduSub firmware is provided for many of these platforms, but only the Pixhawk 1 is fully tested and supported. So i just want to know there is someone test pixhawk 2.4.8 with ardusub
@arpitsrivastava8431
@arpitsrivastava8431 6 жыл бұрын
But i have one question that how to power raspberry pi, extenally using 5V usb or through pixhawk only.
@prandtlmayer
@prandtlmayer 6 жыл бұрын
arpit srivastava you power the pi directly from the dc/dc or a separate battery. If you have a good 5v dcdc you can use pin 2 and 4 to power it, otherwise use the micro usb port, that has its protections.
@arpitsrivastava8431
@arpitsrivastava8431 6 жыл бұрын
Tiziano Fiorenzani Means i have to just connect receive an transmission wire in raspberry pi if i use external power supply of 5V Or power raspberry pi using pixhawk
@arpitsrivastava8431
@arpitsrivastava8431 6 жыл бұрын
Please give full tutorial along with all wiring connection
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Check it out on the official documentation page: it's all there: ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html
@arpitsrivastava8431
@arpitsrivastava8431 6 жыл бұрын
Tiziano Fiorenzani Thanks ...How can i autotune my drone using dronekit..means automatic pid tuning
@AldoMauricioCastroFreire
@AldoMauricioCastroFreire 4 жыл бұрын
is there any reason why we use the lite version of raspbian ?
@prandtlmayer
@prandtlmayer 4 жыл бұрын
You don't need a lot of the included software
@arpitsrivastava8431
@arpitsrivastava8431 6 жыл бұрын
Bro can you tell how to install latest firmware on pixhawk of arducopter 3.4
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Well, bro, 3.4 is probably a two year old version. In any case, you can use any Control station software you like, like Mission Planner. Follow the wiki on ardupilot.org
@rayanlobo5455
@rayanlobo5455 6 жыл бұрын
Could you do a video on companion computer systems like APsync: ardupilot.org/dev/docs/apsync-intro.html or maverick: goodrobots.github.io/maverick/current/#/ and connecting them to the mission planner on the groundstation
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Yes, those are two serious projects. They are on my list
@selinayyazici8424
@selinayyazici8424 4 жыл бұрын
Hello sir, now i am working on a autonomous UAV fixed-wing project. I was happy and pleasured to see your working. Thank for that. I have an issue that when i tried to install samba i am having problems as temporary faliure resolving 'raspbian.raspberrypi.org'. I searched for solution but couldnt find helpful one. Hopethat you will help me about that. Have a nice day
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Samba is just a tool for helping you sharing content. You could also use an ftp server (Like the one already included in MobaxTerm), or git
@ismaellayth
@ismaellayth 3 жыл бұрын
Can I connect Arduino mega to Pixhawk through the USB port?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
I would not recommend that, but if you run mavlink on Arduino, then yes
@ismaellayth
@ismaellayth 3 жыл бұрын
@@prandtlmayer Thanks for the answer ❤💐
@matfen7978
@matfen7978 3 жыл бұрын
Simply amazing, grazie!
@siddhivinayaksahoo5048
@siddhivinayaksahoo5048 3 жыл бұрын
Sir can you please guide me about how do i connect apm 2.8 with raspberry using usb..... I tried connecting it using uart but failed miserably now not even connecting to mission planner..... Please help sir
@prandtlmayer
@prandtlmayer 3 жыл бұрын
Do not use 8bit boards
@mrzfpv7871
@mrzfpv7871 Жыл бұрын
hello i have been following your tutorial for some time and i was able to this raspberry Pi and Pixhawk connection successfully and now i have to use a different controller the cuav v5++ but i tried the same way as the Pixhawk but it's not able to send data i will be happy if you could assist because it is for my 2nd year project i will be happy to share the progress of the new drone with you if you are interested
@nurashams4093
@nurashams4093 6 жыл бұрын
Is there other board can be connected with raspberry pie
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Every autopilot compatible with Mavlink in general. For dronekit, better Ardupilot
@arpitsrivastava8431
@arpitsrivastava8431 7 жыл бұрын
How can we spin drone 360 degree or flip it using pyhton dronekit
@prandtlmayer
@prandtlmayer 7 жыл бұрын
arpit srivastava use servo override, if you dare
@arpitsrivastava8431
@arpitsrivastava8431 7 жыл бұрын
But how can you explain
@prandtlmayer
@prandtlmayer 7 жыл бұрын
Put in Acro mode and use the servo override to control the attitude rates. Check the dronekit api page for more details on servo override
@arpitsrivastava8431
@arpitsrivastava8431 7 жыл бұрын
I am unable to understand can you give me links?
@prandtlmayer
@prandtlmayer 7 жыл бұрын
Here you find all the documents you need to start understanding: python.dronekit.io/ I do not recommend you to do it though. The communication is not fast enough to let you program something like that on the companion. Branch out the ardupilot or px4 firmware and go straight into the autopilot
@robobillgr
@robobillgr 6 жыл бұрын
Hello very good job. I am trying to connect RPI to ardupilot 2.8. Is it possible? If yes i would appreciate some feedback and if no I would also appreciate some feedback. Thanks! :)
@prandtlmayer
@prandtlmayer 6 жыл бұрын
I don't recommend going this road. Use a 32 bit instead. Any board
@b5nj1m9n
@b5nj1m9n 5 жыл бұрын
It would be helpful if you explained what and why you were doing things instead of just telling the steps... I do know how to set it up but I have no clue why you changed the memory to 1024 and what’s X11 tunneling is
@prandtlmayer
@prandtlmayer 5 жыл бұрын
If you watch the other videos of the playlist they might answer you why I am setting up a companion PC. In this video I just show how. The swap memory is jist the virtual memory, that is a little small but default.
@b5nj1m9n
@b5nj1m9n 4 жыл бұрын
@@prandtlmayer Thank you for your answer, indeed it helped.
@edinhthong5139
@edinhthong5139 6 жыл бұрын
many thanks for a very helpful video
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Sure, I am glad it did help you
@erberkuyar5996
@erberkuyar5996 3 жыл бұрын
I can not installing samba to raspberry pi 4 . There is many errors occurs. can u help
@prandtlmayer
@prandtlmayer 3 жыл бұрын
I don't understand why. In my case, you can Use MobaxTerm for ssh and SFTP all in one tool
@LNasterio
@LNasterio 6 жыл бұрын
I'm only here to check how he made his wire, but I don't see him showing it??? Did I miss out anything????
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Asterio No, "he" doesn't show the wiring, but refers to a detailed documentation in the description: ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html
@LNasterio
@LNasterio 6 жыл бұрын
Sorry I just realised what an idiot I was... Thanks so much for the video! it helped a lot.
@ravipashchapur5803
@ravipashchapur5803 4 жыл бұрын
Can we use ardupilot instead of pixhawk...
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Ardupilot is the op n source firmware running on a pixhawk. Pixhawk identifies the hardware and is a brand.
@dinesh1286
@dinesh1286 6 жыл бұрын
Is there a way to connect pixhawk 2.1 to raspberry pi?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Same way. Through the telemetry port
@Capozzi3
@Capozzi3 4 жыл бұрын
Any updates?
@MinePossu
@MinePossu 5 жыл бұрын
It qould be amazing to controll the drone with 3g network. Nice video btw
@prandtlmayer
@prandtlmayer 5 жыл бұрын
It actually is. For example check this video: kzbin.info/www/bejne/n4bGpYljqdabla8 or even this example with a Navio2 (basically a Raspberry Pi on steroids) diydrones.com/profiles/blogs/navio-awsome-flight-controller-from-emlid-tested-with-4g-cellular
@eliasgeiger5445
@eliasgeiger5445 4 жыл бұрын
Yeah that's exactly what I am currently working on. I use a Huawei 4G LTE USB modem with a Sim inside. I created a crontab entry that automatically connects to an openvpn Network after system boot. This way the drone is reachable over the internet from any GCS that is connected to the same OVPN network. Additionally mavlink-router service must be installed, configured and running in background so that the telemetry traffic is routed from udp socket to the serial port and back. It takes a bit of work but once it runs stable it is indeed very powerful. The remote control range over mavlink of your drone is now unlimited as long as mobile reception is available.
@mandyooi9963
@mandyooi9963 5 жыл бұрын
Hi! Thank you for this video. May I ask, after connecting rpi and pixhawk, how do I execute an .elf file through pixhawk? Through a flip switch or button? (editted: ps i'm using existing raspbian_jessie because working with MATLAB)
@prandtlmayer
@prandtlmayer 5 жыл бұрын
An elf file? Why?
@mandyooi9963
@mandyooi9963 5 жыл бұрын
@@prandtlmayer Hello! This is because I typed my algorithm in MATLAB, MATLAB converted my .m file into a c code thus, exported an .elf file into rpi
@prandtlmayer
@prandtlmayer 5 жыл бұрын
I can't help you on that
@lukeconnolly7185
@lukeconnolly7185 3 жыл бұрын
I keep getting "CRITICAL:autopilot:Connection to ground station lost" when I run the test script, does anyone know why this is?
@joehannes23
@joehannes23 3 жыл бұрын
Apparently you need to have the gps module connected. Had the same problem and connecting it worked
@lukeconnolly7185
@lukeconnolly7185 3 жыл бұрын
@@joehannes23 from what I've researched since my comment, I believe you're right, its that I need a gps. Do you happen to know if there is a work around for this or will I just have to get a gps module?
@joehannes23
@joehannes23 3 жыл бұрын
@@lukeconnolly7185 hey sorry I just realized I'm a little Dumb lol xD just set the wait_ready parameter to false and it will work without the GPS module
@lukeconnolly7185
@lukeconnolly7185 3 жыл бұрын
@@joehannes23 Ha no problem, thank you. Do you happen to know the name of this parameter in QGroundControl using PX4?
@joehannes23
@joehannes23 3 жыл бұрын
@@lukeconnolly7185 no idea. I'm really new to this and never used qgroundcontrol. But I would assume if it's possible you will find something googling for it.
@viviersstrauss3547
@viviersstrauss3547 4 жыл бұрын
I am running raspberry pi 3B+ with APM 2.8 When running your python test script my program terminate at "CRITICAL: Initialize APM..." the exact message displayed can be seen bellow. PLEASE HELP >>>> Connecting with the UAV > %Run dronekit_test_03.py
@prandtlmayer
@prandtlmayer 4 жыл бұрын
APM 2.8 is not compatible. Move to a 32 bit controller
@dr.kamaljitbasan245
@dr.kamaljitbasan245 4 жыл бұрын
Can I use Raspberry Pi 4 with Pixhawk
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Anything will work, any Linux or windows board
@mikaellucas2174
@mikaellucas2174 5 жыл бұрын
I can't connect with the network, how can i create the network?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
What network?
@mikaellucas2174
@mikaellucas2174 5 жыл бұрын
The folder shared with raspberry pi and OS, like in 7:03
@prandtlmayer
@prandtlmayer 5 жыл бұрын
You mean using samba?
@arumugarajar2930
@arumugarajar2930 5 жыл бұрын
Where is test_connect.py! i didnt find any
@prandtlmayer
@prandtlmayer 5 жыл бұрын
I just restored the missing file as 01_test_connect.py
@trojanX3000
@trojanX3000 6 жыл бұрын
I am getting this error even after ensuring that all the above steps are correctly done. Please help ! >>>> Connecting with the UAV > Link timeout, no heartbeat in last 5 seconds >>> No heartbeat in 30 seconds, aborting. Traceback (most recent call last): File "test_connect.py", line 18, in vehicle = connect(connection_string, baud=baud_rate, wait_ready=True) #- wait_ready flag hold the program untill all the parameters are been read (=, not .) File "/home/pi/.local/lib/python2.7/site-packages/dronekit/__init__.py", line 2845, in connect vehicle.initialize(rate=rate, heartbeat_timeout=heartbeat_timeout) File "/home/pi/.local/lib/python2.7/site-packages/dronekit/__init__.py", line 2117, in initialize raise APIException('Timeout in initializing connection.') dronekit.APIException: Timeout in initializing connection.
@prandtlmayer
@prandtlmayer 6 жыл бұрын
What arguments do you pass to th script? How are you physically connected to the autopilot? What hardware are you using?
How to Control a Drone with the Keyboard using Python and Dronekit
7:52
Tiziano Fiorenzani
Рет қаралды 90 М.
This tiny computer changes EVERYTHING
15:57
Jeff Geerling
Рет қаралды 832 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 54 МЛН
小路飞和小丑也太帅了#家庭#搞笑 #funny #小丑 #cosplay
00:13
家庭搞笑日记
Рет қаралды 17 МЛН
How To Connect PixHawk to Raspberry Pi and NVIDIA Jetson
8:28
aka: Matchstic
Рет қаралды 43 М.
Here 3+ CAN GPS For Ardupilot & PX4
17:20
Mads Tech
Рет қаралды 17 М.
Every Developer Needs a Raspberry Pi
27:27
Sam Meech-Ward
Рет қаралды 1 МЛН
DON'T Use Raspberry Pis for Servers! (Use THIS)
16:23
Hardware Haven
Рет қаралды 1,2 МЛН
I Control EVERYTHING with this Raspberry Pi
8:58
Jeff Geerling
Рет қаралды 362 М.
4G/LTE Plane/Drone Telemetry (Ardupilot and RaspberryPi)
14:38
🔥iPhone will never beat Android💀
0:15
DARKXQTO EDITZ
Рет қаралды 1,2 МЛН
Чудик раз*е*ал PS5 просто так🤡
0:37
Арбуз
Рет қаралды 180 М.
Which one made you like this video?#keyboard
0:32
Tapkx
Рет қаралды 9 МЛН
APT APT tutorial #rosé #apt #cute #robot #tutorial
0:28
Dr. EMO
Рет қаралды 6 МЛН