Commit Graph

1266 Commits

Author SHA1 Message Date
Andrew Stewart 60e89c9671 If key supplied in hash, use it to find module in Registry 2014-11-05 10:04:45 -08:00
Ron Evans e17dd743c9 Merge pull request #237 from hybridgroup/add/repository
Add Repository class, restructure external module loading
2014-11-04 09:14:14 -08:00
Andrew Stewart 966f8aa530 s/Repository/Registry/g 2014-10-31 14:14:02 -07:00
Andrew Stewart d62673bc8a Stop using extraParams 2014-10-31 13:50:22 -07:00
Andrew Stewart 1c922f02c1 Address bugs w/ connections 2014-10-31 13:48:05 -07:00
Andrew Stewart 44075a1a30 Hook Repository class up, change-up module loading
Cylon modules were previously styled something like this:

    module.exports = {
      adaptor: function(args) {
        return new Adaptor(args);
      },

      register: function(robot) {
        Cylon.Logger.debug("Registering Firmata adaptor for " + robot.name);
        robot.registerAdaptor('cylon-firmata', 'firmata');

        GPIO.register(robot);
        I2C.register(robot);
      }
    };

Now, they should be something more like this:

    module.exports = {
      adaptors: ['firmata'],
      dependencies: ['cylon-gpio', 'cylon-i2c'],

      adaptor: function(args) {
        return new Adaptor(args);
      },
    };
2014-10-30 13:29:06 -07:00
Andrew Stewart 63e43cc553 Repository module added, not integrated yet 2014-10-29 15:25:35 -07:00
Ron Evans 0cd85988e4 Merge pull request #236 from hybridgroup/fix/move-logger-config
Move Logger configuration into Cylon#config
2014-10-28 23:03:54 +00:00
Andrew Stewart 0f59645fd7 Move Logger configuration into Cylon#config 2014-10-28 15:53:03 -07:00
Ron Evans 903f8a9518 Merge pull request #235 from hybridgroup/add/log-levels
Add log levels
2014-10-28 17:38:00 +00:00
Ron Evans 3ceb6cda85 Merge pull request #234 from hybridgroup/workMode
Work mode configuration
2014-10-28 17:37:24 +00:00
Andrew Stewart a8b16a3469 Proxy all opts that aren't already used internally 2014-10-27 13:40:38 -07:00
Andrew Stewart 2cb2fc232d Basic log level implementation 2014-10-27 08:59:36 -07:00
Andrew Stewart d65742bb49 Generate code! It's what the cool kids are doing! 2014-10-24 14:54:56 -07:00
Andrew Stewart f5de644af7 Not sure why these were classes to begin with 2014-10-24 14:02:03 -07:00
Adrian Zankich 7379ce5eea Update README.markdown 2014-10-22 04:23:39 -07:00
Adrian Zankich 98ad45ce25 Update README.markdown 2014-10-22 04:10:41 -07:00
Adrian Zankich 2a822ad947 Update README.markdown 2014-10-22 04:06:56 -07:00
Andrew Stewart 3f9a7cf148 Fixup some Browserify errors, indicate support in README 2014-10-21 11:31:22 -07:00
Andrew Stewart bd95f9eb3c Reorganize tests, under 'spec' directory now 2014-10-20 14:55:25 -07:00
Andrew Stewart 9be0f779ae Update dependencies 2014-10-20 14:38:41 -07:00
Andrew Stewart c3a3f76f24 Clean up and update Leap ARDrone example 2014-10-20 13:27:23 -07:00
Andrew Stewart 1f36d5a030 Add tests for IOUtils 2014-10-15 15:54:13 -07:00
Andrew Stewart 4e8e65ddea Add fluent syntax example to README 2014-10-15 14:07:39 -07:00
Andrew Stewart 157fcec25e Avoid creating functions inside loop, properly terminates now 2014-10-14 10:25:58 -07:00
Adrian Zankich b80ad6e167 start the robots in parallel 2014-10-04 00:56:08 -07:00
Adrian Zankich d4ed3117f3 enable async or sync work modes 2014-10-03 23:07:07 -07:00
Javier Cervantes 7f0b5772fa Adding sphero shake-o-meter example 2014-10-03 13:29:08 -05:00
Ron Evans e6bbdd4b2b Merge pull request #232 from hybridgroup/readme
Update readme
2014-10-03 08:12:41 -07:00
nathan ccddf4a862 increment platforms number 2014-10-03 08:10:42 -07:00
Andrew Stewart e74675d65a Small fixes to robot.js 2014-10-02 11:35:33 -07:00
Andrew Stewart a4498d0281 Reduce duplication in Basestar event proxying code 2014-10-02 11:14:19 -07:00
Andrew Stewart 2c1c691cbc Add new function proxying as utility function 2014-10-02 11:00:39 -07:00
nathan acc1c32205 update readme 2014-10-01 18:23:22 -07:00
Andrew Stewart 156a06f316 Bump version to 0.19.1 2014-10-01 18:12:31 -07:00
Andrew Stewart 35c3a4b9e9 Proxy methods after #connect/#start 2014-10-01 18:11:36 -07:00
Andrew Stewart 198a792b22 'make release' should update release branch 2014-10-01 17:11:03 -07:00
Andrew Stewart 2a3b917aa8 Bump version to "0.19.0" 2014-10-01 09:56:27 -07:00
Andrew Stewart d865bac72b Add error triggering 2014-09-30 16:13:20 -07:00
Andrew Stewart 81dfda5732 Fixup specs 2014-09-30 12:22:00 -07:00
Andrew Stewart 8e0790ad9f Default to manual mode, prevent multiple #starts
Additionally adds #halt/#disconnect to built-in loopback/ping
2014-09-30 12:17:02 -07:00
Andrew Stewart f029438c19 Remove #Robot export, config option is now 2014-09-30 11:53:53 -07:00
Andrew Stewart 75c8d47676 Remove commands array from Adaptor base class 2014-09-29 15:41:13 -07:00
Ron Evans 6a0a17eca3 Merge pull request #231 from hybridgroup/add/auto-adaptor-proxying
Automatically proxy methods from Adaptors to Connections
2014-09-29 15:28:48 -07:00
Andrew Stewart 77ecc2a82b Automatically proxy methods from Adaptors to Connections 2014-09-29 15:25:51 -07:00
Andrew Stewart 733c13df13 Update API example 2014-09-29 15:15:42 -07:00
Andrew Stewart da9fc2ced6 Updates to imperative example 2014-09-29 12:15:24 -07:00
Andrew Stewart 74e763324b Fixup test 2014-09-29 10:27:52 -07:00
Andrew Stewart de0a8fc0cb Emit 'ready' event, not 'work', when working 2014-09-29 10:21:29 -07:00
Andrew Stewart 4599d5054a Add imperative example of Conway's game 2014-09-29 10:21:10 -07:00