Thursday, December 1, 2016

Progress Report

We have managed to make the drone fly on one of the computers, A1. We are able to send simple commands to the drone, and we are able to make it take off and land, and we are also able to make the drone hover about 3 feet off the ground. Sometimes the drone doesn't work because of connection errors, and the drone would work 1 day and not the next. However, we think that it doesn't work sometimes actually because of battery issues. We are working on making autonomous programs that will run in Text Wrangler instead of typing lines of code in Terminal, which is what we are currently doing. We will also test other commands and try to remove the altitude limit.

This is what we are able to do so far.

*Don't type the quotation marks!
Steps to make the drone take off and land:
*Connect the computer to the drone WiFi before following the steps!*
1. In terminal, type "node" in order to send javascript commands to the drone.  An icon on the screen should change to ">"
2. After that, type "var arDrone = require('ar-drone');"
There should be a return value "undefined".


3. After that, type "var client = arDrone.createClient();"
There should be another return value "undefined". 
4. You can now start sending commands to the drone. This command will make the drone take off and hover at about 3 feet. Type "client.takeoff();"
There should be another return value "true". 
5. This command will make the drone land. Type "client.land();"
There should be another return value "true". 

6. You can also make the drone spin clockwise and counterclockwise using "client.clockwise(1);" and "client.counterClockwise(1);". You can change the speed in which it rotates by changing the values in the parentheses from 0 to 1. 



No comments:

Post a Comment