Commit Graph

233 Commits

Author SHA1 Message Date
Edgar O Silva 027a82c17e Latest cylon example updates 2013-11-15 21:09:27 -06:00
deadprogram cb2ef05201 Happy references 2013-11-15 21:09:27 -06:00
Edgar O Silva b88e674178 WIP on Sphero SF 2013-11-15 21:09:27 -06:00
Edgar O Silva 22fc963a44 WIP on SF-Cylon connection 2013-11-15 21:09:27 -06:00
Edgar O Silva 74160047a8 Sf Client and S Example. 2013-11-15 21:09:27 -06:00
Andrew Stewart c28e99efee Merge branch 'master' into literate-coffeescript
* master: (31 commits)
  Do not run travisci on site code
  Allow for any HTTP verb on device command
  Pass event payloads correctly in Basestar
  Fix typo in path call.
  Remove @self references in favor of just @ and fix set mode to udpate the obj attr when actually changing the mode.
  Add missing param emitConnect.
  Fx missing param in setModeCallback.
  Refactor digital pin.
  Updating unexport path to use function call.
  Make sure the pin mode is setup even if the file already exists.
  Fixes disconnect pins by making last IO calls sync and validates for existance of pin files.
  Fixes issue with undefined path in digital pin.
  Added pin number to emit close event.
  Fox indenting error.
  Refactor GPIO file paths, added validation to check for existance of GPIO pins (they have already been setup), added new sync disconnect.
  More consistent internal representation of components
  Clean up tests
  Properly organize supporting classes for tests
  Simplify readline setup for Windows users
  Add tests for Cylon#findRobotConnection
  ...

Conflicts:
	dist/api.js
	examples/sphero_multiple.coffee
	src/api.coffee
2013-11-15 12:49:44 -08:00
deadprogram ab3c038dd1 Use class-based syntax 2013-11-07 06:55:27 -08:00
Andrew Stewart 620351c7c2 Allow configuration of API options 2013-11-06 16:13:35 -08:00
Andrew Stewart 7543f834e4 Merge branch 'master' into literate-coffeescript
* master: (21 commits)
  Removes unnecessary IO class.
  Fixes raspi button example typo.
  Updated DigitalPin and raspi_button example.
  Adding interval reads to digitalRead.
  Added new Digital read example for raspi, updated digitalRead in lib.
  Refactored DigitalRead and setup mode to only emit connection event on connect.
  Added new DigitalPin to Cylon core to use in adaptors, for real.
  Added new DigitalPin to Cylon core to use in adaptors.
  Added new example for raspi adaptor.
  Updated digital pin lib and example.
  Fixed missing mode variable in digital pin.
  Remove logging and update example.
  Change events and update example in digital pin.
  Added close for GPIO and updated negative ifs
  Change event triggers in callbacks to fat arrows to keep obj scope.
  Removed self and changed example.
  Updated IO and digital pin to use events.
  Fix bug in GPIO example.
  Adde pure GPIO example and updated digital pin lib
  Added new LinuxIO DigitalPin library.
  ...
2013-11-06 15:14:30 -08:00
Ron Evans 33f8a876a5 Update sphero_multiple.litcoffee
Use the nicer class based syntax
2013-11-06 12:33:58 -08:00
Andrew Stewart 3316c22ca7 Replace sphero_multiple with literate version 2013-11-06 12:26:47 -08:00
Edgar O Silva 0c3b319b12 Fixes raspi button example typo. 2013-11-06 14:20:33 -06:00
Edgar O Silva ff978f3a0d Updated DigitalPin and raspi_button example. 2013-11-06 14:20:33 -06:00
Edgar O Silva 250a0d0166 Adding interval reads to digitalRead. 2013-11-06 14:20:33 -06:00
Edgar O Silva c370041329 Added new Digital read example for raspi, updated digitalRead in lib. 2013-11-06 14:20:33 -06:00
Edgar O Silva 6d703b0707 Added new example for raspi adaptor. 2013-11-06 14:20:33 -06:00
Edgar O Silva b03019544b Updated digital pin lib and example. 2013-11-06 14:20:33 -06:00
Edgar O Silva 115a1bb405 Remove logging and update example. 2013-11-06 14:20:33 -06:00
Edgar O Silva 81bd0adb83 Change events and update example in digital pin. 2013-11-06 14:20:32 -06:00
Edgar O Silva 3dec21c459 Added close for GPIO and updated negative ifs 2013-11-06 14:20:32 -06:00
Edgar O Silva 33f8c95edc Change event triggers in callbacks to fat arrows to keep obj scope. 2013-11-06 14:20:32 -06:00
Edgar O Silva 87a75745dd Removed self and changed example. 2013-11-06 14:20:32 -06:00
Edgar O Silva 3bdecf665a Updated IO and digital pin to use events. 2013-11-06 14:20:32 -06:00
Edgar O Silva 239056fa65 Fix bug in GPIO example. 2013-11-06 14:20:32 -06:00
Edgar O Silva 831fbe4069 Adde pure GPIO example and updated digital pin lib 2013-11-06 14:20:32 -06:00
Andrew Stewart 30ce10d627 Literate version of examples/travis.coffee 2013-11-05 17:43:03 -08:00
deadprogram 46d03e1309 Example retrieve version from BlinkM 2013-11-03 19:54:22 -08:00
deadprogram 472384ee4b Add reference to i2c drivers to readme 2013-11-03 19:18:22 -08:00
Edgar O Silva a73a790327 Updated Basestar to include some proxy event functions and updated sphero messages example. 2013-10-31 16:15:39 -06:00
deadprogram 4120bc3b76 Pure JS drone example 2013-10-31 13:51:16 -07:00
deadprogram 6999236fe0 Better class oriented code 2013-10-31 09:48:23 -07:00
deadprogram a7d4a9d300 Adding some more examples 2013-10-31 09:37:11 -07:00
Edgar O Silva bf86c6f414 Adding servo driver example. 2013-10-30 20:41:47 -06:00
Edgar O Silva ea472f9e12 Fix issue with currentSpeed having to go through driver. 2013-10-30 20:37:42 -06:00
Edgar O Silva 6a9c5eb60e Added speed output to the example. 2013-10-30 16:21:17 -06:00
Edgar O Silva b37fe4a99e Added examples for motor speed and led brightness. 2013-10-30 16:04:52 -06:00
Edgar O Silva 2e0d0423bb Adding analog sensor support to cylon GPIO. 2013-10-29 17:56:57 -06:00
deadprogram 504e51bd28 Can now attach users own functions to robot at will 2013-10-28 23:53:30 -07:00
deadprogram a95bd2e0ee Some pure JS examples for the purists 2013-10-28 21:44:01 -07:00
Edgar O Silva c7afd83336 Updated collision example to perform better and start running when you drop the sphero. 2013-10-28 21:05:11 -06:00
Ron Evans 83f5e6c4c3 Merge pull request #11 from hybridgroup/12-add-collision-event
Sphero Collision event example.
2013-10-28 19:03:21 -07:00
Edgar O Silva 517a093604 Added collision event to the messages example and updated collision example. 2013-10-28 19:59:44 -06:00
Edgar O Silva 507e381ae6 Sphero Collision event example. 2013-10-28 19:50:37 -06:00
deadprogram 1f48fd8534 Working button/LED 2013-10-28 18:26:16 -07:00
deadprogram 6b5b851b63 Use the right event 2013-10-28 15:37:25 -07:00
deadprogram 97b7335784 Merged better startup routine 2013-10-28 15:31:39 -07:00
deadprogram 6a52e7f869 Tweak to button example 2013-10-28 12:02:38 -07:00
deadprogram 8372486a00 Almost the button example 2013-10-28 09:25:07 -07:00
deadprogram c94549bf75 README and example synced up 2013-10-26 00:26:02 -07:00
deadprogram e43bf8ad45 Works for arduino blink, with new async hotness 2013-10-25 23:27:39 -07:00
Edgar O Silva 450a87e17e Fixes issue with events not being triggered in drivers because .start was not being called to setup. 2013-10-25 19:49:35 -05:00
deadprogram fea55228cc Added ping driver for testing 2013-10-25 13:11:09 -07:00
deadprogram 7a67dbfd22 Namespace all the adaptors 2013-10-25 13:01:18 -07:00
deadprogram 69a476dfbf Correct missing command in loopback test adaptor 2013-10-25 12:52:55 -07:00
deadprogram f2cf92644b Better multiple 2013-10-25 10:40:27 -07:00
deadprogram c5392f3e19 The examples shown at js.la 2013-10-25 00:43:59 -07:00
deadprogram b6ff2cd361 How you like me now? 2013-10-24 17:19:45 -07:00
deadprogram 6bf47abf3c Color sphero example 2013-10-24 17:01:25 -07:00
deadprogram 046c3578a5 More examples please 2013-10-24 16:19:15 -07:00
Andrew Stewart b0346204a0 Add Travis-CI build status check example 2013-10-24 15:53:51 -07:00
Edgar O Silva 838aa9065a Added colors to example. 2013-10-24 16:27:37 -05:00
Edgar O Silva f6797a4782 Added roll back to the example. 2013-10-24 16:27:37 -05:00
Edgar O Silva 06f307afc9 WIP on collision detection and event emitter. 2013-10-24 16:27:37 -05:00
Edgar O Silva a50ccc6548 Trigger event on device connection example. 2013-10-24 16:27:37 -05:00
Edgar O Silva cc24e89249 WIP on event emitter for device and connection. 2013-10-24 16:26:14 -05:00
Andrew Stewart 3310dee260 Rewritten 'Master' example 2013-10-24 12:53:20 -07:00
deadprogram b9165fa09c Remove commented line 2013-10-24 00:27:01 -07:00
deadprogram a6d29ecbdd Can proxy commands from connection to associated adaptor 2013-10-23 23:18:19 -07:00
Ron Evans abd742df3f Merge pull request #5 from hybridgroup/singleton
Master singleton class
2013-10-23 20:01:07 -07:00
deadprogram e32b1b82fd Small correction to examples 2013-10-23 19:58:51 -07:00
Andrew Stewart 5f83d2f626 Easier singleton generation 2013-10-23 19:51:40 -07:00
Andrew Stewart b8af863aad Switch to singleton robot Master 2013-10-23 18:40:00 -07:00
Edgar O Silva e8095a2ffd Fixes issue with connection port not being found in adaptor. 2013-10-23 20:27:15 -05:00
Andrew Stewart 82c530fe5b Example of using cylon-sphero adaptor 2013-10-23 13:27:23 -07:00
deadprogram 8252d38a5e WIP on dynamic loading of adaptor and driver modules 2013-10-23 08:38:00 -07:00
deadprogram 68b0c1dc09 I like this capitalization 2013-10-22 23:42:16 -07:00
deadprogram 7e98fdd96b Both every and after 2013-10-22 23:36:31 -07:00
deadprogram a46a8c4a71 Hello in both javascript and coffeescript 2013-10-22 23:32:41 -07:00
deadprogram 132282d4c2 Much along the way to adaptor/driver registration and loading 2013-10-22 23:23:52 -07:00
deadprogram 03febed1bb Knowledge of self when working 2013-10-22 17:51:36 -07:00
Andrew Stewart de79700427 Correct and consistent context for work functions
Also corrects context(this) issues for every() and after()
2013-10-22 16:34:27 -07:00
Andrew Stewart bc9dd05cbc Fix example and globally namespace utility functions 2013-10-22 14:09:23 -07:00
deadprogram f2e90634c5 hello? 2013-10-22 12:33:17 -07:00