* If you’re using the DroneKit-SITL Python API then you will instead have to connect to SITLs TCP port. So if DroneKit is connecting to TCP port 5760, you would connect your GCS to 5763 * Essentially, this way can also be done rather connecting to UDP ports, we can utilise the MavLink for sending messages through Script to reflect on Mission Planner - which can be connected to port 5763
@MUBEENAHAMEDKABIRRIBAYEE Жыл бұрын
I know it's been 3 years, but can you explain this to me? I'm tryna do something similar for my thesis
@troonsk4 жыл бұрын
You saved my day sir, thanks a lot. One thing that I encounter was that I had to change to Guided mode manually :)
@XPowerfullXPlayerX3 жыл бұрын
did you solve that?
@PappuYadav-tn7lu3 жыл бұрын
@@XPowerfullXPlayerX All you have to do is on Mission Planner's "Action" tab, choose Set Mode = Guided. And then run your simple_goto.py script.
@entertainmenthub68793 жыл бұрын
It is solved by downgrading pymavlink to 2.4.8
@PatchNFielder3 жыл бұрын
Yes, the more I hear about this software the more it’s stuck in time using older versions.
@shree46412 жыл бұрын
Even if I manually changed the action to guided mode, still it didn't work for me.
@dtfhgggynhvh876117 күн бұрын
I am having the same problem on disarming itself after a few second of arming and couldn't takeoff.
@tankaichuen12584 жыл бұрын
Thank you for the video. I am having the same problem on disarming itself after a few second of arming and couldn't takeoff. I will try your method to solve it to check whether it works.
@PankajMali4 жыл бұрын
this is because of the cmd nav failure
@angelleal30053 жыл бұрын
so it works after you tried his way ?
@gianfrancodelgiudice49262 жыл бұрын
Hello. Does anyone know why can't i change the flight mode manually in the mavproxy terminal or via python code? It only works if I do it in the "Actions" tab in mission planner
@tankaichuen12584 жыл бұрын
Hi Need some help I have been trying to connect to SITL the connection gets established but as soon as is try to arm the vehicle with vehicle.armed = True command Error : autopilot ARMING MOTOTS CRITICAL: Ground Start CRITICAL : Initializing APM Error : autopilot DISARMING MOTORS am not able to figure out the reason
@thianesh90974 жыл бұрын
I have the same issue
@tankaichuen12584 жыл бұрын
@@thianesh9097 I found the problem. The VehicleMode("GUIDED") from the script is not working. Therefore, I changed the mode manually in Mission Planner to takeoff, and it works with the script after changing the mode. However, I still cannot change to other modes like GUIDED, LAND, AUTO, RTL, and STABILIZE with my python script.
@thianesh90974 жыл бұрын
@@tankaichuen1258 Thank you for your reply. The script worked after changing it to guided mode using Mission Planner but, as you said the script was unable to change the mode on its own
@brcisna4 жыл бұрын
@@tankaichuen1258 Were is this setting in Mission planner? Cannot find "GUIDED mode'? New to Dronekit/MissionPlanner. Edit: After looking further I found "Flight Modes" I have no 'takeoff' mode? I am using a compiled version of APM Planner 2.x Linux. I do have guided mode. In the terminal repeats 'Waiting for the drone to enter GUIDED mode' I do have guided mode selected. Thank You
@PankajMali4 жыл бұрын
Actually the problem is mavlink , i dont know what i can call it as a bug or something but the latest version of mavlink has that error, so what i did was like reverting back installed freshly pip install pymavlink==2.4.8 n it works now , in your case the error is due to navigation command failure so you can revert back to previous version...hope it helps you.
@shree46412 жыл бұрын
what are the backup checks you have put in the simple_goto file because I'm getting this Error - ERROR:autopilot:DISARMING MOTORS. If possible can share share the updated file/link to the file. This worked for me - Set your vehicle mode to STABILIZE (or any other armable mode). Run your python script. Immediately change your vehicle mode manually to GUIDED. Your vehicle should perform your script commands if correct.
@scientia26802 жыл бұрын
I wanna know how did you do for launching the windows acedwards please...
@oussamabaroty5506 Жыл бұрын
i have no connection btw mission planner and SITL PLS HELP ME
@ihebchiha92053 жыл бұрын
hello, after writing a dronekit code and sending it to the drone, I run the code, everything is ok, but while the drone is going to the next waypoint, the altitude is not stable. I am using the simple_go function, and I mentioned the altitude. what could be the problem causing this variation of altitude.
@kaanvural29203 жыл бұрын
It's about the pitch movement of drone. When drone wants to go somewhere it's altitude has to be decrease because it has to bend it's nose forward.
@AkshayCuddapah3 жыл бұрын
Thank you. copter simulation is successful. But, I have problem with SITL plane (after second terminal commands there is no response, its not connecting to MP & MAVproxy: no link). can you please help me.
@PatchNFielder3 жыл бұрын
If you have trouble connecting to the MAVproxy usually there is something wrong with the port you're trying to use as the "fake" drone. All in all I haven't touched the system in years, but I do remember it has always been super buggy. If you forget about best coding practices and just mess with it until it works, that's what I've found to be the best solution.
@Vaishnavi-w4i Жыл бұрын
where is the link for the code
@jigarpatel79433 жыл бұрын
how to update baud rate in simple_go file
@tvstanuj61964 жыл бұрын
will it work it with python 3.....but it was given in the dronekit website that... it does not support python 3
@PankajMali4 жыл бұрын
yes it wont
@charithdilshan77913 жыл бұрын
It will work. The web site is not updated, but it actually works.
@PankajMali3 жыл бұрын
@@charithdilshan7791 yes it works but you need to very carefully work with that while choosing packages which works in both py2 and py3
@charithdilshan77913 жыл бұрын
@@PankajMali agree
@PappuYadav-tn7lu3 жыл бұрын
It does work for me at least including Python 3.8
@yahya98894 жыл бұрын
pip doesnt work anymore? this is frustrating im trying pip3 but its not working either
@angelleal30053 жыл бұрын
It really doesn't work. What a pitty.
@PappuYadav-tn7lu3 жыл бұрын
My recommendation would be to install Anaconda and open terminal from an environment in Navigator. From there everything like pip should work.
@sagarsajeev47684 жыл бұрын
mode_mapping = self.master.mode_mapping() AttributeError: 'NoneType' object has no attribute 'mode_mapping' Can someone help me out?
@ctaylo283 жыл бұрын
Andrew I followed your tutorial but when I check my dronekit import libraries in my windows terminal, i get error like: PS C:\Users\cecil> python Python 3.10.1 (tags/v3.10.1:2cd268a, Dec 6 2021, 19:10:37) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import dronekit Traceback (most recent call last): File "", line 1, in File "C:\Users\cecil\AppData\Local\Programs\Python\Python310\lib\site-packages\dronekit\__init__.py", line 2689, in class Parameters(collections.MutableMapping, HasObservers): AttributeError: module 'collections' has no attribute 'MutableMapping' What shall I do? My Windows has python3.10.1 installed. Can you help please. Thank you.
@PatchNFielder3 жыл бұрын
Might just be that package has an issue, I would search google and see if there’s another dependency you might need.
@PatchNFielder3 жыл бұрын
The longer response would be, I haven’t touched this module for like a year, but what it seems like is a dependency problem because of an old python version. I think I’m using python 3.7 in the video. But regardless, make sure the distinction is made between mavproxy and ardupilot. The script you write to tell the drone where to go is in python 3, but the OG mavproxy software is in python 2. If it wouldn’t disturb your other projects I would suggest maybe creating a dev environment and trying the python 3.7 version on windows and go through the package install part of the video again. The only way I got this software to work at all was using the setup I had in the video.
@ctaylo283 жыл бұрын
Luckily, it worked when I uninstall python3.10.1 then reinstall python3.9 -import dronekit is fine. But then went into another problem when I pull a 2nd terminal and call > dronekit-sitl copter --home=53.280707,-9.031534,0,180 Below is result: PS C:\Users\cecil> dronekit-sitl copter --home=53.280707,-9.031534,0,180 dronekit-sitl : The term 'dronekit-sitl' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + dronekit-sitl copter --home=53.280707,-9.031534,0,180 + ~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (dronekit-sitl:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException How come that unrecognised..? I install all that dependencies for dronekit in the powershell cmd terminal. Can u suggest another tip pls.. My PC running in windows10 with ubuntu20.04 on the side app.
@PatchNFielder3 жыл бұрын
Make sure you added python 3.9 to your PATH in windows. That maybe why the command isn’t recognized
@siou32683 жыл бұрын
Excellent video. Do you have any email? I need your help.
@PatchNFielder3 жыл бұрын
If you post your problem here you’re going to be able to get help from people who are using the software more readily. I haven’t touched this since I put the video up
@yossipz2 жыл бұрын
I followed your instructions exactly but for some reason I can't solve this problem drive.google.com/file/d/1J-pmjvXiEdpmUn4vEZ-PWpiyu45IKOgv/view?usp=sharing Do you have any idea what the problem is?