Bro, I got an error while executing this code Showing error: autopilot:ARMING MOTORS
@iamprudhvigattu8 ай бұрын
Bro did you resolve the problem? I'm also getting the same error I need to fix it. It's urgent
@asnaeb2 Жыл бұрын
In 8 minutes from install to functional. THANK YOU for this amazing tutorial that gets to the point very quickly.
@prabhakargupta17674 жыл бұрын
well i cant believe why this amazing channel has soo less subs and views do all youtube users just watch shit instead learning something
@malakzitouni19245 жыл бұрын
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"
@mrsaraf34594 жыл бұрын
I'm seeing the same thing, it arms then immediately disarms. Did you figure it out by any chance?
@anujregmi45824 жыл бұрын
@@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
@nayeemkhatib95964 жыл бұрын
Hi could any one figure out the reason for the error and the way out ?
@anujregmi45824 жыл бұрын
@@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...
@tankaichuen12584 жыл бұрын
@@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 Жыл бұрын
brother all is work but "vehicle.mode= VehicleMode()"" -mode not work return same mode! what cai I do??
@SuperKing111002 жыл бұрын
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
@faikvural11195 жыл бұрын
"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
@prandtlmayer5 жыл бұрын
In Windows do not write the .py, just call mavproxy
@AS-jc2lc4 жыл бұрын
@@prandtlmayer This opinion is very useful. Thank you!
@brockm22636 ай бұрын
OMG thank you!!!!!!!! im so glad I found this it was so straitforward and to the point you saved my life THANKS
@TheGamerInc265 ай бұрын
were you able to use dronekit ? because iam getting some mutable mapping error in python 3.10.
@tarasdvoretskij21232 жыл бұрын
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.
@carlosquinones72752 жыл бұрын
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)
@SuperKing111002 жыл бұрын
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 Жыл бұрын
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?
@pasinduranasinghe79782 жыл бұрын
Insightful, But I think, You need to specify groundspeed in the simple_goto function to move the drone
@visionpoudel87004 жыл бұрын
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?
@yahya98893 жыл бұрын
same here im stuck on the same fucking problem lmao pls let me know if u find a solution
@prandtlmayer3 жыл бұрын
Have you tried using the SIL from mission planner?
@visionpoudel87003 жыл бұрын
@@prandtlmayer That's what I ended up using
@jefferyzhou48173 жыл бұрын
@@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!!
@iamprudhvigattu8 ай бұрын
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?
@abhinavreddyk49545 жыл бұрын
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>
@prandtlmayer5 жыл бұрын
Read the first line. You should uninstall modem manager
@electronicseverywhere2043 жыл бұрын
Sir are you connect hardware when you are Programming drone or doing simulation
@guohaoye96284 жыл бұрын
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!
@scratchsatriani6 жыл бұрын
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
@chaitanya37024 жыл бұрын
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
@prandtlmayer4 жыл бұрын
What do you mean, I'm afraid I don't understand
@hello816429 ай бұрын
Are we losing any dronekit functionality/functions by using python e.g. 3.9 instead of 2.7?
@prandtlmayer9 ай бұрын
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
@fendadwiariefianto94466 жыл бұрын
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.
@prandtlmayer6 жыл бұрын
You cannot run SITL on the raspberry
@evanwilliam9582 Жыл бұрын
is there a feature to do this online
@grabitgo27244 жыл бұрын
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.
@prandtlmayer4 жыл бұрын
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
@grabitgo27244 жыл бұрын
@@prandtlmayer okay thanks for your reply
@Luiblonc6 жыл бұрын
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!
@prandtlmayer6 жыл бұрын
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.
@rootboot53203 жыл бұрын
have problem at dronekit_sitl and version of python?
@aleshamardhy Жыл бұрын
did you still have a problem in dronekit-sitl?
@calebbergquist20666 жыл бұрын
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.
@prandtlmayer6 жыл бұрын
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
@info7815 жыл бұрын
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 Жыл бұрын
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?
@abdulbasitfakir71275 жыл бұрын
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
@prandtlmayer5 жыл бұрын
The video is old. Dronekit--sitl is no more to be used. Check out my video about sitl in Mission Planner
@chenerlich65965 жыл бұрын
@@prandtlmayer Does is mean there is no Dronekit setup for PX4?
@ivovechkin5 жыл бұрын
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
@prandtlmayer5 жыл бұрын
Pymavlink should be installed with mavproxy. But you also need to upgrade. Thanks for the hint
@vighneshnkp68665 жыл бұрын
Hey. I did this but I'm still getting the same error. It says "connection refused sleeping." and @you should uninstall modemanager". Any suggestions?
@prandtlmayer5 жыл бұрын
Are you sure the sitl is running?
@florinmarginean75343 жыл бұрын
hello can you tell us what version of dronekit do you use?
@prandtlmayer3 жыл бұрын
Always the latest
@SHASHANKDAMMALAPATI5 жыл бұрын
Can we code for each motor separately using drone kit?
@prandtlmayer5 жыл бұрын
Why would you do that?
@robbiewatling57915 жыл бұрын
@@prandtlmayer Make the drone do a backflip or something.
@tkinter31606 жыл бұрын
i don't open mission planner , but i make follow every step , i use window and install mavproxy dronekit dronekit-sitl complete.
@richardathey31166 жыл бұрын
Thank you Tiziano, this is awesome and your tutorials have helped me a lot at University
@prandtlmayer6 жыл бұрын
Check out all my other videos! And the one is coming this week (hopefully)
@Runescape_God4 жыл бұрын
Is it possible to give the drone updated waypoints mid-flight with this method?
@ricardomendoza50284 жыл бұрын
also interested here!
@prandtlmayer3 жыл бұрын
Absolutely yes. You can also set the drone in GUIDED mode and command single points without going into MISSION mode
@gy88112 жыл бұрын
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 Жыл бұрын
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!
@juandediosyanez6 жыл бұрын
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?
@prandtlmayer6 жыл бұрын
That is really weird. Try to uninstall mavproxy and install it again
@ady7d774 жыл бұрын
which is better to for drones ardupilot or ros?
@prandtlmayer4 жыл бұрын
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
@vishakhajogdand50793 жыл бұрын
Can you give contact no sir for query...your video helped me a lot..
@techwithomar18753 жыл бұрын
What type of linux vm is this?
@prandtlmayer3 жыл бұрын
Virtualbox, Ubuntu 16
@rica42613 жыл бұрын
how can i install mission planner?
@prandtlmayer3 жыл бұрын
Ardupilot.org
@marco6969ish6 жыл бұрын
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)
@prandtlmayer6 жыл бұрын
What is this window? I have been using the last version, no problem. Follow my last video on sitl and mission planner
@marco6969ish6 жыл бұрын
It is the window that appears when the "connect" button is clicked. I will, thanks for answer
@girishreddyedula26675 жыл бұрын
HI How to do it in windows ??
@prandtlmayer5 жыл бұрын
I have another video for that, check out sitl in mission planner
@LNasterio6 жыл бұрын
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....
@prandtlmayer6 жыл бұрын
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
@prandtlmayer6 жыл бұрын
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
@tylerdurden85066 жыл бұрын
yes that was the problem... i forgot to change the network adapter to bridged. Thanks
@tankaichuen12584 жыл бұрын
Why shouldn't use sudo?
@prandtlmayer3 жыл бұрын
It's never a good idea to abuse of the super user environment. You might end up installing packages that work only for it
@alexyap73232 жыл бұрын
Great! Educational. Thanks for sharing.
@shreedharshah11483 жыл бұрын
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!!
@prandtlmayer3 жыл бұрын
Drone kit it's just a wrapper for mavlink so you should be ok using it
@khtan55315 жыл бұрын
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 ?
@prandtlmayer5 жыл бұрын
In Windows you run mavproxy without the .py
@kiwiminer3 жыл бұрын
which ubuntu vc use?
@prandtlmayer3 жыл бұрын
Any
@darpantrivedi32424 жыл бұрын
i have face this issue do have any idea : dronekit.APIException: Timeout in initializing connection.
@prandtlmayer4 жыл бұрын
I need more details, like what you tried to connect with what else?
@calebbergquist20666 жыл бұрын
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.
@prandtlmayer6 жыл бұрын
Great Caleb, find me on Linkedin
@ethanlee26024 жыл бұрын
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
@SuperSuperhugh4 жыл бұрын
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.
@prandtlmayer4 жыл бұрын
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
@karthickeyanmanivannan99124 жыл бұрын
Hi Tiziano ! 2.27 I have an error saying Sudo:pip: command not found
@prandtlmayer4 жыл бұрын
Just install pip
@serkanbtn4 жыл бұрын
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
@prandtlmayer4 жыл бұрын
For navio you can also ask them, they usually are very supportive. Another good place is the Ardupilot forum
@aviocavioc12806 жыл бұрын
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
@prandtlmayer6 жыл бұрын
SITL does not run on raspberry
@fratmehmet714 жыл бұрын
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.
@prandtlmayer4 жыл бұрын
Yes, no and yes
@qamishah6215 жыл бұрын
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
@prandtlmayer5 жыл бұрын
Never seen that. Follow other videos or mine about sitl
@TurBull4nc33 жыл бұрын
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
@prandtlmayer3 жыл бұрын
Explained better here kzbin.info/www/bejne/mYu5f6GahMaMeac&ab_channel=TizianoFiorenzani
@SarvaShakthiRotavator6 жыл бұрын
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?
@prandtlmayer6 жыл бұрын
Almost, will make a video about it soon. I'll keep you posted
@ankurkamboj48545 жыл бұрын
@@prandtlmayer hi is there any update on that step by step guide ? I am eagerly waiting.
@isrg72214 жыл бұрын
Can you do a tutorial for using DroneKit and SITL on a fixed wing
@prandtlmayer4 жыл бұрын
I already did
@dronzut68235 жыл бұрын
Hi, i did just like you but my MissionPlaner didin't connect . Any solution ?
@prandtlmayer5 жыл бұрын
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?
@prandtlmayer5 жыл бұрын
Be sure you can actually connect with the device. Do you use a virtual machine? Check the IP address and ping it
@Meowoofbark6 жыл бұрын
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..."
@prandtlmayer6 жыл бұрын
thanks for your hint
@parusmajor18265 жыл бұрын
What about MacOs? for my dissertation I am trying to build a autonomous quadcopter but I don't know where to start
@prandtlmayer5 жыл бұрын
Start from reading carefully all the Ardupilot wiki
@MrJawwadzahed7 жыл бұрын
WOW!! you made my life so easy
@prandtlmayer7 жыл бұрын
I am glad I did. Keep following and spread the news
@richdononthego6 жыл бұрын
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
@dinesh12866 жыл бұрын
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
@prandtlmayer6 жыл бұрын
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
@savoirrepubliquecondetutor9105 жыл бұрын
Nice tutorial. But it's a little to fast so many absolute beginners can't follow.
@prandtlmayer5 жыл бұрын
Thanks, I hope at least it points them in the right direction.
@robbieGftw4 жыл бұрын
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
@prandtlmayer4 жыл бұрын
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
@robbieGftw4 жыл бұрын
@@prandtlmayer Thanks a lot Tiziano!
@hatemmahmoudi38804 жыл бұрын
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
@prandtlmayer4 жыл бұрын
Build dronekit from source
@mardhapuhareesh45533 жыл бұрын
please mention what components used in drone construction
@prandtlmayer2 жыл бұрын
It is all simulated
@01bit3 жыл бұрын
Thank you!
@tomdebie24866 жыл бұрын
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
@prandtlmayer6 жыл бұрын
Sure, I have used the zero too. Much slower, need to check your CPU load
@pirunthankeerthinathan42865 жыл бұрын
Sir,can u make a video to send custom sensor messages from rpi to mission planner through pixhawk? that will be very helpful
@prandtlmayer5 жыл бұрын
I have never tried that
@bryankoh38365 жыл бұрын
Can the script you just wrote run on a Raspi companion pc with pixhawk as the flight controller?
@prandtlmayer5 жыл бұрын
... that is exactly what the whole purpose of a companion PC
@jiayeeten31144 жыл бұрын
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?
@prandtlmayer4 жыл бұрын
If I am not mistaken, the radius is just a parameter
@jiayeeten31144 жыл бұрын
@@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?
@vighneshnkp68665 жыл бұрын
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.
@zims1024 жыл бұрын
i want to do a course for python drone programmings. thanks.
@lestergetubig91615 жыл бұрын
What are the list of drones that can be controlled by this
@prandtlmayer5 жыл бұрын
Check on Ardupilot website
@yazeedarifin67085 жыл бұрын
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?
@prandtlmayer5 жыл бұрын
Is your VM connection in bridged mode?
@yazeedarifin67085 жыл бұрын
@@prandtlmayer yes
@hunterworld5744 жыл бұрын
hi sir, can we display the target point when running python code ?
@prandtlmayer3 жыл бұрын
yes
@MrOdded6 жыл бұрын
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!
@prandtlmayer6 жыл бұрын
Did you set the connection in bridged mode?
@dinesh12866 жыл бұрын
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.
@prandtlmayer6 жыл бұрын
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-gokce6 жыл бұрын
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.
@prandtlmayer6 жыл бұрын
there is a parameter on the autopilot that resets the board when you connect it to the USB. Don't remember the name though
@shakthiprashanth57305 жыл бұрын
Thanks Tiziano for the video. Do you also have a tutor for ardupilot firmware ?
@prandtlmayer5 жыл бұрын
No, sorry
@tylerdurden85066 жыл бұрын
+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?
@prandtlmayer6 жыл бұрын
Are you sure you put the right ip address?
@tylerdurden85066 жыл бұрын
Just to be sure :Which ip am I supposed to give? The ip of VM or the machine with the Mission Planner?
@mickey35726 жыл бұрын
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.
@prandtlmayer6 жыл бұрын
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)
@yazeedarief86705 жыл бұрын
Hi Tiziano!! May I know your python and pip version you installed?
@prandtlmayer5 жыл бұрын
Python 2.7 and latest pip
@yazeedarief86705 жыл бұрын
@@prandtlmayer thank you..
@yazeedarifin67085 жыл бұрын
sorry, but my linux pc doesnt run pip command. do you have any solution??
@prandtlmayer5 жыл бұрын
sudo apt-get install pip
@yazeedarifin67085 жыл бұрын
@@prandtlmayer done.. thx
@saran-ravi6 жыл бұрын
can you please explain why do we need to change the network connection as bridged?
@prandtlmayer6 жыл бұрын
Just to have a separate IP address
@omerfeyyazselcuk73255 жыл бұрын
Can you share a connection diagram of all hardwares? It is not clear yet understandable easily.
@omerfeyyazselcuk73255 жыл бұрын
Oh it is a simulation - I get it.
@prandtlmayer5 жыл бұрын
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
@SarvaShakthiRotavator6 жыл бұрын
what is Virtual Box exactly?
@prandtlmayer6 жыл бұрын
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
@zaidalani94425 жыл бұрын
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
@prandtlmayer5 жыл бұрын
In the code you can see that I have it in both camera and object axis
@zaidalani94425 жыл бұрын
@@prandtlmayer thank you for replying, yes but z orientation is always wrt marker frame not to the camera frame
@prandtlmayer5 жыл бұрын
No, there are two frames. Anyway, unless you are very tilted, one or the other are very close
@luigiluft49205 жыл бұрын
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.
@prandtlmayer5 жыл бұрын
With no GPS your position estimate degrades pretty quickly. You can set it in guided no gps and command attitude values. But why?
@luigiluft49205 жыл бұрын
Tiziano Fiorenzani to fly a drone autonomously in a warehouse
@ankurkamboj48545 жыл бұрын
@@luigiluft4920 in warehouse , you would need real time 3D map of obstacles to avoid it . So it seems tech called SLAM could work.
@dopichannel26464 жыл бұрын
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?
@prandtlmayer4 жыл бұрын
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)
@ady7d774 жыл бұрын
do you have a course sir?
@prandtlmayer4 жыл бұрын
Check in my channel, I have promoted one of a friend of mine, Caleb Begquist
@shayta_5 жыл бұрын
Tiziano do you know how to solve the problem "ERROR:autopilot:DISARMING MOTORS" when running the script?
@prandtlmayer5 жыл бұрын
Dronekit--sitl is outdated. Are you using that one?
@shayta_5 жыл бұрын
@@prandtlmayer Most likely, I used the instalation process presented on the PX4 page
@prandtlmayer5 жыл бұрын
I have another video where I show the sitl with Mission Planner
@shayta_5 жыл бұрын
@@prandtlmayer The thing is that I'm using PX4 and not Ardupilot, is there any chance you could link to anything updated?
@prandtlmayer5 жыл бұрын
I can't help you on px4
@frajomethippara99525 жыл бұрын
Hi Tiziano Fiorenzani! Thankyou for your videos .I would like to know how to do the same in raspbian using pi.
@prandtlmayer5 жыл бұрын
Exactly in the same way. Using dronekit
@prandtlmayer5 жыл бұрын
You connect to the telemetry port 2 using the uart
@kaanceylan835 жыл бұрын
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
@prandtlmayer5 жыл бұрын
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?
@kaanceylan835 жыл бұрын
@@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
@emretuncay3946 жыл бұрын
Hi Can we read pwm output using dronekit ?
@prandtlmayer6 жыл бұрын
Yes, create a listener for mavlink.org/messages/common#SERVO_OUTPUT_RAW