Commit Graph

292 Commits

Author SHA1 Message Date
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
Ron Evans b2900c3d24 Merge pull request #32 from hybridgroup/literate-coffeescript
Literate CoffeeScript
2013-11-15 13:07:28 -08:00
Andrew Stewart 4131332964 Fix variable naming error 2013-11-15 12:53:52 -08: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 5665f5b91a Do not run travisci on site code 2013-11-15 09:44:23 -08:00
deadprogram d1799c1761 Allow for any HTTP verb on device command 2013-11-15 00:45:06 -08:00
Ron Evans 87671c1427 Merge pull request #31 from hybridgroup/event-payload-fix
Pass event payloads correctly in Basestar
2013-11-14 16:53:50 -08:00
Andrew Stewart 6dd3e3384b Pass event payloads correctly in Basestar 2013-11-14 16:47:16 -08:00
Ron Evans 9811cd4b14 Merge pull request #30 from hybridgroup/digital-pin-refactor
Digital pin refactor
2013-11-12 16:18:16 -08:00
Edgar O Silva 1f99f011bc Fix typo in path call. 2013-11-12 12:58:51 -06:00
Ron Evans 2a72ebbf6f Merge pull request #29 from hybridgroup/20-raspi-adaptor
20 raspi adaptor with GPIO support.
2013-11-12 10:50:08 -08:00
Edgar O Silva 0ae37390fe Remove @self references in favor of just @ and fix set mode to udpate the obj attr when actually changing the mode. 2013-11-12 12:47:50 -06:00
Edgar O Silva 1fd0a13347 Add missing param emitConnect. 2013-11-12 12:34:15 -06:00
Edgar O Silva 5fa0177d90 Fx missing param in setModeCallback. 2013-11-12 12:26:52 -06:00
Edgar O Silva 11fda85e56 Refactor digital pin. 2013-11-12 11:47:25 -06:00
Edgar O Silva 04630c6420 Updating unexport path to use function call. 2013-11-12 09:37:15 -06:00
Edgar O Silva caf3cc0790 Make sure the pin mode is setup even if the file already exists. 2013-11-11 18:40:59 -06:00
Edgar O Silva 661b6815d1 Fixes disconnect pins by making last IO calls sync and validates for existance of pin files. 2013-11-11 18:36:54 -06:00
Edgar O Silva d65ebdd2be Fixes issue with undefined path in digital pin. 2013-11-11 18:09:33 -06:00
Edgar O Silva f71c24ff0a Added pin number to emit close event. 2013-11-11 14:33:36 -06:00
Edgar O Silva c47e3db26d Fox indenting error. 2013-11-11 13:44:48 -06:00
Edgar O Silva 9798fba74f Refactor GPIO file paths, added validation to check for existance of GPIO pins (they have already been setup), added new sync disconnect. 2013-11-11 13:34:43 -06:00
Andrew Stewart 6120e6da0b More consistent internal representation of components 2013-11-11 11:33:07 -05:00
Andrew Stewart 1cd5883a3f Clean up tests 2013-11-11 11:28:37 -05:00
Andrew Stewart 88ab1a2d34 Properly organize supporting classes for tests 2013-11-11 11:09:42 -05:00
Andrew Stewart 31bfa85fa8 Simplify readline setup for Windows users 2013-11-11 11:09:41 -05:00
Andrew Stewart 19929842a2 Merge pull request #28 from hybridgroup/cylon-specs
More Cylon Specs
2013-11-11 08:08:00 -08:00
Andrew Stewart b5a4854533 Add tests for Cylon#findRobotConnection 2013-11-08 17:33:29 -07:00
Andrew Stewart b7add10cb4 Add tests for Cylon#findRobotDevice() 2013-11-08 17:16:17 -07:00
Andrew Stewart b2f2d11a85 Add specs for sync and async versions of findRobot() 2013-11-08 15:04:50 -07:00
Andrew Stewart d7b3e63afe Test for Cylon#robots 2013-11-08 14:43:05 -07:00
Andrew Stewart 1778312e6c Tests for Cylon#api 2013-11-08 10:29:17 -07:00
Andrew Stewart da5cb27c21 The Future's So Bright, I Gotta Wear Shades
I apologize for this commit message but cylon-specs + this was just too perfect.

Anyways, have gotten Cylon robot specs working now. For some reason by the time
the spec runner gets around to running cylon.spec, inside cylon.js Robot has
been redefined to an empty object '{}'.

This resulted in a "TypeError: object is not a function on constructor" error.

So to solve this I moved the require() for 'robot' inside the Cylon.robot()
method. This shouldn't reload code thanks to Node's require cache, but will
properly assign Robot when instantiating a new one.
2013-11-08 10:03:16 -07:00
Andrew Stewart 716f675147 Remove unnecessary tests 2013-11-08 09:48:20 -07:00
deadprogram ab3c038dd1 Use class-based syntax 2013-11-07 06:55:27 -08:00
deadprogram fb9dd50242 Update to version 0.4.0 2013-11-07 06:23:59 -08:00
Ron Evans 9d7cb3e5c3 Merge pull request #25 from hybridgroup/api-configuration
Allow configuration of API options
2013-11-06 16:42:02 -08:00
Andrew Stewart 620351c7c2 Allow configuration of API options 2013-11-06 16:13:35 -08:00
Andrew Stewart bb1388e879 Clearer and more representative testing of method proxying 2013-11-06 15:23:32 -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
Edgar O Silva 0b02822f6a Added debugging log to unexport pins command. 2013-11-06 16:52:12 -06:00
Ron Evans 7bcb799ca6 Merge pull request #24 from hybridgroup/20-raspi-adaptor
20 raspi adaptor
2013-11-06 13:19:04 -08:00
Edgar O Silva c24601139f Removes unnecessary IO class. 2013-11-06 15:04:25 -06: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