felixge / node-ar-drone

A node.js client for controlling Parrot AR Drone 2.0 quad-copters.
http://nodecopter.com/
MIT License
1.76k stars 427 forks source link

Troubleshooting 'undefined' error #153

Open ZachAgostine opened 7 years ago

ZachAgostine commented 7 years ago

Hey everyone,

I'm following this tutorial http://www.instructables.com/id/Autonomous-AR-Parrot-Drone-20-Flying/ and when I run the var arDrone = require('ar-drone'); it returns undefined. I believe I have the ar-drone module installed correctly and properly setup.

Any feedback/tips would be greatly appreciated.

Thanks!

williamvillena commented 7 years ago

hello Zach! do you have microsoft visual studio latest version? If not then try to download it then instead of making a notepad text file, make a .js file in Microsoft Visual Studioand paste the information into the .js file then save the file into the (c:\Development\Drone) folder in drone an simply save it there. Steps: 1.copy repl.js text that say "var arDrone = require('ar-drone');" 2.go to Microsoft Visual Studio and click new on file

  1. select javascript .js 4.paste the repl.js info we copied earlier in step 1, should be four lines. 5.save the file into your c: drive (\Development\Drone) and make sure the "save as type" is Javascript .js 5.2. Make sure the file named is repl.js 6.when you run on command prompt, type in your folders ( c: drive (\Development\Drone) ) then type : node repl.js

drone.> should appear.

Useful information: If you are working on the same project as me involving the Parrot AR 2.0 then try reviewing this article http://www.marktorr.com/the-drone-journey-part-1/

if you need any further help, do not hesitate to reply back.