Commit Graph

109 Commits

Author SHA1 Message Date
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
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
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 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 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 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
Edgar O Silva 0b02822f6a Added debugging log to unexport pins command. 2013-11-06 16:52:12 -06:00
Edgar O Silva c24601139f Removes unnecessary IO class. 2013-11-06 15:04:25 -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 9c0ef5408c Refactored DigitalRead and setup mode to only emit connection event on connect. 2013-11-06 14:20:33 -06:00
Edgar O Silva 2bcdd9f683 Added new DigitalPin to Cylon core to use in adaptors, for real. 2013-11-06 14:20:33 -06:00
Edgar O Silva 0cec5a3822 Added new DigitalPin to Cylon core to use in adaptors. 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