LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

AR Drone flight path in LabVIEW

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!

 

 

0 Kudos
Message 1 of 3
(3,210 Views)

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. 

 

 

---------------------
Patrick Allen: FunctionalityUnlimited.ca
Message 2 of 3
(3,179 Views)

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.

0 Kudos
Message 3 of 3
(3,147 Views)