Andrew Stewart
c81740e339
Add basic auth support to API
2014-04-03 16:04:11 -07:00
Andrew Stewart
89a5bbae2f
Support passing auth hash to API server
2014-04-03 15:49:13 -07:00
Andrew Stewart
29b7db0de8
Add support for manually specifying cert/key files
2014-04-03 15:03:21 -07:00
Andrew Stewart
ea022d3880
Implement HTTPS API with self-signed cert
...
Switches API to serve all requests over HTTPS, using a self-signed SSL
certificate.
2014-04-03 14:32:56 -07:00
Andrew Stewart
34324dabd5
Clean up API logic
2014-04-03 12:28:27 -07:00
edgarsilva
de360ba2b3
Add error handler for devices that fail to initialize.
...
Do not start work if devices fail to initialize and throw err insted.
2014-04-01 17:53:34 -06:00
Andrew Stewart
1cffa6067e
Add Utils to global.Cylon namespace, add bootstrap
...
This commit moves Utils to live in the global Cylon namespace, so they can be
accessed in test suites. This is necessary because Mocha, when setting up for
tests, will override our #after method, making TDR not work if any robots
contain a #after call in their work block.
To fix this, in test setup you can call global.Cylon.Utils.bootstrap();
which will re-setup our globals.
2014-04-01 12:31:13 -07:00
Andrew Stewart
2563e62de4
Catch MODULE_NOT_FOUND errors, throw others
2014-04-01 10:30:14 -07:00
Andrew Stewart
2d11e75434
Remove CLI tooling from Cylon
...
It now lives in hybridgroup/cylon-cli.
2014-03-27 14:45:36 -07:00
Andrew Stewart
337074f34f
Add friendlier errors when no adaptor/driver found
2014-03-26 14:32:52 -07:00
Andrew Stewart
2acc07b443
Fix error with /robots route in API
2014-03-25 10:16:11 -07:00
Andrew Stewart
e4c43c0cd5
Remove Port class
...
Ultimately unnecessary with Cylon, as opposed to Artoo where we do some
interesting/tricky stuff with Socket-To-Serial to make everything work.
2014-03-18 13:41:12 -07:00
Andrew Stewart
70dde8148c
Refactor and clean up Cylon.IO.DigitalPin class
2014-03-14 16:06:32 -07:00
Adrian Zankich
1ee0b8b87a
Ensure toScale stays within defined range
2014-03-11 18:33:39 -07:00
Andrew Stewart
f9537d9af8
Rename #stop to #halt to avoid potential conflicts
2014-03-11 10:44:11 -07:00
Andrew Stewart
4c464f0d88
Remove Math.ceil from #toScale, JS has no integers/floats anyways
2014-03-10 15:25:39 -07:00
Andrew Stewart
3c6696a78f
Reorganize Utils for easier testing
2014-03-10 12:00:48 -07:00
Andrew Stewart
56b66bded4
Add/improve specs for Connection class
2014-03-10 09:49:46 -07:00
Andrew Stewart
a1b230c62d
Added specs for Cylon#findRobotConnection
2014-03-09 19:06:06 -07:00
Andrew Stewart
691547a97f
Add specs for Cylon#findRobotDevice
2014-03-09 18:56:42 -07:00
Andrew Stewart
c0c4ce6958
Small changes to appease JSHint
2014-03-07 23:33:59 -08:00
Edgar O Silva
dc22164c0f
Prettyfy.
2014-03-07 18:03:44 -06:00
Edgar O Silva
eae946e41f
Remove logging.
2014-03-07 15:58:26 -06:00
Edgar O Silva
7412977d47
Remove logging
2014-03-07 15:57:56 -06:00
Edgar O Silva
541c7402ef
Refactoring cli commands to make them more friendly and pretty.
2014-03-07 15:57:08 -06:00
Andrew Stewart
9c5d1c3496
Refactor API configuration method
2014-03-04 16:18:51 -08:00
Andrew Stewart
5120c35f7c
Provide backing variables instead of functions
2014-03-04 16:10:49 -08:00
Ron Evans
d702d1077a
Merge pull request #128 from hybridgroup/add-stop-to-connection
...
Add a stop function to the base connection class.
2014-03-04 08:48:04 -08:00
edgarsilva
d54c9419af
Add a stop function to the base connection class.
2014-03-04 10:45:19 -06:00
Andrew Stewart
4c5937695b
Add Cylon-provided globals to generated .jshintrc files
2014-03-03 14:41:05 -08:00
Andrew Stewart
89f0e43570
Clean up Windows readline-SIGINT support
2014-03-03 14:35:32 -08:00
Andrew Stewart
d8de60a02d
Clean up var declarations in robot.js
2014-03-03 14:33:29 -08:00
Andrew Stewart
d12adc64b1
Clarify license year in generated adaptors
2014-03-03 14:32:01 -08:00
Andrew Stewart
707703cae2
Improve Device specs
2014-03-03 13:54:33 -08:00
Andrew Stewart
79ff3a1233
Clean up Connection and Device classes
2014-03-03 12:43:30 -08:00
deadprogram
182e8c3ee8
Make sure connection's port valid before adaptor init
2014-03-01 00:24:26 -08:00
Andrew Stewart
ef3aaf6591
Clean up initialization methods for adaptors/drivers
2014-02-28 20:50:45 -08:00
Andrew Stewart
5650ce1d60
Clean up starter and #stop functions
2014-02-28 20:37:23 -08:00
Andrew Stewart
862a3702b7
Refactor device/connection initialization methods
2014-02-28 20:30:12 -08:00
Andrew Stewart
89baebd3c1
Refactor #data method
2014-02-28 12:22:32 -08:00
Andrew Stewart
1ee35f1487
Clean up constructor
2014-02-28 12:13:19 -08:00
Andrew Stewart
f307aad0cd
Add global.bind method and tests
2014-02-28 10:31:10 -08:00
Andrew Stewart
3a46ff7848
Minor cleanups in basestar.js
2014-02-27 21:35:12 -08:00
Andrew Stewart
84916f69e3
Add shortcut for defining adaptor/driver events
2014-02-27 21:17:44 -08:00
Andrew Stewart
473e0ab08f
Remove 'source loading:' log messages from tests
...
Not really necessary now that we have actual tracebacks.
2014-02-27 20:59:21 -08:00
Andrew Stewart
520c523971
Refactor Basestar#defineEvent
2014-02-27 18:21:30 -08:00
Andrew Stewart
84f06afa5b
Add specs for event proxying
2014-02-27 18:13:21 -08:00
Andrew Stewart
cdd3f3310a
Remove trailing whitespace
2014-02-27 17:39:02 -08:00
xixebombilla
933c5d2660
210 fix merge files andrew :)
2014-02-27 17:12:29 -06:00
xixebombilla
0067f33505
210 fix merge files
2014-02-27 16:56:11 -06:00