Sir I have a doubt ..... Am new to this field .....simulation should be in same pc or on different systems ??? .... Which version of Windows will yield good result ??? Plz sir
Is it possible to simulate 2 drones in SITL and visualise it in Mission Planner ? Secondly, is it possible to read the realtime positions of both drones from SITL ? The reason is because I am trying to test out and compare different guidance trajectory algorithms for the drone, and hopefully visualize it on a map.
Start 2 sitl and assign them two different ID. I don't know whether you can do it when you launch them, but you can do it by assigning a different sys_id parameter
@@prandtlmayer, I am relatively new to python and just need some help with figuring out what are the commands to type to start 2 sitl instances. Also, how exactly do I assign different sys_id parameters?
How can I simulate the battery power in SITL? I would like to see how Mission Planner displays warning boxes when the battery falls below a certain threshold
Very good video ! I have seen also a previous video when you use dronekit and ubuntu VM, I am following your instructions but I cannot connect VMs with the MP. I used same TCP IPs and UDP ports, but it keeps going 'connecting' forever. Could you please give me any suggestions?
Marsel Omeri unless you are customizing the code or want to try different releases, I'd use the method showed in the video here. If you need to run it on Linux VM, be sure the network is in bridge mode, so that the VM has a separate ip address
Sir I am facing a problem with the simulator after simulating the way point mission I was unable to deleate the given way points from the mission planner .Sir please help me with this and please replay after seeing thing sir.
Hi Tiziano! Thanks for the instructive video. I am trying to use MP with a separately built AP/SITL (i.e., not the one MP downloads & builds) and X-Plane. I am able to get my model on X-Plane takeoff by issuing commands from MP/Flight Data/Actions, but have trouble using a T.Flight Hotas X joystick with MP. I was wondering if you'd have some suggestions. I invoke MP with the command line options /joy "T.Flight Hotas X" /type plane, and, setup the joystick axes and channels in MP/Flight Data/Actions/Joystick, and "Enable" it. I have set a breakpoint in AP where it processes a MAVLINK_MSG_ID_MANUAL_CONTROL, but it is never reached, when I manipulate the joystick even after my plane has taken off. Have you successfully used a joystick with MP and SITL? Thanks.
Hi Tiziano, thank you for all your effort and good work, you are inspiring me. I have a project for school and i am taking it seriously cos i love my teacher. The project is autonomous drone with 4G telemetry that can take off, record video on defined location and land back to take of location. I am planning to use rasp3, pixhawk or ardupilot. Could you please advise hardware for such project? Thank you, all the best.
Now, that is what I call a project. What a teacher you got there. Be sure to post your videos when you're done. Anyway, you already mailed that, the Pi is an excellent choice. The 4g modem is basically a WiFi on steroids, so you can apply everything I teach and stream video. I could recommend starting off with APsync from ardupilot. Or even, but this might be a little challenging, a Maverick image.
Hi i am a big fan of your channel , your tutoriels are rich with information and well explained , thank you for sharing !! I want to ask you if we can use this simulation platform to simulate a distributed consensus algorithm for multiple UAVs in cooperation control , like to simulate a rendez vous problem for exemple , thank you again !!
Mr. Tiziano, I have a question about flight modes in dronekit, is it the same as in this documentation ardupilot.org/copter/docs/flight-modes.html ? because the copter documentation is error ardupilot.org//docs/flying-arducopter/flight-modes.html , and how do I use altitude hold modes in dronekit without gps? Thanks for the video
You can set any more available. If you are indoor and try to set a more that requires gps it fails. I advise you not to use any manual modes, like alt hold or loiter, but use guided, guided no gps
Hi..m getting a message in mission planner "inirializing apm waiting for first HIL_STATE message".. Whats is this m not getting this message..please guide..
I have install Mission Planner on my Win10 but i not able to fly the multirotor. I have selected take off and fly to here but nothing. There is not any ground speed or it increasing too slowly 0.01 0.02 0.03...
Hi Mr Tiziano, after trying dronekit-sitl copter - -home=33.5,73.1,584,353 i get an error that 5670 port is already in use SITL-0.stderr> bind port 5760 for 0 Starting sketch 'ArduCopter' bind failed on port 5760 - Address already in use. Im using windows 10
Hi sir, I was directed to this video from your previous video on dronekit-sitl in 2017 (which you pointed out is obsolete). My question is how does one go about 'connecting' Mission Planner GCS to the 'simulated vehicle' *before* I run the simple_goto.py Python script? The problem I am facing is that the GCS takes time to connect to the simulated drone after I start running the Python script and I can't observe the drone movement in Mission Planner for the early portion of the code. Any advice to resolve this ?
Your video is very interesting, I'm also trying to make a simulator, but unfortunately I can't make. I don't know How to connect a script with QGC and JMAVsim? can you help me?
Tiziano Fiorenzani I currently have a camera feed overlayed on the HUD via my laptop camera for now. Eventually, I will be using a raspberry pi and pixhawk. I will be overlaying the camera feed from the pixhawk onto the HUD. I want to make sure the video latency is max 350ms.
the latency only depends on your encoding/transmission/decoding setup. What camera are you sending: Is it analog or digital? If digital, what is the protocol. Are you using gstreamer?
Thanks for great dronekit videos Tiziano. When i write C:\Python27\python.exe .\dronekit_test_05.py --connect tcp:127.0.0.1:5762 this code i had this result TCP ports must be specified as host:port. Do you have any idea about fix this
Hi, I was trying to run a simple test.py script on my laptop where the mission planner is running and connected to tcp:127.0.0.1:5760 and had no issues running it via tcp port 5762 (python test.py --connect tcp:127.0.0.1:5762). Im now trying to run the script on my rpi which I'm sshing to via wifi. I run the same line (python test.py --connect tcp:127.0.0.1:5762) and Im getting the error [Errno 111] Connection refused sleeping. Any help would be appreciated!
SIL opens 5762 and 5763 only after something had connected to 5760. I'd recommend using mavproxy connected to 5760 and proxy to a UDP port where you connect your Pi
Hii Tiziano, the simulation is working perfectly with mission planner in windows with or without the script. but when i tried to work with the ubuntu like you shown in your video "Dronekit setup, simulation and visualization on Mission Planner" i am getting time out error. do you have any idea?
@@prandtlmayeryes, but I don't know where I am going wrong. currently, I am working on VM ubuntu 18.04 on windows 10. I will try it windows 7 then will let you know.
@@prandtlmayer Sure sir, I have seen your previous videos where u have accessed different vehicle modes through kEyboard (Ex- RTL with a letter r)... Similarly how can we launch our different mission plans which we created earlier through kEyboard Ex- a zigzag pattern through a letter z ...etc
Sir, I want to launch different Mission plans from one place to another place (AtoB) by just typing a letter on keyboard... Ex- Z for zig zag pattern...etc Can we write a code for this..
Sure. Try and do your best to write something and publish it here. We'll review. Generally speaking you need a script on the UAV and one on the ground that sends commands. On board you read the commands and move with a predefined trajectory
@@prandtlmayer I don't care. I have seen most of code of Matlab. There is very little important part of Matlab is not open sourced. There is great tools but some of them missing like mission planer support. I am using Matlab coder to iterate the process.
Hi Tiziano, I am currently using the latest version of Mission Planner which is 1.3.62. I just updated it from version 1.3.60 and am still having issues with SITL staying disarmed. How can I fix this? I see where you armed yours at minute 2:25 in the video but it's not changing anything for me.What version of Mission Planner were you using in this video?
Ok, the version I am using right now is 1.3.62. I started the SITL, connected through TCP (sometimes it doesn't connect automatically so you need to click on the button yourself). Once the EKF goes to white the system is ready to arm. Now, you need to set your vehicle to a flight mode where you can actually arm, like GUIDED, LOITER, STABILIZE... Sometimes the SITL starts off in RTL, that is not armable
This is a great video with lots of super helpful information collected into one place. Thank you.
Sweet video, thanks! I had been wanting to learn about how this simulator worked.
great video, please make detailed videos on the coding part of the planner for beginners. Thanks.
Sanjeev singh what is it?
Tiziano Fiorenzani I mean detailed one, it is so quick and short that it is hard to follow up for beginners.
Sure, I'll put it in my list. Thanks for the hint
@Tiziano Fiorenzani. TKS for this great video, and I would like to know which version of windows are you using ?
Khalid Bouziane 8.1
I am bignner
where can I learn step by Step sir for Ms
Sir I have a doubt ..... Am new to this field .....simulation should be in same pc or on different systems ??? .... Which version of Windows will yield good result ??? Plz sir
I think you are doubting too much. The sitl can run anywhere on the network, not on the Raspberry Pi
Is it possible to simulate 2 drones in SITL and visualise it in Mission Planner ? Secondly, is it possible to read the realtime positions of both drones from SITL ? The reason is because I am trying to test out and compare different guidance trajectory algorithms for the drone, and hopefully visualize it on a map.
Start 2 sitl and assign them two different ID. I don't know whether you can do it when you launch them, but you can do it by assigning a different sys_id parameter
@@prandtlmayer, I am relatively new to python and just need some help with figuring out what are the commands to type to start 2 sitl instances. Also, how exactly do I assign different sys_id parameters?
Why your terminal has master?
How can I simulate the battery power in SITL? I would like to see how Mission Planner displays warning boxes when the battery falls below a certain threshold
Sade L the easiest way to test it immediately is to set the battery failsafe at a value higher than you currently see in the main window
Have you worked with apSync or maverick? can you make a video on this if you got time?
Not completely. I will in the future
Very good video ! I have seen also a previous video when you use dronekit and ubuntu VM, I am following your instructions but I cannot connect VMs with the MP. I used same TCP IPs and UDP ports, but it keeps going 'connecting' forever. Could you please give me any suggestions?
Marsel Omeri unless you are customizing the code or want to try different releases, I'd use the method showed in the video here. If you need to run it on Linux VM, be sure the network is in bridge mode, so that the VM has a separate ip address
Tiziano Fiorenzani Thanks and keep up with the great work. Is very helpful !
Sir I am facing a problem with the simulator after simulating the way point mission I was unable to deleate the given way points from the mission planner .Sir please help me with this and please replay after seeing thing sir.
Hi Tiziano! Thanks for the instructive video. I am trying to use MP with a separately built AP/SITL (i.e., not the one MP downloads & builds) and X-Plane. I am able to get my model on X-Plane takeoff by issuing commands from MP/Flight Data/Actions, but have trouble using a T.Flight Hotas X joystick with MP. I was wondering if you'd have some suggestions. I invoke MP with the command line options /joy "T.Flight Hotas X" /type plane, and, setup the joystick axes and channels in MP/Flight Data/Actions/Joystick, and "Enable" it. I have set a breakpoint in AP where it processes a MAVLINK_MSG_ID_MANUAL_CONTROL, but it is never reached, when I manipulate the joystick even after my plane has taken off. Have you successfully used a joystick with MP and SITL? Thanks.
Sorry, but I have no experience with x plane
Hi Tiziano, thank you for all your effort and good work, you are inspiring me. I have a project for school and i am taking it seriously cos i love my teacher. The project is autonomous drone with 4G telemetry that can take off, record video on defined location and land back to take of location. I am planning to use rasp3, pixhawk or ardupilot. Could you please advise hardware for such project? Thank you, all the best.
Now, that is what I call a project. What a teacher you got there. Be sure to post your videos when you're done. Anyway, you already mailed that, the Pi is an excellent choice. The 4g modem is basically a WiFi on steroids, so you can apply everything I teach and stream video. I could recommend starting off with APsync from ardupilot. Or even, but this might be a little challenging, a Maverick image.
Hi i am a big fan of your channel , your tutoriels are rich with information and well explained , thank you for sharing !! I want to ask you if we can use this simulation platform to simulate a distributed consensus algorithm for multiple UAVs in cooperation control , like to simulate a rendez vous problem for exemple , thank you again !!
I haven't tried multiple vehicle simulation. I think you could run one SITL for each vehicle. You just gave me a great idea for a video ;-)
Mr. Tiziano, I have a question about flight modes in dronekit, is it the same as in this documentation ardupilot.org/copter/docs/flight-modes.html ? because the copter documentation is error ardupilot.org//docs/flying-arducopter/flight-modes.html , and how do I use altitude hold modes in dronekit without gps? Thanks for the video
You can set any more available. If you are indoor and try to set a more that requires gps it fails. I advise you not to use any manual modes, like alt hold or loiter, but use guided, guided no gps
Hi..m getting a message in mission planner "inirializing apm waiting for first HIL_STATE message".. Whats is this m not getting this message..please guide..
Hai, can we use MAVROS node codes to simulate the drone in MissionPlanner (in ubuntu os)?
Mavros does not simulate. It's a ros package for interfacing with mavlink speaking drones
Sir, I didn't get the dronekit_test_05.py file in the description.Hope I will get reply soon.
Thank you Sir.
I have install Mission Planner on my Win10 but i not able to fly the multirotor. I have selected take off and fly to here but nothing. There is not any ground speed or it increasing too slowly 0.01 0.02 0.03...
Post a short video on Facebook tizianotutorials
@@prandtlmayer ok
Hi Mr Tiziano, after trying dronekit-sitl copter - -home=33.5,73.1,584,353 i get an error that 5670 port is already in use
SITL-0.stderr> bind port 5760 for 0
Starting sketch 'ArduCopter'
bind failed on port 5760 - Address already in use.
Im using windows 10
Use UDP rather the TCP port
actually, 5760 might be taken by Mission Planner already, try 5762
Hi sir, I was directed to this video from your previous video on dronekit-sitl in 2017 (which you pointed out is obsolete). My question is how does one go about 'connecting' Mission Planner GCS to the 'simulated vehicle' *before* I run the simple_goto.py Python script? The problem I am facing is that the GCS takes time to connect to the simulated drone after I start running the Python script and I can't observe the drone movement in Mission Planner for the early portion of the code. Any advice to resolve this ?
SITL starts waiting a connection on its tcp port 5760
Your video is very interesting, I'm also trying to make a simulator, but unfortunately I can't make. I don't know How to connect a script with QGC and JMAVsim? can you help me?
I am not very familiar with PX4 and jmavsim, sorry
Is there's a way to test the latency of a camera/video feed within Mission Planner?
It would help you you explain your setup a little better
Tiziano Fiorenzani I currently have a camera feed overlayed on the HUD via my laptop camera for now. Eventually, I will be using a raspberry pi and pixhawk. I will be overlaying the camera feed from the pixhawk onto the HUD. I want to make sure the video latency is max 350ms.
the latency only depends on your encoding/transmission/decoding setup. What camera are you sending: Is it analog or digital? If digital, what is the protocol. Are you using gstreamer?
Thanks for great dronekit videos Tiziano.
When i write C:\Python27\python.exe .\dronekit_test_05.py --connect tcp:127.0.0.1:5762 this code i had this result TCP ports must be specified as host:port.
Do you have any idea about fix this
Be sure that port 5760 is actually open. SITL opens by default only 5760 and only after the first connection then opens also 5762 and 5763
Hi, I was trying to run a simple test.py script on my laptop where the mission planner is running and connected to tcp:127.0.0.1:5760 and had no issues running it via tcp port 5762 (python test.py --connect tcp:127.0.0.1:5762). Im now trying to run the script on my rpi which I'm sshing to via wifi. I run the same line (python test.py --connect tcp:127.0.0.1:5762) and Im getting the error [Errno 111] Connection refused sleeping. Any help would be appreciated!
SIL opens 5762 and 5763 only after something had connected to 5760. I'd recommend using mavproxy connected to 5760 and proxy to a UDP port where you connect your Pi
Hii Tiziano, the simulation is working perfectly with mission planner in windows with or without the script. but when i tried to work with the ubuntu like you shown in your video "Dronekit setup, simulation and visualization on Mission Planner" i am getting time out error. do you have any idea?
Do you have connection between the two Systems?
@@prandtlmayeryes, but I don't know where I am going wrong. currently, I am working on VM ubuntu 18.04 on windows 10. I will try it windows 7 then will let you know.
How can we access the saved mission (or a mission written in python) just with one press on key board
I am not sure I understand. Can you explain a little better?
@@prandtlmayer Sure sir,
I have seen your previous videos where u have accessed different vehicle modes through kEyboard (Ex- RTL with a letter r)...
Similarly how can we launch our different mission plans which we created earlier through kEyboard
Ex- a zigzag pattern through a letter z ...etc
Sir, I want to launch different Mission plans from one place to another place (AtoB) by just typing a letter on keyboard...
Ex- Z for zig zag pattern...etc
Can we write a code for this..
Sure. Try and do your best to write something and publish it here. We'll review. Generally speaking you need a script on the UAV and one on the ground that sends commands. On board you read the commands and move with a predefined trajectory
@@prandtlmayer ok sir..thank you
Hi im new in this im trying to do the SITL but the simulation is stuck on disarmed i need to do something before doing the simulation?
Samee! As soon as I arm it, it disarms
See Tiziano's response in other question below.
I think matlab/simulink will be much more great.
But surely not open source
@@prandtlmayer I don't care. I have seen most of code of Matlab. There is very little important part of Matlab is not open sourced.
There is great tools but some of them missing like mission planer support.
I am using Matlab coder to iterate the process.
@ Matlab/Simulink için öğrenci lisansı alabiliyor muyuz?
@@omerfeyyazselcuk7325 Evet.
Any way to make this software work on a Yuneec Typhoon H plus - the H+ is based on PX4 library - is this compatible ?
I can't tell for sure as I've never tried. If you have one, try yourself and let me know
Hi Tiziano, I am currently using the latest version of Mission Planner which is 1.3.62. I just updated it from version 1.3.60 and am still having issues with SITL staying disarmed. How can I fix this? I see where you armed yours at minute 2:25 in the video but it's not changing anything for me.What version of Mission Planner were you using in this video?
Let me check it and I'll be back to you
Ok, the version I am using right now is 1.3.62. I started the SITL, connected through TCP (sometimes it doesn't connect automatically so you need to click on the button yourself). Once the EKF goes to white the system is ready to arm. Now, you need to set your vehicle to a flight mode where you can actually arm, like GUIDED, LOITER, STABILIZE... Sometimes the SITL starts off in RTL, that is not armable
Hey whenever I fly the sim the blue dot doesn't appear. why is that?
I noticed the same recently. Been investigating on that
Can you run this with windows 7?? im trying and it wont work :/
thenneK Quinones sorry, i can't tell
can anyone suggest me a similar guide for Linux?
you go so fast.. need to be an expert to follow....