How to use SITL in Mission Planner for Ardupilot

Поделиться
HTML-код
  • Опубликовано: 11 дек 2024

Комментарии • 82

  • @anthonyshort8957
    @anthonyshort8957 6 лет назад +4

    This is a great video with lots of super helpful information collected into one place. Thank you.

  • @fzi-l3i
    @fzi-l3i 6 лет назад +3

    great video, please make detailed videos on the coding part of the planner for beginners. Thanks.

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      Sanjeev singh what is it?

    • @fzi-l3i
      @fzi-l3i 6 лет назад +1

      Tiziano Fiorenzani I mean detailed one, it is so quick and short that it is hard to follow up for beginners.

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      Sure, I'll put it in my list. Thanks for the hint

  • @robbieGftw
    @robbieGftw 4 года назад

    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!

    • @prandtlmayer
      @prandtlmayer  4 года назад

      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

  • @rolandog6388
    @rolandog6388 5 лет назад +1

    Sweet video, thanks! I had been wanting to learn about how this simulator worked.

  • @Vezz-rs7me
    @Vezz-rs7me 2 месяца назад

    I am bignner
    where can I learn step by Step sir for Ms

  • @IceFireIce-z7c
    @IceFireIce-z7c 3 года назад

    Why your terminal has master?

  • @venkatkona3474
    @venkatkona3474 4 года назад

    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.

  • @ms_sadel
    @ms_sadel 6 лет назад

    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

    • @prandtlmayer
      @prandtlmayer  6 лет назад +1

      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

  • @abdoulsavadogo8628
    @abdoulsavadogo8628 5 лет назад

    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...

  • @anishpratheepkumar4184
    @anishpratheepkumar4184 4 года назад

    Hai, can we use MAVROS node codes to simulate the drone in MissionPlanner (in ubuntu os)?

    • @prandtlmayer
      @prandtlmayer  4 года назад

      Mavros does not simulate. It's a ros package for interfacing with mavlink speaking drones

  • @makshay157
    @makshay157 5 лет назад

    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..

  • @hussainali9840
    @hussainali9840 3 года назад

    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

    • @prandtlmayer
      @prandtlmayer  3 года назад

      Use UDP rather the TCP port

    • @prandtlmayer
      @prandtlmayer  3 года назад

      actually, 5760 might be taken by Mission Planner already, try 5762

  • @khtan5531
    @khtan5531 5 лет назад

    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.

    • @prandtlmayer
      @prandtlmayer  5 лет назад

      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

    • @khtan5531
      @khtan5531 5 лет назад

      @@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?

  • @dionabadi5771
    @dionabadi5771 4 года назад

    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

    • @prandtlmayer
      @prandtlmayer  4 года назад

      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

  • @ashlyra5899
    @ashlyra5899 5 лет назад

    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

    • @prandtlmayer
      @prandtlmayer  5 лет назад

      I think you are doubting too much. The sitl can run anywhere on the network, not on the Raspberry Pi

  • @agbagb4668
    @agbagb4668 6 лет назад

    How can we access the saved mission (or a mission written in python) just with one press on key board

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      I am not sure I understand. Can you explain a little better?

    • @agbagb4668
      @agbagb4668 6 лет назад

      @@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

  • @ms_sadel
    @ms_sadel 6 лет назад

    Is there's a way to test the latency of a camera/video feed within Mission Planner?

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      It would help you you explain your setup a little better

    • @ms_sadel
      @ms_sadel 6 лет назад

      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.

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      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?

  • @kennethquinones6134
    @kennethquinones6134 6 лет назад

    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?

    • @dhruvab5
      @dhruvab5 6 лет назад +1

      Samee! As soon as I arm it, it disarms

    • @jackd6134
      @jackd6134 5 лет назад

      See Tiziano's response in other question below.

  • @jacquesdemolay2699
    @jacquesdemolay2699 5 лет назад

    Any way to make this software work on a Yuneec Typhoon H plus - the H+ is based on PX4 library - is this compatible ?

    • @prandtlmayer
      @prandtlmayer  5 лет назад

      I can't tell for sure as I've never tried. If you have one, try yourself and let me know

  • @dhruvab5
    @dhruvab5 6 лет назад

    Hey whenever I fly the sim the blue dot doesn't appear. why is that?

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      I noticed the same recently. Been investigating on that

  • @khalidbouziane4005
    @khalidbouziane4005 6 лет назад

    @Tiziano Fiorenzani. TKS for this great video, and I would like to know which version of windows are you using ?

  • @shwetashankarampetkar5502
    @shwetashankarampetkar5502 5 лет назад

    Sir, I didn't get the dronekit_test_05.py file in the description.Hope I will get reply soon.
    Thank you Sir.

  • @valuefocused2783
    @valuefocused2783 6 лет назад

    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?

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      Let me check it and I'll be back to you

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      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

  • @ozanayaz9667
    @ozanayaz9667 5 лет назад

    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

    • @prandtlmayer
      @prandtlmayer  5 лет назад +1

      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

  • @agbagb4668
    @agbagb4668 6 лет назад

    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..

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      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

    • @agbagb4668
      @agbagb4668 6 лет назад

      @@prandtlmayer ok sir..thank you

  • @krushikesh0219
    @krushikesh0219 6 лет назад

    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?

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      Do you have connection between the two Systems?

    • @krushikesh0219
      @krushikesh0219 6 лет назад

      @@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.

  • @khtan5531
    @khtan5531 5 лет назад

    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 ?

    • @prandtlmayer
      @prandtlmayer  5 лет назад

      SITL starts waiting a connection on its tcp port 5760

  • @marselomeri8143
    @marselomeri8143 6 лет назад

    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?

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      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

    • @marselomeri8143
      @marselomeri8143 6 лет назад

      Tiziano Fiorenzani Thanks and keep up with the great work. Is very helpful !

  • @sreesridharan3868
    @sreesridharan3868 5 лет назад

    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.

    • @prandtlmayer
      @prandtlmayer  5 лет назад

      Sorry, but I have no experience with x plane

  • @krushikesh0219
    @krushikesh0219 6 лет назад

    Have you worked with apSync or maverick? can you make a video on this if you got time?

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      Not completely. I will in the future

  • @thennekquinones9913
    @thennekquinones9913 6 лет назад

    Can you run this with windows 7?? im trying and it wont work :/

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      thenneK Quinones sorry, i can't tell

  • @vinhnguyenvan9419
    @vinhnguyenvan9419 6 лет назад

    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?

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      I am not very familiar with PX4 and jmavsim, sorry

  • @ser7ser7i
    @ser7ser7i 6 лет назад

    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.

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      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.

  • @mohamedaminebouchikhi8787
    @mohamedaminebouchikhi8787 6 лет назад

    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 !!

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      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 ;-)

  • @prateekgupta5945
    @prateekgupta5945 6 лет назад

    can anyone suggest me a similar guide for Linux?

  •  6 лет назад

    I think matlab/simulink will be much more great.

    • @prandtlmayer
      @prandtlmayer  6 лет назад

      But surely not open source

    •  6 лет назад

      @@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.

    • @omerfeyyazselcuk7325
      @omerfeyyazselcuk7325 5 лет назад

      @ Matlab/Simulink için öğrenci lisansı alabiliyor muyuz?

    •  5 лет назад

      @@omerfeyyazselcuk7325 Evet.

  • @ttaylor9916
    @ttaylor9916 11 месяцев назад

    you go so fast.. need to be an expert to follow....