Dronekit setup, simulation and visualization on Mission Planner

  Рет қаралды 123,040

Tiziano Fiorenzani

Tiziano Fiorenzani

Күн бұрын

Пікірлер: 320
@antonypaul5402
@antonypaul5402 Жыл бұрын
Bro, I got an error while executing this code Showing error: autopilot:ARMING MOTORS
@iamprudhvigattu
@iamprudhvigattu 8 ай бұрын
Bro did you resolve the problem? I'm also getting the same error I need to fix it. It's urgent
@asnaeb2
@asnaeb2 Жыл бұрын
In 8 minutes from install to functional. THANK YOU for this amazing tutorial that gets to the point very quickly.
@prabhakargupta1767
@prabhakargupta1767 4 жыл бұрын
well i cant believe why this amazing channel has soo less subs and views do all youtube users just watch shit instead learning something
@malakzitouni1924
@malakzitouni1924 5 жыл бұрын
Hi Tiziano! Thank you I followed the procedure and when i run the script of control with arrow keys i end up with this error "ERROR:autopilot:DISARMING MOTORS"
@mrsaraf3459
@mrsaraf3459 4 жыл бұрын
I'm seeing the same thing, it arms then immediately disarms. Did you figure it out by any chance?
@anujregmi4582
@anujregmi4582 4 жыл бұрын
@@mrsaraf3459 i too have the same problem it says error:autopilot:ARMING MOTORS, WARNING link timeout, no heartbeat in last 5 seconds Error:Autopilot:Disarming
@nayeemkhatib9596
@nayeemkhatib9596 4 жыл бұрын
Hi could any one figure out the reason for the error and the way out ?
@anujregmi4582
@anujregmi4582 4 жыл бұрын
@@nayeemkhatib9596 Well the problem is the dronekit version that you installed.. What is the version that you have...The one that works are version 2.9.0 and Dronekit sitl 3.0.1 something like this...
@tankaichuen1258
@tankaichuen1258 4 жыл бұрын
@@nayeemkhatib9596 I found out the problem. The issue is the vehicle mode is not switch to GUIDED mode, although you already set it in your script. lol. I have to set it manually in Mission Planner before executing the script. MY goodness.
@ais_robotic
@ais_robotic Жыл бұрын
brother all is work but "vehicle.mode= VehicleMode()"" -mode not work return same mode! what cai I do??
@SuperKing11100
@SuperKing11100 2 жыл бұрын
Also at first Ubuntu 16.04 was saying dronekit-sitl command was not recognized but I ended up rebooting my VM and it worked all of a sudden
@faikvural1119
@faikvural1119 5 жыл бұрын
"mavproxy.py --master tcp:127.0.0.1:5760 --out udp:127.0.0.1:14551 --out udp:(ip address):14550" when i write this command in cmd (windows) , open mavproxy.py in my ide and then not execute. pls help ? how i execute this command
@prandtlmayer
@prandtlmayer 5 жыл бұрын
In Windows do not write the .py, just call mavproxy
@AS-jc2lc
@AS-jc2lc 4 жыл бұрын
@@prandtlmayer This opinion is very useful. Thank you!
@brockm2263
@brockm2263 6 ай бұрын
OMG thank you!!!!!!!! im so glad I found this it was so straitforward and to the point you saved my life THANKS
@TheGamerInc26
@TheGamerInc26 5 ай бұрын
were you able to use dronekit ? because iam getting some mutable mapping error in python 3.10.
@tarasdvoretskij2123
@tarasdvoretskij2123 2 жыл бұрын
Thank you for your work! Please make an up-to-date step-by-step video with Dronekit setup, simulation and visualization on Mission Planner for ubuntu 20.04. I am particularly interested in which packages need to be installed and configured. With best wishes.
@carlosquinones7275
@carlosquinones7275 2 жыл бұрын
Just did it not too long ago with ubuntu 16.04. Make sure you are using python 2 and not python3, as dronekit has not been updated to work with python3 Same goes for pip and pip3 You can check with version of python and pip you are running using in the terminal pip -V and python -V (should say that python 2.x is running)
@SuperKing11100
@SuperKing11100 2 жыл бұрын
If you're getting an error in Mission Planner that says "Only one usage of each socket address is normally permitted" it's either due to your Virtual Box not having a bridged connection or in my case Windows private network firewall was blocking the connection from guest (VM) to host, hope this helps someone!
@sanperez313
@sanperez313 Жыл бұрын
Gracias Tiziano! I will follow your straightforward and easy-to-understand video! One quick question, have you tried MAVSDK, and if so, what do you think about it?
@pasinduranasinghe7978
@pasinduranasinghe7978 2 жыл бұрын
Insightful, But I think, You need to specify groundspeed in the simple_goto function to move the drone
@visionpoudel8700
@visionpoudel8700 4 жыл бұрын
I am having a problem where my drone won't take off. Basically, I get an error like this APM: ARMING MOTORS APM: Initialising APM... ARMED Arming checks disabled APM: DISARMING MOTORS DISARMED The simulated drone tries to take off but can't go over 0.1. Mr. Tiziano Fiorenzani, do you know what might be the problem?
@yahya9889
@yahya9889 3 жыл бұрын
same here im stuck on the same fucking problem lmao pls let me know if u find a solution
@prandtlmayer
@prandtlmayer 3 жыл бұрын
Have you tried using the SIL from mission planner?
@visionpoudel8700
@visionpoudel8700 3 жыл бұрын
@@prandtlmayer That's what I ended up using
@jefferyzhou4817
@jefferyzhou4817 3 жыл бұрын
@@prandtlmayer This seems to be a very universal problem and I am running into this as well. I tried to follow the 3DR documentation and your videos but same issues persist. Could you give me some guidance to solve this "Disarming Motors" issue? Thank you so much!!
@iamprudhvigattu
@iamprudhvigattu 8 ай бұрын
Bro did you fix the problem you are facing because I too got the same error. I need to resolve it can you please help me?
@abhinavreddyk4954
@abhinavreddyk4954 5 жыл бұрын
Hey Tiziano Fiorenzani! I'm unable to open it, I'm getting the below mentioned in my terminal. Thank you! # mavproxy.py --master tcp:127.0.0.1:5760 --out udp:127.0.0.1:14551 --out udp:10.55.222.120:14550 WARNING: You should uninstall ModemManager as it conflicts with APM and Pixhawk Connect tcp:127.0.0.1:5760 source_system=255 Log Directory: Telemetry log: mav.tlog MAV> Waiting for heartbeat from tcp:127.0.0.1:5760 Exception in thread main_loop: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "/usr/local/bin/mavproxy.py", line 811, in main_loop master.wait_heartbeat(timeout=0.1) TypeError: wait_heartbeat() got an unexpected keyword argument 'timeout' MAV>
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Read the first line. You should uninstall modem manager
@electronicseverywhere204
@electronicseverywhere204 3 жыл бұрын
Sir are you connect hardware when you are Programming drone or doing simulation
@guohaoye9628
@guohaoye9628 4 жыл бұрын
Hi, Mr. Tiziano! I am pretty into your videos. Currently I always have a question like:" Arming motors..." again over again. Never stop. I believe it is because the vehicle is not armable yet. so my question is how to exactly make the vehicle armable? I am using Dronekit-python, Intel onboard, and Pixhawk4 (Ardupilot). Looking forward your response!
@scratchsatriani
@scratchsatriani 6 жыл бұрын
Hi Tiziano, i able to use your script on a real drone using --connect 0.0.0.0:14550. If i want to connect to another real drone... can i issue another --connect 0.0.0.0:14560? Thanks in advance
@chaitanya3702
@chaitanya3702 4 жыл бұрын
when i run the code the simulation and the program is not running simultaneously. The python program is running but its not showing in mission planner until the program is finished running. Please help me out. i have a deadline
@prandtlmayer
@prandtlmayer 4 жыл бұрын
What do you mean, I'm afraid I don't understand
@hello81642
@hello81642 9 ай бұрын
Are we losing any dronekit functionality/functions by using python e.g. 3.9 instead of 2.7?
@prandtlmayer
@prandtlmayer 9 ай бұрын
I don't think so, it has been ported to 3 long ago. Also you can always access the lower pymavlink object and get to the mavlink message level
@fendadwiariefianto9446
@fendadwiariefianto9446 6 жыл бұрын
hi tiziano, i need ur help.. when i enter this command "dronekit-sitl copter --home=35.9835973,-95.8742309,0,180" i get an error like this "pi@raspberrypi:~ $ dronekit-sitl copter --home=35.9835973,-95.8742309,0,180 os: linux, apm: copter, release: stable SITL already Downloaded and Extracted. Ready to boot. Traceback (most recent call last): File "/usr/local/bin/dronekit-sitl", line 11, in sys.exit(main()) File "/home/pi/.local/lib/python2.7/site-packages/dronekit_sitl/__init__.py", line 591, in main sitl.launch(args, verbose=True) File "/home/pi/.local/lib/python2.7/site-packages/dronekit_sitl/__init__.py", line 251, in launch caps = ArdupilotCapabilities(self.path) File "/home/pi/.local/lib/python2.7/site-packages/dronekit_sitl/__init__.py", line 160, in __init__ process = subprocess.Popen([path, '--help'], stdout=subprocess.PIPE) File "/usr/lib/python2.7/subprocess.py", line 390, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child raise child_exception OSError: [Errno 8] Exec format error" I'm using at putty in windows and i have been searching on internet... i don't get an answer. Maybe u can help me.. thanks. nb: sry for bad english, i'm student from indonesia.
@prandtlmayer
@prandtlmayer 6 жыл бұрын
You cannot run SITL on the raspberry
@evanwilliam9582
@evanwilliam9582 Жыл бұрын
is there a feature to do this online
@grabitgo2724
@grabitgo2724 4 жыл бұрын
Thank you sir for your content. Sir I need a help. Sir I'm very confused and stuck in the software solution, that is I cannot able to figure out which softwares you're using in this video and how can I use the same softwares in Windows 10. Please give me a software solution for Windows 10, i.e. for this codings which softwares I can use in Windows 10.
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Watch the other videos in the series, it becomes easier. Here I showed the SIL running in Linux on VM and Mission Planner running in Windows
@grabitgo2724
@grabitgo2724 4 жыл бұрын
@@prandtlmayer okay thanks for your reply
@Luiblonc
@Luiblonc 6 жыл бұрын
Hi Tiziano! Thank you - this video is brilliant! You know, I spent so many years in the Rc industry as a 3D helicopter enthusiast - almost 25 years! Today I am heavily versed in Linux and could see this as my next challenging project. Thank you!
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Luis Ferrel I'm glad I could help you finding a new path for your fun or your career. If you do any video or job inspired by my series, pletase post the links in the forum and I'll mention them.
@rootboot5320
@rootboot5320 3 жыл бұрын
have problem at dronekit_sitl and version of python?
@aleshamardhy
@aleshamardhy Жыл бұрын
did you still have a problem in dronekit-sitl?
@calebbergquist2066
@calebbergquist2066 6 жыл бұрын
If anyone is running into DISARMING problems right after ARMING, try adding vehicle.channels.overrides['3'] = 1500 Below "vehicle.armed = True" in the script. Apparently some ArduCopter parameters make the copter DISARM if the throttle doesn't reach over 1500 after 2 seconds. This helped me stay ARMED and I was able to execute the script successfully.
@prandtlmayer
@prandtlmayer 6 жыл бұрын
yes, that is a safety embedded in the firmware. After you armed you set the system in GUIDED and send a simple_takeoff(altitude) command
@info781
@info781 5 жыл бұрын
Add this to delay the launch until it is fully armed. vehicle.armed = True while not vehicle.armed: time.sleep(2) vehicle.simple_takeoff(tgt_atltitude)
@basics5823
@basics5823 Жыл бұрын
Hi it's nice video. All works for me except changing mode. I get an error as DO_SET_MODE : unsupported. I try to figure of with all kind of tutorials but nothing works. Any idea what should be done to work out this?
@abdulbasitfakir7127
@abdulbasitfakir7127 5 жыл бұрын
JUST FOLLOWED the procedure end up with this error " OSError :[Errorno 8] exec format error " while running this "dronekit-sitl copter" please help i am using ubuntu 16.04 lts thank you for the beautiful video
@prandtlmayer
@prandtlmayer 5 жыл бұрын
The video is old. Dronekit--sitl is no more to be used. Check out my video about sitl in Mission Planner
@chenerlich6596
@chenerlich6596 5 жыл бұрын
@@prandtlmayer Does is mean there is no Dronekit setup for PX4?
@ivovechkin
@ivovechkin 5 жыл бұрын
Hello, if anyone has problems with the vehicle not connecting at this part "mavproxy.py --master tcp:127.0.0.1:5760 --out udp:127.0.0.1:14551 --out udp:(ip address):14550" typing in this line resolved the problem: pip install pymavlink
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Pymavlink should be installed with mavproxy. But you also need to upgrade. Thanks for the hint
@vighneshnkp6866
@vighneshnkp6866 5 жыл бұрын
Hey. I did this but I'm still getting the same error. It says "connection refused sleeping." and @you should uninstall modemanager". Any suggestions?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Are you sure the sitl is running?
@florinmarginean7534
@florinmarginean7534 3 жыл бұрын
hello can you tell us what version of dronekit do you use?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
Always the latest
@SHASHANKDAMMALAPATI
@SHASHANKDAMMALAPATI 5 жыл бұрын
Can we code for each motor separately using drone kit?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Why would you do that?
@robbiewatling5791
@robbiewatling5791 5 жыл бұрын
@@prandtlmayer Make the drone do a backflip or something.
@tkinter3160
@tkinter3160 6 жыл бұрын
i don't open mission planner , but i make follow every step , i use window and install mavproxy dronekit dronekit-sitl complete.
@richardathey3116
@richardathey3116 6 жыл бұрын
Thank you Tiziano, this is awesome and your tutorials have helped me a lot at University
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Check out all my other videos! And the one is coming this week (hopefully)
@Runescape_God
@Runescape_God 4 жыл бұрын
Is it possible to give the drone updated waypoints mid-flight with this method?
@ricardomendoza5028
@ricardomendoza5028 4 жыл бұрын
also interested here!
@prandtlmayer
@prandtlmayer 3 жыл бұрын
Absolutely yes. You can also set the drone in GUIDED mode and command single points without going into MISSION mode
@gy8811
@gy8811 2 жыл бұрын
Hi Sir ! How can I change the drone location ? I wrote the latitude , longitude and the other two value (0,180) same as yours. And now I want to change my drone home location . Can you help ? thanks
@DitaAydaofficial
@DitaAydaofficial Жыл бұрын
Sir, thank you for your great explanation. SO, sir one thing is not clear to me. Did you connected it with your vehicle or it all about simulation? Thank you!
@juandediosyanez
@juandediosyanez 6 жыл бұрын
Good Tiziano, first of all thank you for the great tutorial you have done and how much you are helping us. I'm trying to do it step by step, but I find some problems, like the next, and I do not move forward. mavproxy.py --master tcp:127.0.0.1:5760 --out udp:192.168.1.132:14551 --out udp:192.168.1.132:14550 ERROR: mavproxy takes no position arguments; got (['\xe2\x80\x93-out', 'udp:192.168.1.132:14551']) When I try to start mavproxy I get the following error. What can you owe? Do you have any solution?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
That is really weird. Try to uninstall mavproxy and install it again
@ady7d77
@ady7d77 4 жыл бұрын
which is better to for drones ardupilot or ros?
@prandtlmayer
@prandtlmayer 4 жыл бұрын
They are two completely different things. Ardupilot is one family of open source firmwares for the autopilot. ROS is a Linux development environment that simplifies the integration of yours and third party code for robotics
@vishakhajogdand5079
@vishakhajogdand5079 3 жыл бұрын
Can you give contact no sir for query...your video helped me a lot..
@techwithomar1875
@techwithomar1875 3 жыл бұрын
What type of linux vm is this?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
Virtualbox, Ubuntu 16
@rica4261
@rica4261 3 жыл бұрын
how can i install mission planner?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
Ardupilot.org
@marco6969ish
@marco6969ish 6 жыл бұрын
Hi Tiziano, I tried to conect the mission planner but the "Connecting Mavlink" window is stuck. I recently installed the las version of mission planner (1.3.55 build)
@prandtlmayer
@prandtlmayer 6 жыл бұрын
What is this window? I have been using the last version, no problem. Follow my last video on sitl and mission planner
@marco6969ish
@marco6969ish 6 жыл бұрын
It is the window that appears when the "connect" button is clicked. I will, thanks for answer
@girishreddyedula2667
@girishreddyedula2667 5 жыл бұрын
HI How to do it in windows ??
@prandtlmayer
@prandtlmayer 5 жыл бұрын
I have another video for that, check out sitl in mission planner
@LNasterio
@LNasterio 6 жыл бұрын
when I run Mavproxy, I get the following error: load_all took 0us 0 0 0 online system 1 STABILIZE> Mode STABILIZE Exception in thread main_loop: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "/usr/local/bin/mavproxy.py", line 783, in main_loop master.wait_heartbeat() File "/usr/local/lib/python2.7/dist-packages/pymavlink/mavutil.py", line 383, in wait_heartbeat return self.recv_match(type='HEARTBEAT', blocking=blocking) File "/usr/local/lib/python2.7/dist-packages/pymavlink/mavutil.py", line 344, in recv_match m = self.recv_msg() File "/usr/local/lib/python2.7/dist-packages/pymavlink/mavutil.py", line 318, in recv_msg msg = self.mav.parse_char(s) File "/usr/local/lib/python2.7/dist-packages/pymavlink/dialects/v10/ardupilotmega.py", line 9257, in parse_char self.__callbacks(m) File "/usr/local/lib/python2.7/dist-packages/pymavlink/dialects/v10/ardupilotmega.py", line 9234, in __callbacks self.callback(msg, *self.callback_args, **self.callback_kwargs) File "/usr/local/lib/python2.7/dist-packages/MAVProxy/modules/mavproxy_link.py", line 460, in master_callback mavutil.mavlink.MAV_TYPE_DODECAROTOR]: AttributeError: 'module' object has no attribute 'MAV_TYPE_DODECAROTOR' although if I upgrade pymavlink this error would disappear, but Mavproxy will not function, additional to that, the dronekit end up with error as it requires lower version of pymavlink. I really need help with this....
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Where are you running this? On Debian with a Raspi or a Ubuntu machine? Anyway, I'd suggest you wipe it clean, uninstall dronekit and pymavlink and mavproxy, then proceed with downloading and compiling dronekit (I have it on the SITL video and the Raspi video) and then pip install mavproxy
@prandtlmayer
@prandtlmayer 6 жыл бұрын
I suggest first you check out more documentation about mavproxy and really understand how it works, then try again. If you run mavproxy in linux and you want to proxy the info to the windows pc, you have to provide the windows pc ip address. Make sure the vm is setup with the connection in bridged, so it has its own ip
@tylerdurden8506
@tylerdurden8506 6 жыл бұрын
yes that was the problem... i forgot to change the network adapter to bridged. Thanks
@tankaichuen1258
@tankaichuen1258 4 жыл бұрын
Why shouldn't use sudo?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
It's never a good idea to abuse of the super user environment. You might end up installing packages that work only for it
@alexyap7323
@alexyap7323 2 жыл бұрын
Great! Educational. Thanks for sharing.
@shreedharshah1148
@shreedharshah1148 3 жыл бұрын
Sir your videos have helped a lot!!....wanted to ask what if i want to run the sitl for my unmanned ground vehicle??..is there "roverkit" like "dronekit"??...Please acknwledge sir!!
@prandtlmayer
@prandtlmayer 3 жыл бұрын
Drone kit it's just a wrapper for mavlink so you should be ok using it
@khtan5531
@khtan5531 5 жыл бұрын
At the 2:51 mark in the video , after I typed the "mavproxy.py --master tcp:127.0.0.1:5760 --out:127.0.0.1:14551 --out udp:(ip address):14550" command in the Anaconda command line window, a Notepad window named mavproxy pops up instead. What is the problem here and how can I resolve it ?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
In Windows you run mavproxy without the .py
@kiwiminer
@kiwiminer 3 жыл бұрын
which ubuntu vc use?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
Any
@darpantrivedi3242
@darpantrivedi3242 4 жыл бұрын
i have face this issue do have any idea : dronekit.APIException: Timeout in initializing connection.
@prandtlmayer
@prandtlmayer 4 жыл бұрын
I need more details, like what you tried to connect with what else?
@calebbergquist2066
@calebbergquist2066 6 жыл бұрын
Tiziano, thank you for enlightening me on Dronekit. That looks to be some powerful stuff! I saw where your mission planner was based and it shocked me, cause I live right in Tulsa! Small world.
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Great Caleb, find me on Linkedin
@ethanlee2602
@ethanlee2602 4 жыл бұрын
You should enlighten your customers on Udemy. I followed your guide and it is broken. Navio2 doesnt listen on port 14550 and so none of the dronekit scripts work
@SuperSuperhugh
@SuperSuperhugh 4 жыл бұрын
Hi, is it possible to control the vehicle via python in Ubuntu system directly rather than the virtual machine. And I use QGC mostly. Thank you.
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Check out the Ardupilot.org documentation: some has changed since the video. Plus I have another video where I show how to use the SITL in windows
@karthickeyanmanivannan9912
@karthickeyanmanivannan9912 4 жыл бұрын
Hi Tiziano ! 2.27 I have an error saying Sudo:pip: command not found
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Just install pip
@serkanbtn
@serkanbtn 4 жыл бұрын
hi tiziano . i have a problem from my mavproxy connection can you help me. i am running dronekit software in the my gcs and i am running mavproxy.py in the navio but thats not working. i think the problem is for my running shape but i try so many thing
@prandtlmayer
@prandtlmayer 4 жыл бұрын
For navio you can also ask them, they usually are very supportive. Another good place is the Ardupilot forum
@aviocavioc1280
@aviocavioc1280 6 жыл бұрын
When i run DRONEKIT-SITL COPTER 3.3 it gives ERROR . I am using raspian strech os in raspberry. And laptop with windows 8. Plzz suggest me some way to solve it
@prandtlmayer
@prandtlmayer 6 жыл бұрын
SITL does not run on raspberry
@fratmehmet71
@fratmehmet71 4 жыл бұрын
Hi. Can we add new waypoint code while drone is flying, does it make any problem? And another question can we do this on an airplane.
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Yes, no and yes
@qamishah621
@qamishah621 5 жыл бұрын
Hi! i have entered the position in dronekit-sitl, i am getting permission error : [Error 13] permission denied:'c:\\\users\\qamber\\.dronekit\\sitl\\copter-3.3\\.\\apm.exe' please what should i do ? thanks in advance
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Never seen that. Follow other videos or mine about sitl
@TurBull4nc3
@TurBull4nc3 3 жыл бұрын
hi how do you setup the virtual machine? I have installed an ubuntu dekstop on my VM but i am unsure how i can connect it to my raspberry pi and pixhawk to run the codes
@prandtlmayer
@prandtlmayer 3 жыл бұрын
Explained better here kzbin.info/www/bejne/mYu5f6GahMaMeac&ab_channel=TizianoFiorenzani
@SarvaShakthiRotavator
@SarvaShakthiRotavator 6 жыл бұрын
hey! i see the video was quite informative but not quite enough for dead-start beginners like me. Is there any written, step-by-step help for that?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Almost, will make a video about it soon. I'll keep you posted
@ankurkamboj4854
@ankurkamboj4854 5 жыл бұрын
@@prandtlmayer hi is there any update on that step by step guide ? I am eagerly waiting.
@isrg7221
@isrg7221 4 жыл бұрын
Can you do a tutorial for using DroneKit and SITL on a fixed wing
@prandtlmayer
@prandtlmayer 4 жыл бұрын
I already did
@dronzut6823
@dronzut6823 5 жыл бұрын
Hi, i did just like you but my MissionPlaner didin't connect . Any solution ?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Have you set the connection to bridge mode? Check also this alternative method: kzbin.info/www/bejne/pWfSZnyZiaaqna8
@БейбарсМусагалиев
@БейбарсМусагалиев 6 жыл бұрын
Thanks Sir! Tiziano! I have some problems with mavproxy.py --master ......... when I typed it in the new tab, then I have "no link" message repeatedly. could you please help with this?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Be sure you can actually connect with the device. Do you use a virtual machine? Check the IP address and ping it
@Meowoofbark
@Meowoofbark 6 жыл бұрын
A major issue I had when trying to get Mavproxy and any other .py file wouldn't accept any commands such as --udp___. I believe this is a registry error from installing multiple python versions. To fix this simply insert python before your command, "python mavproxy --master..."
@prandtlmayer
@prandtlmayer 6 жыл бұрын
thanks for your hint
@parusmajor1826
@parusmajor1826 5 жыл бұрын
What about MacOs? for my dissertation I am trying to build a autonomous quadcopter but I don't know where to start
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Start from reading carefully all the Ardupilot wiki
@MrJawwadzahed
@MrJawwadzahed 7 жыл бұрын
WOW!! you made my life so easy
@prandtlmayer
@prandtlmayer 7 жыл бұрын
I am glad I did. Keep following and spread the news
@richdononthego
@richdononthego 6 жыл бұрын
Hi Tizziano, I'm new to this dronekit-sitl thing. Installed it on Ubuntu just to try, run it and seems to work. But when I took out the internet connection it don't work. Does sitl work offline? Thanks
@dinesh1286
@dinesh1286 6 жыл бұрын
I need to control an fixed wing uav using pixhawk and raspberry pi 3. i want to do a real-time control (get states from pixhawk do computations in RPi3 and send pwm command from RPi3 to pixhawk). i followed ur video and managed to get states from pixhawk to rpi3. now i need to send pwm commands to control throttle, rudder, elevator and aileron in real-time. This is not allowing pixhawk to take control of the plane. kindly explain me how to go abt
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Dineshkumar M , first you'd better check out my video on plane. Second, there is no free meal. You have to study the documentations, helps and tutorials, write your coding and make your way through it. You can do it
@savoirrepubliquecondetutor910
@savoirrepubliquecondetutor910 5 жыл бұрын
Nice tutorial. But it's a little to fast so many absolute beginners can't follow.
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Thanks, I hope at least it points them in the right direction.
@robbieGftw
@robbieGftw 4 жыл бұрын
I'm a little confused with the mavproxy setup. Local host uses tcp port 5760, Mission Planner GCS uses tdp 14550. What is tdp port 14551 for? Thanks
@prandtlmayer
@prandtlmayer 4 жыл бұрын
They connect to whatever TCP or UDP port you want. The SITL by default outputs on localhost tcp 5760. From there you can use Mavproxy to proxy the connection wo any IP and UDP port you need
@robbieGftw
@robbieGftw 4 жыл бұрын
@@prandtlmayer Thanks a lot Tiziano!
@hatemmahmoudi3880
@hatemmahmoudi3880 4 жыл бұрын
hello sir , thanks a lot for the great tutorial , i followed the procedure and when i run the script of control dronekit doesn't connect to APM and i get this error "WARNING:dronekit:Link timeout, no heartbeat in last 5 seconds" then error
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Build dronekit from source
@mardhapuhareesh4553
@mardhapuhareesh4553 3 жыл бұрын
please mention what components used in drone construction
@prandtlmayer
@prandtlmayer 2 жыл бұрын
It is all simulated
@01bit
@01bit 3 жыл бұрын
Thank you!
@tomdebie2486
@tomdebie2486 6 жыл бұрын
Hello Tiziano, Would this also be possible to use a Raspberry Zero for this? I'm quite interested in implementing some intelligence into my multi-rotor, but would like to keep the weight as low as possible. With kind regards, Tom
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Sure, I have used the zero too. Much slower, need to check your CPU load
@pirunthankeerthinathan4286
@pirunthankeerthinathan4286 5 жыл бұрын
Sir,can u make a video to send custom sensor messages from rpi to mission planner through pixhawk? that will be very helpful
@prandtlmayer
@prandtlmayer 5 жыл бұрын
I have never tried that
@bryankoh3836
@bryankoh3836 5 жыл бұрын
Can the script you just wrote run on a Raspi companion pc with pixhawk as the flight controller?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
... that is exactly what the whole purpose of a companion PC
@jiayeeten3114
@jiayeeten3114 4 жыл бұрын
Hello Tiziano, I have successfully built my SITL with your video. However, I faced some problem when specifying the waypoints radius. Can you help me with that by editing the simple_goto examples?
@prandtlmayer
@prandtlmayer 4 жыл бұрын
If I am not mistaken, the radius is just a parameter
@jiayeeten3114
@jiayeeten3114 4 жыл бұрын
@@prandtlmayer Yes, but my mission is to set the waypoint radius, but I'm not sure how to edit the source code. May you help me with that?
@vighneshnkp6866
@vighneshnkp6866 5 жыл бұрын
I seem to be having trouble from 2:50 onwards. I'm getting a message which says USB ports must be specified with host:port. Do you know what needs to be done? Please reply.
@zims102
@zims102 4 жыл бұрын
i want to do a course for python drone programmings. thanks.
@lestergetubig9161
@lestergetubig9161 5 жыл бұрын
What are the list of drones that can be controlled by this
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Check on Ardupilot website
@yazeedarifin6708
@yazeedarifin6708 5 жыл бұрын
Hi Tiziano! I had a problem when I try to connect the both VM and Mission palnner. After I connected to mavproxy then I open the mission planner, I clicked the connect button inside. Window 'Connecting Mavlink' appears and stays on waiting progress to connect. It keeps waiting even after an hour. Do you have a solution for it to connect?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Is your VM connection in bridged mode?
@yazeedarifin6708
@yazeedarifin6708 5 жыл бұрын
@@prandtlmayer yes
@hunterworld574
@hunterworld574 4 жыл бұрын
hi sir, can we display the target point when running python code ?
@prandtlmayer
@prandtlmayer 3 жыл бұрын
yes
@MrOdded
@MrOdded 6 жыл бұрын
hello, im using virtual box for linux, and trying to connect to the mission planner. im getting "no link" massages. i think i typed a wrong ip address. what do you think might be the problem? thanks!
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Did you set the connection in bridged mode?
@dinesh1286
@dinesh1286 6 жыл бұрын
This a great video, i could make SITL after following this video. I tried for copter and its working. But when i applied to the plane there is an oscillation in the yaw and roll angles continuously in the HUD panel. how to rectify this.
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Not an expert in plane SITL. Check the documentation here: ardupilot.org/dev/docs/sitl-simulator-software-in-the-loop.html#sitl-simulator-software-in-the-loop I will try and make a video on that
@mustafa-gokce
@mustafa-gokce 6 жыл бұрын
every connection with mavproxy.py to the board reboots the board. if connection is lost restarting the mavproxy reboots the board and it is a disaster in midair. is there a way to start the mavproxy.py without rebooting the apm board? thanks.
@prandtlmayer
@prandtlmayer 6 жыл бұрын
there is a parameter on the autopilot that resets the board when you connect it to the USB. Don't remember the name though
@shakthiprashanth5730
@shakthiprashanth5730 5 жыл бұрын
Thanks Tiziano for the video. Do you also have a tutor for ardupilot firmware ?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
No, sorry
@tylerdurden8506
@tylerdurden8506 6 жыл бұрын
+Tiziano Fiorenzani when i try to connect to mission planner at port 14550 , it doesnt happen. Also the mavlink script says no link. Any idea?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Are you sure you put the right ip address?
@tylerdurden8506
@tylerdurden8506 6 жыл бұрын
Just to be sure :Which ip am I supposed to give? The ip of VM or the machine with the Mission Planner?
@mickey3572
@mickey3572 6 жыл бұрын
Hey the video is enlightening. Keep up the work. Yet I have a small doubt. What about the simulator file ,where I can get it? Can I write the simulation code on normal console? Do we need some telemetry hardware in order for functioning of mavlink because my mission planner is not showing anything on UDP mode. Sorry, I am new into all this.
@prandtlmayer
@prandtlmayer 6 жыл бұрын
For the simulator you have different option. You can run dronekit_sitl on the linux virtual machine (but is an fw release) or you can use the one embedded in Mission Planner (I will do a video covering this shortly). Every mission lanner or APM planner or Qground control can connect to udp or tcp. At the top right window there is a drop down menu where you can select either tcp (usually port 5760 for telemetry 1 or 5762 for telemetry 2) or UDP (usually forwarded by a mavproxy to 14550)
@yazeedarief8670
@yazeedarief8670 5 жыл бұрын
Hi Tiziano!! May I know your python and pip version you installed?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Python 2.7 and latest pip
@yazeedarief8670
@yazeedarief8670 5 жыл бұрын
@@prandtlmayer thank you..
@yazeedarifin6708
@yazeedarifin6708 5 жыл бұрын
sorry, but my linux pc doesnt run pip command. do you have any solution??
@prandtlmayer
@prandtlmayer 5 жыл бұрын
sudo apt-get install pip
@yazeedarifin6708
@yazeedarifin6708 5 жыл бұрын
​@@prandtlmayer done.. thx
@saran-ravi
@saran-ravi 6 жыл бұрын
can you please explain why do we need to change the network connection as bridged?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Just to have a separate IP address
@omerfeyyazselcuk7325
@omerfeyyazselcuk7325 5 жыл бұрын
Can you share a connection diagram of all hardwares? It is not clear yet understandable easily.
@omerfeyyazselcuk7325
@omerfeyyazselcuk7325 5 жыл бұрын
Oh it is a simulation - I get it.
@prandtlmayer
@prandtlmayer 5 жыл бұрын
for connecting the hardware, just use the serial port of your device. look at this page ardupilot.org/dev/docs/raspberry-pi-via-mavlink.html
@SarvaShakthiRotavator
@SarvaShakthiRotavator 6 жыл бұрын
what is Virtual Box exactly?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
A virtual box is literally a container where you can install a separate operative system. It's pretty straight forward, but mind that you do not need to go this road. Check my video about SITL in mission planner
@zaidalani9442
@zaidalani9442 5 жыл бұрын
Hi, thank you for sharing your knowledge. Now I am trying to use your code (how_do_drones_work) here github.com/tizianofiorenzani/how_do_drones_work/tree/master/opencv in order to get the Aruco markers positions and orientations wrt the camera axes. With the positions everything is great, but wrt z orientation, I need to get it always wrt camera axes and not to object axes (which is the case in the code). Can you help me with that
@prandtlmayer
@prandtlmayer 5 жыл бұрын
In the code you can see that I have it in both camera and object axis
@zaidalani9442
@zaidalani9442 5 жыл бұрын
@@prandtlmayer thank you for replying, yes but z orientation is always wrt marker frame not to the camera frame
@prandtlmayer
@prandtlmayer 5 жыл бұрын
No, there are two frames. Anyway, unless you are very tilted, one or the other are very close
@luigiluft4920
@luigiluft4920 5 жыл бұрын
Hi Tiziano Fiorenzani, There is any way to program a drone that could fly about half mile without GPS signal? For example, pre-set direction to the drone, then just ask him to do the pre-setted directions.
@prandtlmayer
@prandtlmayer 5 жыл бұрын
With no GPS your position estimate degrades pretty quickly. You can set it in guided no gps and command attitude values. But why?
@luigiluft4920
@luigiluft4920 5 жыл бұрын
Tiziano Fiorenzani to fly a drone autonomously in a warehouse
@ankurkamboj4854
@ankurkamboj4854 5 жыл бұрын
@@luigiluft4920 in warehouse , you would need real time 3D map of obstacles to avoid it . So it seems tech called SLAM could work.
@dopichannel2646
@dopichannel2646 4 жыл бұрын
Hello Tiziano, thanks for your information. I'm still confused, My drone can fly, with px4 in mission planner using flight plans only. but can it be optimized by editing through the source code? in which option to change source code?
@prandtlmayer
@prandtlmayer 4 жыл бұрын
The point of my video is showing that you can add a whole new layer of logics, guidance and algorithms using python rather than messing with the source code (that is also open source and requires you to share everything you modified in it)
@ady7d77
@ady7d77 4 жыл бұрын
do you have a course sir?
@prandtlmayer
@prandtlmayer 4 жыл бұрын
Check in my channel, I have promoted one of a friend of mine, Caleb Begquist
@shayta_
@shayta_ 5 жыл бұрын
Tiziano do you know how to solve the problem "ERROR:autopilot:DISARMING MOTORS" when running the script?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Dronekit--sitl is outdated. Are you using that one?
@shayta_
@shayta_ 5 жыл бұрын
@@prandtlmayer Most likely, I used the instalation process presented on the PX4 page
@prandtlmayer
@prandtlmayer 5 жыл бұрын
I have another video where I show the sitl with Mission Planner
@shayta_
@shayta_ 5 жыл бұрын
​@@prandtlmayer The thing is that I'm using PX4 and not Ardupilot, is there any chance you could link to anything updated?
@prandtlmayer
@prandtlmayer 5 жыл бұрын
I can't help you on px4
@frajomethippara9952
@frajomethippara9952 5 жыл бұрын
Hi Tiziano Fiorenzani! Thankyou for your videos .I would like to know how to do the same in raspbian using pi.
@prandtlmayer
@prandtlmayer 5 жыл бұрын
Exactly in the same way. Using dronekit
@prandtlmayer
@prandtlmayer 5 жыл бұрын
You connect to the telemetry port 2 using the uart
@kaanceylan83
@kaanceylan83 5 жыл бұрын
Hi Tiziano! I need some help with my connection,I can't connect via UDP on mission planner. I'm using 16.04 ubuntu and mavproxy version 1.6.2. I tried Virtual machine at Nat and Bridged mode(on VM) but ı can not to connection
@prandtlmayer
@prandtlmayer 5 жыл бұрын
That is weird. When in bridge mode is like having a second computer. Do you need to run a custom version or can you use the master?
@kaanceylan83
@kaanceylan83 5 жыл бұрын
@@prandtlmayerFirst, thanks for comment , I solved the problem. I found a solution with double boot, but I get a different error in dronekit-sitl. When I change home position, it's giving a barometer error
@emretuncay394
@emretuncay394 6 жыл бұрын
Hi Can we read pwm output using dronekit ?
@prandtlmayer
@prandtlmayer 6 жыл бұрын
Yes, create a listener for mavlink.org/messages/common#SERVO_OUTPUT_RAW
How to use SITL in Mission Planner for Ardupilot
9:19
Tiziano Fiorenzani
Рет қаралды 53 М.
Drone Delivery and Mission Handling with Python
7:40
Tiziano Fiorenzani
Рет қаралды 30 М.
From Small To Giant Pop Corn #katebrush #funny #shorts
00:17
Kate Brush
Рет қаралды 71 МЛН
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 9 МЛН
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
Mission Planner SITL for Dummies
9:04
Yuri's Homebrew & DIY
Рет қаралды 11 М.
How to Control a Drone with the Keyboard using Python and Dronekit
7:52
Tiziano Fiorenzani
Рет қаралды 89 М.
Mission Planner Part 1 - Introduction
17:28
Linn Aerospace
Рет қаралды 226 М.