![]() Get in touch with the Camp K12 team at if you have any questions about this extension or about the organization's work in bringing Drone Programming to students in middle school and high school. ![]() Watch this Scratch extension in action on YouTube here: ( ) Questions? Mac OS X a Mac with an Intel processor Windows XP or later (GNU/)Linux Fedora 13, Ubuntu 10.10, or openSUSE 11.3 or later Requires Adobe AIR The Scratch 2.0 Offline Editor can be downloaded at scratch:download/scratch2. If the node js server ("helper app") is running and responding to poll requests sent by Scratch, there will be a green dot next to the "ScratchForARDrone" title in the Scratch window. ![]() You should see the ScratchForARDrone extension and blocks appear in the "More Blocks" category in the Scratch editor.Navigate to the directory containing ScratchForARDrone and select the ScratchForARDrone.s2e file.You should see "Import Experimental Extension" at the bottom of the menu. While holding the shift key on your keyboard, click on the "File" menu in Scratch.Import HTTP Extension into Scratch Offline Install the ar-drone node module, your server will need to this to connect with a Parrot AR Drone: You will need to connect to this network in order to be able to communicate with the drone. Scratch polls this server 30 times a second with a "/poll" request and sends requests like "/takeoff", "/land", and "/clockwise/40" as drone blocks are executed from the Scratch environment.ĪR Drone's have their own WiFi hotspot. server.js: This is your node.js server that functions as a 'helper app' for Scratch Offline.It contains a JSON object that you can load into Scratch once you've got it up and running in order to access all the custom blocks for communicating with your drone. ScratchForARDrone.s2e: This is the HTTP extension file for Scratch Offline.Install Node.js on your system, following instructions at Ĭlone this repository on your system or download as.Install Scratch Offline 2.0, following instructions at.Get yourself a Parrot AR Drone 2.0, duh.Updates to this extension are not guaranteed to be on a regular basis – you may modify and customize as you see fit. ScratchForARDrone is developed by Anshul from Camp K12, based on documentation for HTTP Extensions provided by the Scratch team. The Node server connects to and communicates with a drone via UDP protocol over WiFi using the node-ar-drone library. It consists of a Node.js local server that Scratch communicates with over HTTP. ScratchForARDrone is an HTTP extension for Scratch 2.0 Offline that allows Scratch to communicate with and receive updates from a connected Parrot AR Drone 2.0.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |