Commit Graph

130 Commits

Author SHA1 Message Date
deadprogram 88ef361d0d Add helpful range conversion functions 2014-01-12 07:31:21 -08:00
Andrew Stewart ad5bd73379 Rename server to Cylon.ApiServer 2014-01-10 11:48:39 -08:00
Andrew Stewart e4e9742e0e Merge branch 'master' into api-interface
* master:
  Switch from process.exit() to process.kill()
  Update copyright year in readme
  Examples should use console.log instead of Logger
  Print timestamp and log level when using Logger
  Compile a missing previous API change
2014-01-10 11:15:11 -08:00
deadprogram fbe3f0add0 Remove warning from deprecated parser, and correct server title display in logger 2014-01-10 06:06:33 -08:00
deadprogram 44c05a992b Class name clash was messing with the API Server 2014-01-10 06:02:25 -08:00
Andrew Stewart 8fc5a7f1bd Switch from process.exit() to process.kill()
Moves to use the kill() method to make sure Cylon shuts down, by sending
a SIGTERM signal to the running process.
2014-01-09 14:59:22 -08:00
Andrew Stewart 9065a319f6 Print timestamp and log level when using Logger 2014-01-03 17:14:51 -08:00
Andrew Stewart 879fbffb66 Compile a missing previous API change 2014-01-03 17:14:35 -08:00
Andrew Stewart 31d8f79292 Serve static files from API dir 2014-01-03 15:47:25 -08:00
Andrew Stewart aa16f56462 Cleaning up API 2014-01-03 13:33:43 -08:00
Andrew Stewart c830e70b4a Finish with DigitalPin specs 2014-01-03 12:46:42 -08:00
deadprogram 6c1e591f84 Make even shorter syntax by removing redundant Adaptors and Drivers 2013-12-15 23:08:34 -08:00
deadprogram ed50c385c4 Removing extraneous things from Adaptor/Driver 2013-12-15 19:28:12 -08:00
deadprogram c83ce83788 Default opts is an empty hash 2013-12-15 19:14:39 -08:00
deadprogram a341fa4f62 Working refactor of Adaptor/Driver base classes 2013-12-15 18:18:22 -08:00
deadprogram 4cb8742fc3 WIP on refactoring adaptor/driver base classes 2013-12-15 10:52:09 -08:00
deadprogram 4a058742c4 Adaptors and Drivers derive from Basestar 2013-12-14 12:18:36 -08:00
deadprogram 8f40826a34 Remaining moves and refactoring for Adaptor/Driver base classes 2013-12-14 12:12:18 -08:00
deadprogram 0e874c52d5 Refactoring Adaptor and Driver into proper base classes 2013-12-14 11:54:56 -08:00
deadprogram 1833c304cd Remove parens and add pending tests to digital-pin 2013-12-09 08:15:56 -08:00
Andrew Stewart f1fea363b5 Add Robot#toString() method 2013-12-07 10:18:31 -05:00
Ron Evans a6b442116f Merge pull request #52 from hybridgroup/21-beaglebone-adaptor
Added GPIO examples for beaglebone.
2013-12-03 18:09:37 -08:00
Edgar O Silva a81fd9b9b4 added new push button example for beaglebone. 2013-12-03 17:28:04 -08:00
Andrew Stewart 2c52db8086 Merge branch 'master' into literate
* master:
  Crazyflies
  Updated servo examples to use a limit range of motion instead of full 180.
  Update digital read to parseInt buffer response.
  DigitalRead buffer data converted to string now.
  Debugging digitalPin read.
  Added servo example for Raspi.
  Add more supported devices to README
  Update to 0.6.1
  Update digital pin close callback param.
  Fixes err param not being passed.
  Updated digital pin and added pwm raspi example.

Conflicts:
	examples/servo.coffee
2013-11-28 12:07:51 -08:00
Edgar O Silva 402edc1a1e Update digital read to parseInt buffer response. 2013-11-27 18:03:02 -06:00
Edgar O Silva 3ceda8f76e DigitalRead buffer data converted to string now. 2013-11-27 17:13:59 -06:00
Edgar O Silva ad39fdaf80 Debugging digitalPin read. 2013-11-27 16:49:40 -06:00
Edgar O Silva e13e923e8c Fixes err param not being passed. 2013-11-26 12:51:11 -06:00
Andrew Stewart dbfa4f859e Merge branch 'master' into literate
* master:
  Update to version 0.6.0
  Execute robot commands from api
  Replace api.litcoffee with api.coffee
  Replace api.litcoffee with api.coffee
  Docs corrections
  Refactoring adaptor and driver initialization to simplify, and fix init overwrite error

Conflicts:
	src/api.coffee
2013-11-26 10:07:15 -08:00
deadprogram c237c00bdd Resolve merge conflicts 2013-11-25 15:12:18 -08:00
Adrian Zankich b46d4242ea Execute robot commands from api 2013-11-25 14:28:13 -08:00
Andrew Stewart f619b5694d Switch back to regular CoffeeScript for API 2013-11-25 10:26:00 -08:00
deadprogram 372dde0078 Refactoring adaptor and driver initialization to simplify, and fix init overwrite error 2013-11-23 17:13:20 -08:00
Edgar O Silva 19d094bb16 Added adaptor extra params and updated salesforce example. 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 74160047a8 Sf Client and S Example. 2013-11-15 21:09:27 -06: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 d1799c1761 Allow for any HTTP verb on device command 2013-11-15 00:45:06 -08:00
Andrew Stewart 6dd3e3384b Pass event payloads correctly in Basestar 2013-11-14 16:47:16 -08:00
Edgar O Silva 1f99f011bc Fix typo in path call. 2013-11-12 12:58:51 -06: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
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 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