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
866e079830
Merge branch 'master' into literate-coffeescript
...
* master:
Revise proxy to use objects instead of prototypes
2013-11-06 09:43:09 -08:00
deadprogram
041da7acc8
Handle exit event, by stopping devices and disconnecting connections
2013-11-05 21:34:23 -08:00
deadprogram
bb4859d83d
Revise proxy to use objects instead of prototypes
2013-11-05 20:08:03 -08:00
Andrew Stewart
d184528312
Document API with Literate Coffeescript
2013-11-05 15:14:03 -08:00
Andrew Stewart
f423758310
Properly set up websockets
2013-11-05 10:51:11 -08:00
Andrew Stewart
fa53720e17
API now functions correctly
2013-11-05 10:45:14 -08:00
Andrew Stewart
9b2b405f0d
Correct bug with defineEvent()
2013-11-05 10:43:25 -08:00
Andrew Stewart
bba7ef1f4d
Refactor API routes to be more like Artoo API
2013-11-04 15:15:59 -08:00
Andrew Stewart
82e85e04f3
Remove pointless namespacing of API
2013-11-04 14:26:46 -08:00
Andrew Stewart
fb8c8acca8
Namespace Port class
2013-11-04 12:21:36 -08:00
Andrew Stewart
eda6f9db76
Namespace Device class
2013-11-04 12:21:28 -08:00
Andrew Stewart
ae666f67dd
Namespace Connection class
2013-11-04 12:13:40 -08:00
Andrew Stewart
9d48cba3cf
Namespace Robot class
2013-11-04 11:57:27 -08:00
Andrew Stewart
483dcf26b9
Compiled changes from previous commits
2013-11-04 11:41:51 -08:00
Ron Evans
333327aa63
Merge pull request #18 from hybridgroup/api
...
Add API backend
2013-11-01 17:44:40 -07:00
deadprogram
ff3c1c4270
Refactor Basestar event proxy functions
2013-11-01 15:56:50 -07:00
Andrew Stewart
a45dd83c51
Server now correctly identifies the URL it's listening on
2013-11-01 15:25:49 -07:00
Andrew Stewart
dc48cb3be5
Merge branch 'master' into api
...
* master:
Updated Basestar to include some proxy event functions and updated sphero messages example.
Pure JS drone example
Better class oriented code
Adding some more examples
Correct README typo
Adding servo driver example.
Fix issue with currentSpeed having to go through driver.
Added speed output to the example.
Added examples for motor speed and led brightness.
2013-11-01 15:23:43 -07:00
Andrew Stewart
3cb8d91af6
Switch to express.io and add websocket route
2013-11-01 15:22:50 -07:00
Andrew Stewart
2c873e374a
Add commands to handle fetching connections
...
- Adds method for fetching all connections belonging to a Robot
- Adds method for fetching a specific connection belonging to a Robot
2013-11-01 11:22:25 -07:00
Andrew Stewart
e9a4f25ccd
Add method to run a command for a particular device
2013-11-01 11:13:03 -07: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
Andrew Stewart
d9c0229a62
Add API method for fetching device commands
2013-10-31 14:48:47 -07:00
Andrew Stewart
fbadbac5c6
Small method rename
2013-10-31 13:51:53 -07:00
Andrew Stewart
54e5226dd6
Callbacks are cool
2013-10-31 13:36:28 -07:00
Andrew Stewart
1b4e05575c
Add method for fetching a specific device belonging to a Robot
2013-10-31 12:27:00 -07:00
Andrew Stewart
65a2e20959
Add /robots/:robotid and /robots/:robotid/devices
2013-10-30 17:41:16 -07:00
Andrew Stewart
2a91066864
Start to API and fetching of all Robots
2013-10-30 16:42:50 -07:00
Andrew Stewart
05c8ad3bdc
Add methods to export data from Robot/Device/Connection
2013-10-30 16:40:07 -07:00
Edgar O Silva
cf6d2c88bc
Removing DriverName param in favor of opts, which already contains it.
2013-10-29 18:15:41 -06:00
Edgar O Silva
2e0d0423bb
Adding analog sensor support to cylon GPIO.
2013-10-29 17:56:57 -06:00
Andrew Stewart
3f494dd23d
Basestar extends EventEmitter
2013-10-29 10:59:09 -07:00
Andrew Stewart
1c3d2236a0
Add Basestar class for use in external modules
2013-10-29 10:43:11 -07:00
deadprogram
504e51bd28
Can now attach users own functions to robot at will
2013-10-28 23:53:30 -07:00
deadprogram
d87c63dc26
Cleanup startConnections and startDevices to ensure proper async startup
2013-10-28 18:58:06 -07:00
Andrew Stewart
76cfbbe765
Correctly proxy methods for classes
2013-10-28 17:48:29 -07:00
deadprogram
97b7335784
Merged better startup routine
2013-10-28 15:31:39 -07:00
Andrew Stewart
21624ffacd
Use proxyFunctionsToObject for Connection and Device
2013-10-28 11:51:18 -07:00
Andrew Stewart
01b2d84bd1
Add method to proxy functions between objects
2013-10-28 11:51:03 -07:00
deadprogram
16a049f586
Pass requested driver name to driver module, for those that contain multiple drivers
2013-10-26 23:03:12 -07:00
deadprogram
08da7d3390
Some logging for debug mode only
2013-10-26 00:04:42 -07:00
deadprogram
e43bf8ad45
Works for arduino blink, with new async hotness
2013-10-25 23:27:39 -07:00
deadprogram
5e6bf8763b
Devices need pin
2013-10-25 20:29:11 -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
Andrew Stewart
1064e75128
Clear up scope
2013-10-24 17:26:36 -07:00
Andrew Stewart
612ddce142
Connections don't need direct binding, just Devices
2013-10-24 14:46:53 -07:00
Edgar O Silva
838aa9065a
Added colors to example.
2013-10-24 16:27:37 -05:00