03-04-2015 05:56 AM
Hello,
I am doing a project where I have a writen LabView program for AR Drone, and what I have to do is change the program so that the drone would have a flight path of a rectangle with lenghts from one point to other 4,5m. I have to make the program so that it would be autonomous (when i press start the Drone should fly 4,5 m straight, then turn right, go backwards, turn left and finally land) and so that it would do it in quickest way possible. I dont have to anything fancy, since I am no to LabView. So my question would be, do you have any suggestions how to create a specified flight path for the drone and how to set the time all I have to change is 'drone controls'. I am attaching a .vi that I have to work with. Thanks!
03-04-2015 07:56 AM
Hi there,
Sounds like a perfect time to learn about State Machines.
https://www.youtube.com/watch?v=Qz1X1cyWjMA
https://www.youtube.com/watch?v=V5ICj4QxPmU
There's a couple of videos there that will help get you started.
I'm not sure how your drone is measuring distance. I'm going to hazard a guess that your first tries are going to be with time based flight legs. Which means measuring how fast your drone flies a given distance and then calculating how long it will take to fly the different legs of your flight path.
Your State Machine would be something like:
Send command to take off.
Wait X Seconds ( X being the time to reach altitude)
Sent command to fly forward
Wait X Seconds
Send command to turn
Wait X Seconds
Etc.
03-05-2015 06:01 AM
Thanks for the replay pallen! It helped alot. Yeah and the distance is messured in terms of time, because the drone doesnt have a sensor that can messure the distance it travelled. I messuared the time to travel 4,5m to be around 4s.