We were able to make more progress this week. Mr. Lin said that we have to recap what we did this week and take notes so that we won't forget what we did. This week, we were able to get image stream from the drone by using ar-drone modules. If you want, here is a link that will bring you a bunch of ar-drone modules: http://www.nodecopter.com/modules. Heres's the link to the ar-drone png module: https://github.com/Soarez/ar-drone-png-stream. Follow the instructions in the readme.md to install. We had some trouble installing the module at first, but through research we have found that the module needs to be in the folder where you installed felixge's ar-drone module. Open up terminal, then enter /Users. Go to STEM, or whatever local account you logged in. You need to place the ar-drone-png-stream module that you downloaded in there. Then, enter npm install ar-drone-png-stream-master -g. (There is a space between master and -g). It should theoretically install. When installing in terminal, do not follow the instructions. There is also some lag (about 1 second) in the image stream. Remember to connect to the drone's wifi.
Anyways, for the time now, we have also made a program which will run a whole bunch of commands at once, instead of running each command in terminal, which is what we have been doing. We followed the instructions on instructables (how to hack ar-drone). We pasted in the code into sublime text and were able to make a javascript file. To run it, go to terminal and type node, then drag the javascript file in. Make sure to press enter after this and not before node... This will make the drone follow the instructions in the script. In the meantime, we are making the powerpoint presentation and trying to improve the code and stuff.
No comments:
Post a Comment