Commit Graph

1112 Commits

Author SHA1 Message Date
Ron Evans e91bc57de0 Merge pull request #228 from hybridgroup/add/imperative-work
Add support for work to be triggered via an event
2014-09-22 14:26:22 -07:00
Andrew Stewart 299ade796b Rename auto_start to 'auto' 2014-09-22 14:20:26 -07:00
Andrew Stewart 83bf4e3d14 Merge branch 'dev' into add/imperative-work
* dev:
  Remove Adaptor#_noop function
  Move Cylon API config to the Cylon.configure block
  Fixup interval in driver
  Add all new platforms to README
  Add default interval in Driver class
  Switch to single Cylon#config function

Conflicts:
	test/specs/cylon.spec.js
2014-09-22 11:37:56 -07:00
Andrew Stewart 1b549f2dbb Remove Adaptor#_noop function 2014-09-22 09:53:10 -07:00
Andrew Stewart 333dc881ea Move Cylon API config to the Cylon.configure block 2014-09-19 12:03:50 -07:00
Andrew Stewart b7467e7a63 Fixup interval in driver 2014-09-18 12:03:41 -07:00
deadprogram ce41885ab4 Merge branch 'edison-readme' into dev 2014-09-17 11:20:44 -07:00
deadprogram 261f0f408f Add all new platforms to README 2014-09-17 09:01:50 -07:00
Andrew Stewart e72ce5ceac Add default interval in Driver class 2014-09-16 14:42:45 -07:00
Andrew Stewart 7560507f11 Switch to single Cylon#config function 2014-09-15 14:46:24 -07:00
Andrew Stewart c182c1316e Auto start by default, implement start of modes 2014-09-08 15:28:16 -07:00
Andrew Stewart 70bd524ebe Explain auto_start better 2014-09-08 14:33:07 -07:00
Adrian Zankich 69f066e432 async the auto start 2014-09-08 14:30:23 -07:00
Andrew Stewart 3ec6c2717a Switch to Logger.debug for default work, add test for #start return val 2014-09-08 14:14:11 -07:00
Andrew Stewart f0d0e4b738 Correct tests for auto-start, allow for non-truthy values 2014-09-08 14:12:14 -07:00
Adrian Zankich 12ae17eeb2 Fix typo 2014-09-08 13:43:11 -07:00
Adrian Zankich 021c1756dc Auto start by default 2014-09-08 13:41:59 -07:00
Andrew Stewart f1544e5a8f Add support for work to be triggered via an event 2014-09-08 12:57:56 -07:00
Adrian Zankich c443b486cc Merge pull request #227 from hybridgroup/fix/connect-and-start
Remove default Adaptor#connect and Device#start methods
2014-09-08 09:39:50 -07:00
Andrew Stewart b48f5c3a57 Add no-op #connect and #start methods to built-ins 2014-09-08 09:31:16 -07:00
Andrew Stewart cf643d9d70 Remove default Adaptor#connect and Driver#start methods
Child classes should always implement these themselves.
2014-09-08 09:27:18 -07:00
Adrian Zankich 174fe2416f Merge pull request #226 from hybridgroup/fix/halt-and-disconnect
Restructure Halt/Disconnect Structure
2014-09-05 10:53:28 -07:00
Andrew Stewart cb43f34138 Fix broken tests 2014-09-05 10:34:03 -07:00
Andrew Stewart 14d8bbab00 Remove base Adaptor#disconnect and Driver#halt fns
Would be more useful to module developers to loudly error rather than silently
not work.
2014-09-05 09:55:57 -07:00
Andrew Stewart 9fe9700eef Restructure Halt/Disconnect Structure
Moves disconnecting event handlers up a level so adaptors/drivers don't have to
worry about it.

Now, Adaptor/Driver subclasses should simply execute the provided callback to
dindicate they're done disconnecting, rather than calling the superclass method
as before.
2014-09-05 09:38:12 -07:00
Ron Evans d87dd78120 Merge pull request #225 from hybridgroup/fix/name-collisions
Address namespace collisions for robots, devices, and connections
2014-09-04 15:00:34 -07:00
Andrew Stewart 179c486c80 Address namespace collisions for robots, devices, and connections 2014-09-04 14:51:44 -07:00
Andrew Stewart 42a0a8affe Add example demoing Cylon#halt 2014-09-04 11:47:40 -07:00
Andrew Stewart 48497b7b0e Default to no-op callbacks for #halt methods 2014-09-04 11:22:00 -07:00
Andrew Stewart d2b00c7d30 Attempt to stop drivers, then adaptors 2014-09-04 10:18:18 -07:00
Andrew Stewart 8f20ccbcf3 Default #halt timeout is 3s, now user configurable 2014-09-03 15:39:54 -07:00
Ron Evans e840823092 Merge pull request #224 from hybridgroup/add/user-configuration
Add user configuration for Cylon internals
2014-09-03 15:12:10 -07:00
Andrew Stewart 3b7c96e81e Add user configuration for Cylon internals 2014-09-03 15:08:48 -07:00
Andrew Stewart 11082b44a9 Remove extraneous Connection#halt method 2014-09-02 20:26:26 -07:00
Andrew Stewart 897668f3ab Clean up DigitalPin class 2014-08-29 12:59:44 -07:00
Andrew Stewart c063d254e0 Improve description wording in package.json 2014-08-29 12:23:50 -07:00
Andrew Stewart 24ae529184 Update README examples 2014-08-29 12:17:04 -07:00
Andrew Stewart fca5549e29 Bump version to "0.18.0" 2014-08-19 11:13:05 -07:00
Andrew Stewart 55f9445149 Remove #proxyTestStubs in favor of inline solution 2014-08-13 15:04:25 -07:00
Andrew Stewart b312f6bb6b Correctly proxy functions from driver to device 2014-08-12 18:33:20 -07:00
Andrew Stewart d4e34c6f54 Test API routes to ensure they can resolve 2014-08-12 13:15:47 -07:00
Andrew Stewart ffc27f9942 Add ability to pass proxy 2014-08-12 10:07:17 -07:00
Andrew Stewart df60282042 Simplify test 2014-08-11 15:55:47 -07:00
Andrew Stewart 6e9ceee6cf Fixes to driver commands 2014-08-11 15:30:01 -07:00
Andrew Stewart 1f0b214c97 Add Driver#setupCommands method 2014-08-11 14:11:06 -07:00
Ron Evans bde6132377 Merge pull request #221 from hybridgroup/add/commands
Add New Command Structure
2014-08-10 15:47:36 -07:00
Andrew Stewart bad414be39 Correctly avoid labelling 'work' as a command 2014-08-07 14:00:30 -07:00
Andrew Stewart 7a481f6767 Correctly execute device commands 2014-08-07 13:56:06 -07:00
Andrew Stewart e6c567a090 Add new command structure 2014-08-07 12:24:29 -07:00
Andrew Stewart ac737e51ba Merge branch 'dev'
* dev:
  Bump version to "0.17.0"
  Update and lock Robeaux version
  Add basic error handling
  Simplify coercion of Robot to JSON
  Correctly respond w/ 404 error
  Add 'details' subsection to Device/Connection
  Emit 'ping' when Ping is told to #ping
  Add MCP commands route, fix /robots route
  Only look for command params in POST bodies
  WIP on Threepio changes
  Namespace API routes under '/api'
  WIP on commands + JSON serialization
  Fix typo
  Refer to device connections by name in JSON format
  Remove connection_id from Connection class
  Defer to Utils#fetch for getting ENV state
  Slightly clean up Connection
  Clean up robot initialization
  Require a connection if a robot has any devices
  Misc. small refactors
2014-08-04 13:50:44 -07:00