Autonomous Takeoff and Land Python Script Demonstration | Dronekit Python RPI | Beginners Guide

  Рет қаралды 22,427

Pankaj Mali

Pankaj Mali

Күн бұрын

Detailed demonstration for running your first python dronekit script on actual drone with Pixhawk and raspberry pi as companion computer Setup. Methods on running the script and way to gain manual control over your drone if something goes wrong.
In next videos we will get in detailed with dronekit python and see how we can use dronekit API'S with computer vision libraries and Robot Operating System.
Dronekit-pythons's doc: dronekit-pytho...
Examples: dronekit-pytho...
Code: github.com/pun...
-----------------------------------------------------------------------------------------------------------------------------
Buy this amazing drone courses
1. Drone Programming Primer:
dojofordrones....
2. How to Build a Raspberry Pi Drone:
dojofordrones....
3. Drone Delivery and Precision Landing:
dojofordrones....
---------------------------------------------------------------------------------------------------------------------------------------------
For daily updates, you can catch me up on
Instagram: www.instagram....
Telegram group - t.me/joinchat/...
Instagram Droid - ...
Twitter- In...
For more videos subscribe to the channel....

Пікірлер: 226
@ais_robotic
@ais_robotic 7 ай бұрын
brother, drone kit work with python 2.7 but other version mode set not work! and i am try and tired! i can't install dronekit 2.9.0 in python 3 or 4 also in windows mavproxy can't change mode return the same mode!
@PankajMali
@PankajMali 7 ай бұрын
Hi, Use python version 3.6. And if you already have anyother pythin 3 eg. Pythin 3.8/3.11 then set python 3.6 on default and then install all the pythin packages using pip3 install . It will workk
@oguzhanizgi7222
@oguzhanizgi7222 2 жыл бұрын
I take error WARNING:dronekit:Link timeout, no heartbeat in last 5 seconds, what should I do?
@PankajMali
@PankajMali 2 жыл бұрын
The only reasons for this error are 1. Check the rx tx pins if rhey got interchanged 2. Check for the Bluetooth disable step
@tturkmen
@tturkmen Жыл бұрын
Helle. Good work. I write some dronekit, connect pixhawk from laptop using by telemetry but it does take off. What ı must do from transmitter? Can you help me?
@PankajMali
@PankajMali Жыл бұрын
Hello, Transmitter is just for safety/ like a backup controller ...only thing you need to when you want to use transmitter before changing mode from transmitter just keep your throttle stick to mid positio and then change mode to take manual control .
@ais_robotic
@ais_robotic 3 ай бұрын
can u communicate between apm/pixhwak and arduino???
@PankajMali
@PankajMali 2 ай бұрын
Yes it works
@santiagoperez6769
@santiagoperez6769 20 күн бұрын
Very cool drone brother! I tried following along, but I am getting unusual behavior when hovering and was wondering if you could help me. I used your code to takeoff, but once I get the "altitude reached" message, the drone does not stay still at the desired altitude. Instead, it oscillates up and down, like its in water, and never hovers in place, like yours does, until the mode is switched to LAND mode. So if I try to hover at 2 meters, it will get to 2 * 0.95, then it will bob up to 3, then down to 1, then back up to 3, then back down to 1, and neither of those is 2 * 0.95. I have the break statement when altitude is reached, so I am not sure what is happeneing. I also did several autotune. Have you ever experienced this?
@PankajMali
@PankajMali 20 күн бұрын
Hello, In order to debug this issue, i request you to take off using RC and put the drone in Loiter mode and just observe . If you find similar behaviour then its because of the faculty measurement. I have this same issue 7 years back with chinese cloned pixhawk 2.4.8, i replace the autopilot and it was all good. When ever i was gaining or loosing altutude it used to do up and down with some jerks.
@santiagoperez6769
@santiagoperez6769 19 күн бұрын
@@PankajMali Oh really, interesting... I also have the 2.4.8 chinese clone. However, I think my issue might be different because I just tried a flight and put it in loiter to reproduce the bug, like you said, but it did not reproduce the bug. When I enabled loiter from my RC controller, it hovered very still, with no dipping up and down. Its a very strange bug, and now I am thinking that it might have something to do with the dronekit code and my copter version. I am running Copter version 4.3.7, so I am wondering if something behind the scenes has changed from the older versions. Do you remember what Copter version you were using in the mission from the video? If thats the case, then I might have to code up a PID controller or something because the dipping up and down oscillations are very symmetric. If I set the desired height to 2, then it oscillates between 1 and 3. After checking the dataflash log, I see a dampinging happening aswell so that the wave goes 3 to 1, then 2.7 to 1.3, then 2.5 to 1.5, and stays there such that the drone keeps dipping up and down. I will also try to go up higher, like 15 meters, and try to hover for a longer duration, like you do. Wish me luck as I try to take a deep dive into debugging territory lol.
@santhoshmamidisetti
@santhoshmamidisetti 11 ай бұрын
can you please tell the delay thing, I mean the first method at 6:28 . and also what switch has to be toggled ? to take manual control , I mean what actually is that switch ??
@PankajMali
@PankajMali 10 ай бұрын
Hello, In this video i have executed the code from laptop using ssh . Anothet way is to add your python code to the shell script so that it will start the code as soon as drone is powered and gor safety purpose you can add some 1 min delay so that you can stand away from drone once powered on. You will be having a flight mode switch on your transmitter which has user defined modes like stabilize, loiter , rtl, alt hold etc ...so whenever you execute your code and want to take manul then just an interrupt has to be generated from your transmitter, so its like you just toggle your mode switch irrespective of its initial position...just toggle it and take manual control and dont forget to keep throttle at 50 percent. Good luck
@lyaeusv3828
@lyaeusv3828 2 жыл бұрын
bro cool video but the music is extremely annoying ! Great job anyway
@PankajMali
@PankajMali 2 жыл бұрын
Hi Lyaeus, Will take care of that in next videos
@EclipseGST
@EclipseGST 3 ай бұрын
Hello. Are you available to help/answer some questions?
@PankajMali
@PankajMali 3 ай бұрын
Yes please
@EclipseGST
@EclipseGST 3 ай бұрын
@@PankajMali Thank you! Basically... (Im from Brazil, so sorry for any english mistakes) Im building the parts to build a drone with raspberry pi and pixhawk. My main doubt is: As i can see, i can just choose some waypoints and flight autonoumously using mission planner, but its possible to stream the video while drone is flying? I mean... There is a raspberry and a camera on the drone, do you know a good way to watch the camera recording on real time through internet? Or only using something like VNC/team viewer?
@kamaleshbera7773
@kamaleshbera7773 2 жыл бұрын
Can windows be use instead of using ubon to? Please say
@PankajMali
@PankajMali 2 жыл бұрын
Yes you can use
@suyogsonar4715
@suyogsonar4715 Жыл бұрын
How I can change the location nd from where ???
@PankajMali
@PankajMali Жыл бұрын
Hi suyog, You can use the goto command where you can add the coordinates. Please refer dronekit documentation for more details regarding the commands
@9324krishna
@9324krishna 2 жыл бұрын
Pankaj ji which drone u have used here I want to buy it
@PankajMali
@PankajMali 2 жыл бұрын
Hello shantanu ji Drone that you see is custom designed and developed . You can catch me on Instagram for more details @punky_pankaj
@arminrad5357
@arminrad5357 2 жыл бұрын
thanks
@mahmudmitu
@mahmudmitu 3 жыл бұрын
Hi. Can you sell this technology
@PankajMali
@PankajMali 3 жыл бұрын
Its already available on the internet just you need to build it
@tonesdrones7395
@tonesdrones7395 Жыл бұрын
What size props are you using?
@PankajMali
@PankajMali Жыл бұрын
Hello, Prop size is 17x5.5 inch
@ais_robotic
@ais_robotic Жыл бұрын
Brother I am tired to run dronekit-sitl similator ! It installed and downloaded model bur running time not work what can I do?? Please make a video or if u have solution please help me to do this..
@PankajMali
@PankajMali Жыл бұрын
Hello, Do you get any errors?
@ais_robotic
@ais_robotic Жыл бұрын
yes brother..
@PankajMali
@PankajMali Жыл бұрын
Can you please elaborate on your issue
@dawatamang3667
@dawatamang3667 6 ай бұрын
I constantly receive link:error no heartbeat in last 5 seconds. How can i resolve this?\
@PankajMali
@PankajMali 6 ай бұрын
This happens when there's no connection between rpi and pixhawk. 1. Check the tx rx pins , might be revered. 2. Check for setting on rpi 3.check baudrate which is assigned to telemetry ports the one which you are using with mission planner. 57600/ 921600
@dawatamang6765
@dawatamang6765 6 ай бұрын
@@PankajMalicould you make a new video to how to integrate pixhawk and raspberry pi along with picam for a line follower drone?
@PankajMali
@PankajMali 6 ай бұрын
@@dawatamang6765 sure
@LetsSink
@LetsSink Жыл бұрын
since your ssh depends on wifi connection, what happens if one of the devices gets disconnected e.g. if drone goes to such a height or distance away and loses connections. WIll the running script not terminate?
@PankajMali
@PankajMali Жыл бұрын
Hello deep blue sea, You are correct, the aircraft keeps on doing its task according to the script . Ssh is just a medium to access the rpi just to trigger the script.
@LetsSink
@LetsSink Жыл бұрын
@@PankajMali are you sure? my research suggests if SSH session gets disconnected, the process terminates
@PankajMali
@PankajMali Жыл бұрын
Yes im sure , i have tested it many time . If i het time I'll put this query in a video
@umeshjadhav3326
@umeshjadhav3326 3 жыл бұрын
Really impressed by the detailed instructional videos.... Keep it up!! Eagerly waiting for upcoming videos......
@PankajMali
@PankajMali 3 жыл бұрын
Thank you very much for appreciation. Will come up with new videos soon 🤘
@ANKITKUMAR-pc8uz
@ANKITKUMAR-pc8uz Жыл бұрын
Sir, I want to do only flight planning.. i.e. making waypoints using python then it will export a KML. I will put that waypoint KML in a software and drone will fly. How to do flight plan using python, where I will input area KML, wind direction, overlap and it will make waypoint
@PankajMali
@PankajMali Жыл бұрын
Hello ankit , In order to create waypoint from a kml . You need to use pykml package 1) from pykml import parser 2) root =parser.fromstring(open('BatchGeo.kml', 'r').read()) 3) print root.Document.Placemark.Point.coordinates So basically above steps will read a kml file and print the coordinates. As per your requirements you can fetch the coordinates one by one to a python array and then access them as waypoints .
@snehashreemukherjee1641
@snehashreemukherjee1641 Жыл бұрын
For autonomous drone, can we use apm 2.8 satisfactorily? As of now I am unable to get pixhawk in market and have no other option but to go with apm. Kindly help.
@PankajMali
@PankajMali Жыл бұрын
Yes you can go with apm...it is no longer supported by the community but still you can build your project with some limitations as compared to pixhawk. Check robu.in for pixhawk
@raafsports1728
@raafsports1728 3 жыл бұрын
can you show us how to run any Python script on RPi and see the simulation on mission planner ? A small video this would be very helpful, thank you in advance
@PankajMali
@PankajMali 3 жыл бұрын
Hello, You can check the video on sitl anf gazebo simulation i have completed the basic setup...it will help you to understand
@raafsports1728
@raafsports1728 3 жыл бұрын
@@PankajMali can you please share the link of the video you are talking about? Thanks
@PankajMali
@PankajMali 3 жыл бұрын
kzbin.info/www/bejne/eYaok4euZqubZ9k
@mohamedrachidi1028
@mohamedrachidi1028 3 жыл бұрын
when you send the script the remote in witch mode should be because i put it in the stabilize mode after thet i send the code after few sec the drone armed but dont go up stay on the ground so what i should choose the mode frome remote wile fliying it from the script an help please???????????????
@PankajMali
@PankajMali 3 жыл бұрын
Good question Mohamed When you run a python script you can keep your transmitter in any mode like stabilize or loiter it doesnt matter. I mainly have it in stabilize mode so that when ever i want to get manual control i flip the switch to loiter and the copter is steady. Main thing to remember is you dont change the mode from transmitter once you run the script as it will generate a interrupt and tell the system to get manual access and it wont takeoff. Once it takes off just keep the throttle to 50 percent in case required to take manual control, before takeoff dont move any switch on transmitter.
@nandinijogdand4863
@nandinijogdand4863 2 жыл бұрын
👍
@electronicseverywhere204
@electronicseverywhere204 3 жыл бұрын
I have one doubt please clear it ................................................On toggle switch , which mode you are providing Loiter Land RTL or others
@PankajMali
@PankajMali 3 жыл бұрын
I have mainly configured 3 modes on this transmitter 1. Stabilize 2. Loiter 3.auto (incase if iam going for some waypoint mission) And this modes are just for backup in case something goes wrong with your code
@electronicseverywhere204
@electronicseverywhere204 3 жыл бұрын
I am using flysky transmitter . Please provide me information about . Which switches in transmitter are used for this mode
@PankajMali
@PankajMali 3 жыл бұрын
On top right section of your transmitter use that 3 position switch which is usually channel 5 assigned switch
@electronicseverywhere204
@electronicseverywhere204 3 жыл бұрын
I am running your GitHub code on thony python ide but there are showing error that dronekit is not found . But I have already installed it though cmd . How can I add this library in thony ide . If you have any suggestions please share me .
@electronicseverywhere204
@electronicseverywhere204 3 жыл бұрын
Thank you 😊
@dooi722
@dooi722 2 жыл бұрын
Would this work for a drone that fly in indoor places (non-gps places)
@PankajMali
@PankajMali 2 жыл бұрын
Yes this script can be tested with no gps guided mode but not recommended unless and until your are specific about the sensors or the approach that you take to build your system like ..... you can use px4 flow sensor as an alternate to gps for position hold and you can use vision based navigation stack like any cameras along with visual markers or can go with lidar based approach .
@raj61091
@raj61091 3 жыл бұрын
Thanks, a good starting point for a drone developer like me
@PankajMali
@PankajMali 3 жыл бұрын
Yup❣
@ihebchiha9205
@ihebchiha9205 3 жыл бұрын
Thanks for the video , but i want to ask you why after starting the code it takes about 30 second to connect to the drone and begin the mission !?
@PankajMali
@PankajMali 2 жыл бұрын
Hi iheb, Let me know about your setup, doe your drone starts the mission automatically once it i powered ? Or you manually run the code from your laptop ?
@vishalkalse2160
@vishalkalse2160 2 жыл бұрын
Nice bhava drone chi price kay ahe
@PankajMali
@PankajMali 2 жыл бұрын
Ha drone custom designed aahe ...you can calm it as a diy type, it cost around 1 Lakh complete set
@syahrialrasyid2539
@syahrialrasyid2539 11 ай бұрын
thanks a lot sir, it gives me a general view of drones programming, hope i can reach far on this learning journey
@PankajMali
@PankajMali 11 ай бұрын
Hi, I'm glad it helped you
@ais_robotic
@ais_robotic Жыл бұрын
brother all is work but "vehicle.mode= VehicleMode()"" -mode not work return same mode! what cai I do??
@PankajMali
@PankajMali 8 ай бұрын
Update mavlink
@RajPatel-vc6mg
@RajPatel-vc6mg 2 жыл бұрын
Is it possible to connect to the onboard Rasberry pi with rfd 900 telemetry or herelink telemetry? If so, can you make a video on how to set it up ? The short WiFi range for Rasberry pi communication is a big limitation and 4g is unreliable where I live. Thanks
@PankajMali
@PankajMali 2 жыл бұрын
Yes , that can be done.
@RajPatel-vc6mg
@RajPatel-vc6mg 2 жыл бұрын
@@PankajMali can’t wait for the video !
@anukeshpratapsinghrana3475
@anukeshpratapsinghrana3475 4 жыл бұрын
Hey Pankaj its Anukesh your work is great👍👍👍
@PankajMali
@PankajMali 4 жыл бұрын
That means a lot, thank you ❣❣
@satyamkshirsagar2722
@satyamkshirsagar2722 4 жыл бұрын
Wow
@msuegajnriorpenda9745
@msuegajnriorpenda9745 Жыл бұрын
Cool!
@PankajMali
@PankajMali Жыл бұрын
Yo 🤘
@johnmelbolaybolay6269
@johnmelbolaybolay6269 Жыл бұрын
I got a question. Does the vehicle.armed = True works only if the drone is in Guided mode? I tried arming it in stabilize mode but I always get the error of throttle too high
@PankajMali
@PankajMali Жыл бұрын
Hellp john, Yes you are correct ....drone gets armed only in guided mode when commands are sent via a companion computer
@johnmelbolaybolay6269
@johnmelbolaybolay6269 Жыл бұрын
@@PankajMali Last question about the algorithm vehicle.is_armable. Is the GPS lock one of the parameters needed to be set for the vehicle.is_armable to return a True value?
@러시아연방KOMPAS-3D
@러시아연방KOMPAS-3D 2 жыл бұрын
error device reports readiness to read but returned no data?
@PankajMali
@PankajMali 2 жыл бұрын
Hello, I see that you might have used mavproxy command becfore running the python script. Try running this command sudo killall -9 mavproxy.py
@PankajMali
@PankajMali 2 жыл бұрын
If still you aren't able to get the serial data then plz elaborate about your setup
@PankajMali
@PankajMali 2 жыл бұрын
Did you follow the video ? Check for baudrate Check the gpio enabled for serial communications Check the port in which the communication is trying to establish.
@러시아연방KOMPAS-3D
@러시아연방KOMPAS-3D 2 жыл бұрын
Waiting for vehicle to initialise... Waiting for vehicle to initialise... Waiting for vehicle to initialise... Waiting for vehicle to initialise... Waiting for vehicle to initialise... Waiting for vehicle to initialise... Waiting for vehicle to initialise... Waiting for vehicle to initialise... Waiting for vehicle to initialise... Waiting for vehicle to initialise... what? waiting????
@gilquinones6652
@gilquinones6652 2 жыл бұрын
Great presentation! Is the script actually available?
@PankajMali
@PankajMali 2 жыл бұрын
Yes its available
@ais_robotic
@ais_robotic Жыл бұрын
brother i can't comment i sent u a text mail plz. help me to fix!
@PankajMali
@PankajMali Жыл бұрын
Yes, i have received your mail
@ais_robotic
@ais_robotic Жыл бұрын
@@PankajMali now what can i do brother??
@PankajMali
@PankajMali Жыл бұрын
Did you install ardupilot directory from github? If yes then ...the command what you have used is not sufficient to start rhe simulation . Badically there are 2 ways to start sitl 1. If you are following official documentation then you need to install dronekit, mavlink , mavproxy and then start mavproxy ...here you xan just simulate in mavproxy terminal and also connect mission planner over udp /tcp 2. If you need ardupilot with Gazebo then you need to clone ardupilot directory Commands that you have used are incomplete and you need to install python dependencies. Follow my video on installing ardupilot directory.
@ais_robotic
@ais_robotic Жыл бұрын
@@PankajMali no i am not install ardupilot dir i am just using dronekit , mavproxy, pymavlink . i dont need Gazebo. just drone kit-sitl can u help me on tream view controll just for setup??
@ais_robotic
@ais_robotic Жыл бұрын
plz brother help me to run sitl...
@vermamilan
@vermamilan 3 жыл бұрын
You are doing great keep it up !!
@PankajMali
@PankajMali 3 жыл бұрын
Thank you ....really appreciate your support ❣
@maharashtrapolice7761
@maharashtrapolice7761 3 жыл бұрын
Good information sir
@akshaydevanpally3764
@akshaydevanpally3764 3 жыл бұрын
hi, i was trying to do the same,in time your uploaded video was very helpfull iam stuck at code while running it says " waiting to inisialize" and then message is repeating. i checked all the parameters and even gave it a gps lock and even all the neccesary connections the pixhawk has the green led light blinking (system is ok). But the code isnt running.but when done in mavproxy its doing well.pls help...
@PankajMali
@PankajMali 3 жыл бұрын
Just confirm the setup once.....check this steps 1.check if pixhawk n rpi are communicating properly by this this commands sudo -s Python mavproxy.py --master=/dev/ttyAMA0 --baudrate 921600 --aircraft MyCopter If it gives you all the parameters and you can see mode change if you use rc transmitter then just try arming the motors (check for propellers) By using : arm throttle To disarm use :disarm Now its time to run the simple python script for example arm takeoff and land ,just bench test it In you code check for the baudrate that u have set in mission planner for telemetry 2 Baudrate must be same as in you code where you pass the connection string If you get get error like "initialization time out" then it means its due to baudrate and If you get error like "initialization waiting for arm" then check for pre arm check errors by manually arming the drone via rc transmitter If you get error like pre arm logging failed while manually arming the drone then set log backed type to 1(file) in parameter list N most important never connect rpi to the usb port on pixhawk its good just for bench testing
@PankajMali
@PankajMali 3 жыл бұрын
If you still get the error then kindly provide more details about that
@akshaydevanpally3764
@akshaydevanpally3764 3 жыл бұрын
@@PankajMali sure ,thanks a lot I'll try it
@akshaydevanpally3764
@akshaydevanpally3764 3 жыл бұрын
@@PankajMaliYes it worked 1) I fixed the Ekf Nav failure 2) Fixed logging parameters 3) Need a good gps so I had to bring a gps with compass and set Ekf and INS to 2 Thanks a lot ur suggestion really helped
@PankajMali
@PankajMali 3 жыл бұрын
Yeah that's great, glad it helped you...keep building ❤
@johnmelbolaybolay6269
@johnmelbolaybolay6269 Жыл бұрын
Hello, I got another question. Whenever I try to run the script, I always get this error of "Arm:Throttle(RC3) is not neutral" around the part of vehicle.armed = True. I only got it to pass when I put one joystick at the bottom (which is seen in your video around 8:30). Is it really required to have the joystick at the lowest value before it can pass the arming? Or is there any other way to get past this?
@PankajMali
@PankajMali Жыл бұрын
Hi , If the throttle is not at the lower position or zero the pre arm check will generate a error ....this is for safety . If you run the script and then simultaneously you move thr throttle upward then manual interrupt is generated and the code execution stops. Yes it is reaply required to have the throttle stick at thr lowest value before arming
@johnmelbolaybolay6269
@johnmelbolaybolay6269 Жыл бұрын
@@PankajMali So the throttle being at the lowest position or zero is also a parameter of the vehicle.is_armable?
@PankajMali
@PankajMali Жыл бұрын
Yes, you can check the arming_check parameter in the mission planner for list of all the parameters under that
@johnmelbolaybolay6269
@johnmelbolaybolay6269 Жыл бұрын
@@PankajMali I got it now! Thanks so much
@Badhousegaming463
@Badhousegaming463 3 жыл бұрын
Super
@satyagaming1213
@satyagaming1213 4 жыл бұрын
Keep it up
@PankajMali
@PankajMali 4 жыл бұрын
Thank you
@rajrathod7362
@rajrathod7362 4 жыл бұрын
majh tr awaj nahie ki
@arindamsingha8659
@arindamsingha8659 2 жыл бұрын
Hi Pankaj Impressive work... Want to see an autonomous trajectory tracking video, and how to implement the designed controller on the pixhawk.
@PankajMali
@PankajMali 2 жыл бұрын
Hello arindam , Yes, will be soon starting to upload
@akashpawar3722
@akashpawar3722 11 ай бұрын
Hi pankaj
@PankajMali
@PankajMali 8 ай бұрын
Hello , How can i help you?
@rajrathod7362
@rajrathod7362 4 жыл бұрын
any way thats supb.......... keep going bro
@PankajMali
@PankajMali 4 жыл бұрын
Dhanyavaad bhaii
@shivshankarkhobare8962
@shivshankarkhobare8962 4 жыл бұрын
👍👍
@jaideepambar4368
@jaideepambar4368 3 жыл бұрын
Wow this is cool , have followed your last video and I'll be trying out this too Amazing video 😍
@PankajMali
@PankajMali 3 жыл бұрын
Great, will be out with further uploads also❣❣
@rohan228
@rohan228 4 жыл бұрын
Great brother keep doing 🤟
@PankajMali
@PankajMali 4 жыл бұрын
Thank you buddy ❣❣
@TurBull4nc3
@TurBull4nc3 3 жыл бұрын
Hi, How do i fix the "import dronekit-sitl error"?
@PankajMali
@PankajMali 3 жыл бұрын
Install dronekit sitl ,using terminal sudo apt-get install dronekit-sitl
@PankajMali
@PankajMali 3 жыл бұрын
For more information refer dronkit official docs
@avinashthakre1394
@avinashthakre1394 4 жыл бұрын
Great bro..
@PankajMali
@PankajMali 4 жыл бұрын
Thank you sir
@harshadmehta500
@harshadmehta500 4 жыл бұрын
Fantastic...🤩🤩
@PankajMali
@PankajMali 4 жыл бұрын
Thanks a lot
@gowrishankar7011
@gowrishankar7011 3 жыл бұрын
Nice work mahn😍😍😍
@PankajMali
@PankajMali 3 жыл бұрын
Thank you ❣❣
@jacobstech1777
@jacobstech1777 2 жыл бұрын
what is the mode on transmitter?
@PankajMali
@PankajMali 2 жыл бұрын
The transmitter is in mode 2 configuration and A 3-position switch having stabilize, Loiter and alt hold modes. Just to be on the safer or to get manual control we have to generate an interrupt using this switch and gain control
@jacobstech1777
@jacobstech1777 2 жыл бұрын
@@PankajMali so when it is flying on it own, the mode on transmitter is stabilize, when you want manual control, you change it to loiter mode?
@PankajMali
@PankajMali 2 жыл бұрын
When its in the air ( guided mode) then the modes on transmitter doesnt matter it can be in any either stabilize or loiter or althold any .... and when i want manual i take it in loiter or stabilize depending where the switch is initially before take off . Usually i have the switch on stabilize initially so when ever i toggle it gets on loiter.
@jacobstech1777
@jacobstech1777 2 жыл бұрын
@@PankajMali sure, thank you!
@WjmDronie
@WjmDronie 3 жыл бұрын
Very interesting Thank you for sharing 👍🦅✨
@PankajMali
@PankajMali 3 жыл бұрын
Welcome❣❣
@venkateshm1037
@venkateshm1037 2 жыл бұрын
Hi bro Is there any way to upload the waypoints to drone with our own gps coordinates.
@PankajMali
@PankajMali 2 жыл бұрын
Hello venkatesh, Yes you can upload waypoints in some of the following ways 1. With companion computer you can call out the mission file from the pixhawk and fetch it. 2. You can use navigation api with dronekit, like you can use goto function to let the drone acquire that particular cordinate. 3. You can write a function which will accept user coordinates while the aircraft in the air.
@venkateshm1037
@venkateshm1037 2 жыл бұрын
@@PankajMali thanks bro.
@venkateshm1037
@venkateshm1037 2 жыл бұрын
@@PankajMali so can we control it with the only python for long distances, without transmitter
@PankajMali
@PankajMali 2 жыл бұрын
Yes , for autonomous missions you can disable the failsafe in mission planner or set that particular parameter in your python script, so that even if it goes beyond the transmitter range the mission will continue.
@mhaelsubasic9975
@mhaelsubasic9975 2 жыл бұрын
best man ever
@PankajMali
@PankajMali 2 жыл бұрын
Thank you ❣❣
@LoveshGoyal-qv1hu
@LoveshGoyal-qv1hu Жыл бұрын
could you please mention the parts specification for building the drone, your drone is really cool!
@PankajMali
@PankajMali Жыл бұрын
Yeah, I'm going to make a video on that soon!!
@santhoshmamidisetti
@santhoshmamidisetti 11 ай бұрын
waiting for the videoo@@PankajMali
@shardapalkar4035
@shardapalkar4035 3 жыл бұрын
Good work keep it up
@PankajMali
@PankajMali 3 жыл бұрын
Thank you and sure will do ❣
@Adam-W-
@Adam-W- 4 жыл бұрын
Nice work mate!
@PankajMali
@PankajMali 4 жыл бұрын
Thank you
@kishanajudiya5508
@kishanajudiya5508 3 жыл бұрын
I have built a drone with APM 2.8 flight controller and rpi, and I'm trying to do same as you have done using pixhawk flight controller, but at the end I am not able to rotate the motor. I just want to make it laptop operated and don't want to fly it with rc.
@kishanajudiya5508
@kishanajudiya5508 3 жыл бұрын
I am having the error like"no heartbeat in last 5 seconds" ad "api exception timeout in initialising connection
@PankajMali
@PankajMali 3 жыл бұрын
This error occurs because of the connection string, just check in the mission planner > full parameter list > serial_baud ... this baud rate should be as you are passing in the connection string in your python script , like in my case im having 921600
@kishanajudiya5508
@kishanajudiya5508 3 жыл бұрын
@@PankajMali I solved this error but last me "prearm calibrate rc" aa raha he Is it compulsory to calibrate rc if we want to fly with only rpi and APM 2.8.
@PankajMali
@PankajMali 3 жыл бұрын
Yes its mandatory to do the pre arm checks, and if you only want to send commands via your laptop then you need to go with robot operating system which is the easiest way to do that
@kishanajudiya5508
@kishanajudiya5508 3 жыл бұрын
@@PankajMali yes actually my motive is to fly drone only with laptop not by rc. Can you give me brief info about how to do it with robot operating system?
@raafsports1728
@raafsports1728 3 жыл бұрын
keep it up man love ur work
@PankajMali
@PankajMali 3 жыл бұрын
Thank you ❣❣
@Badhousegaming463
@Badhousegaming463 3 жыл бұрын
Nice
@PankajMali
@PankajMali 3 жыл бұрын
Thank you
@umeshjagdale2072
@umeshjagdale2072 4 жыл бұрын
Great..
@PankajMali
@PankajMali 4 жыл бұрын
Thank you sir
@akashpawar3722
@akashpawar3722 11 ай бұрын
Hi
@PankajMali
@PankajMali 11 ай бұрын
Hello
@akashpawar3722
@akashpawar3722 11 ай бұрын
I want to connect with you..
@PankajMali
@PankajMali 11 ай бұрын
You can catch me up on instagram @punky_pankaj
@akashpawar3722
@akashpawar3722 11 ай бұрын
@@PankajMali please accept my request
@pratikshakulkarni7682
@pratikshakulkarni7682 2 жыл бұрын
Great Presentation. Pankaj Impressive.. 👍🏻👍🏻
@PankajMali
@PankajMali 2 жыл бұрын
Thank you
@vijayakumarkona443
@vijayakumarkona443 3 жыл бұрын
Hi brother my name is vijay kumar mr sagar from vizag gave your insta account but I lost it presently iam working on pixhawk and agricultural drones I would like to get some help from you thank you brother.
@PankajMali
@PankajMali 3 жыл бұрын
How can i help you ?
@vijayakumarkona443
@vijayakumarkona443 3 жыл бұрын
@@PankajMali brother for agricultural drones we use jiyi,topxgun and pixhawk cube for jiyi and top x gun what kind of programme do we use .and kmnvk1998@gmail.com is my mail bro and some beeping issue with pixhawk too I can elaborate and say via mail can you please pin me there brother.
@vijayakumarkona443
@vijayakumarkona443 3 жыл бұрын
Thankyou
@PankajMali
@PankajMali 3 жыл бұрын
Yeah no issues ...or you can even catch me up on Instagram @punky_pankaj 🤘🤘
@vijayakumarkona443
@vijayakumarkona443 3 жыл бұрын
@@PankajMali shore brother
@jayeshsandhikar4712
@jayeshsandhikar4712 3 жыл бұрын
Good to see integration in each upcoming contents 👍
@PankajMali
@PankajMali 3 жыл бұрын
Hello, Thank you for appreciating my work❣❣
@Badhousegaming463
@Badhousegaming463 3 жыл бұрын
Great bhaiya
@PankajMali
@PankajMali 2 жыл бұрын
Thank you ❣
@yahya9889
@yahya9889 3 жыл бұрын
Can u please make a tutorial or tell me how to get dronekit/dronekit-sitl to work? Ive looked up all tutorials and always end up with errors nothing on the internet seems to work
@PankajMali
@PankajMali 3 жыл бұрын
Yes ,my next video will be uploaded in couple of days its all about simulation with sitl ,Mavproxy and mission planner, also with gazebo integration
@PankajMali
@PankajMali 3 жыл бұрын
Btw what errors did you get ?
@yahya9889
@yahya9889 3 жыл бұрын
@@PankajMali tysm , on simple goto it disarms by its own "DISARMING MOTORS" and on mavlink it hits errors like "APM: Initialising APM... Got COMMAND_ACK: COMPONENT_ARM_DISARM: ACCEPTED ARMED Arming checks disabled Got COMMAND_ACK: NAV_TAKEOFF: FAILED APM: DISARMING MOTORS DISARMED"
@yahya9889
@yahya9889 3 жыл бұрын
@@PankajMali i think its a setup problem but i tried mutliple ubuntu versions, python2 and python3 ect.. nothing seems to work so i hope you include the whole setup and software versions ect in ur video.
@PankajMali
@PankajMali 3 жыл бұрын
Yes i have experienced those errors Will surely cover up that things too.
@manishjadhav8666
@manishjadhav8666 4 жыл бұрын
👍🙌
@vishal01mehra
@vishal01mehra 3 жыл бұрын
Your quad build and configuration video would be great thanks.
@PankajMali
@PankajMali 3 жыл бұрын
Yes, I'll be doing a video on the build of that quad ❣❣
@palacita135
@palacita135 3 жыл бұрын
Nice 🤘🏼
@PankajMali
@PankajMali 3 жыл бұрын
Thank you ❣❣
@palacita135
@palacita135 3 жыл бұрын
@@PankajMali may I ask you? Did you send the python script on rpi or on your another computer and send to the rpi?
@PankajMali
@PankajMali 3 жыл бұрын
Yes basically i write the scripts on the laptop n after that i use the "scp pi@ipof yor pi " command and send the file to pi and then execute it
@palacita135
@palacita135 3 жыл бұрын
@@PankajMali thank you for the reply
@PankajMali
@PankajMali 3 жыл бұрын
Keep building
@AfshAd
@AfshAd 4 жыл бұрын
This is amazing
@PankajMali
@PankajMali 4 жыл бұрын
Thank you ❣❣
@cherryFPV
@cherryFPV 3 жыл бұрын
Great Video! I have successfully done this command: Python mavproxy.py --master=/dev/ttyAMA0 --baudrate 921600 --aircraft MyCopter But when I try to run the python demo.py script, I do not get a connection. I set the correct/same baudrate in Missionplanner for Serial 2. Any ideas what I could have missed? I get the message "waiting for heartbeat from /dev/ttyAMA0 Thanks a lot for the great videos!
@PankajMali
@PankajMali 3 жыл бұрын
Gald it helped you, Run the script with this command Python demo.py - -connect /dev/ttyAMA0
@cherryFPV
@cherryFPV 3 жыл бұрын
@@PankajMali i did it exactly with this command. I use a raspberry Pi4. If the mavproxy.py script works fine, all baudrate settings have to be correct, right?
@PankajMali
@PankajMali 3 жыл бұрын
Yes you are correct
@cherryFPV
@cherryFPV 3 жыл бұрын
@@PankajMali Unfortunately it still does not work. pi@raspberrypi:~ $ python vehicle_state.py --connect /dev/ttyAMA0 Connecting to vehicle on: /dev/ttyAMA0 WARNING:dronekit:Link timeout, no heartbeat in last 5 seconds Any ideas?
@PankajMali
@PankajMali 3 жыл бұрын
This error occurs due to 1. Tx rx pins incorrectly connected ( but in your case pi connects successfully with pixhawk) 2. Port no is not correct, i will tell you a port you try connecting on that port , both running mavproxy.py and also to run the python script. For pi4 it doesnt work for ttyama0 go for serial0 or ttys0
@underlecht
@underlecht Жыл бұрын
Godlike
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,2 МЛН
小天使和小丑太会演了!#小丑#天使#家庭#搞笑
00:25
家庭搞笑日记
Рет қаралды 28 МЛН
Как подписать? 😂 #shorts
00:10
Денис Кукояка
Рет қаралды 8 МЛН
ДЕНЬ УЧИТЕЛЯ В ШКОЛЕ
01:00
SIDELNIKOVVV
Рет қаралды 2 МЛН
How I’d learn ML in 2024 (if I could start over)
7:05
Boris Meinardus
Рет қаралды 1,1 МЛН
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 493 М.
Drone Delivery and Mission Handling with Python
7:40
Tiziano Fiorenzani
Рет қаралды 30 М.
Drones | How do they work?
10:13
Lesics
Рет қаралды 2,3 МЛН
Controlling Drones with AI (Python Reinforcement Learning Quadcopter)
5:00
Dronekit setup, simulation and visualization on Mission Planner
8:31
Tiziano Fiorenzani
Рет қаралды 123 М.
I Built an AI Controlled Drone in 1 Week! (1/3)
22:18
Augmented AI
Рет қаралды 136 М.
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,2 МЛН