Commit Graph

105 Commits

Author SHA1 Message Date
deadprogram 078784eff1 firmata: avoid race condition on starting test
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-05-03 12:11:49 +02:00
deadprogram 5c7c21a743 firmata: assertions needed to be considered tests
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-29 13:17:46 +02:00
deadprogram e3f1a553ee firmata: increase test coverage
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-27 18:58:02 +02:00
deadprogram 39e7ec000d firmata: increase timeout for test
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-25 12:04:36 +02:00
deadprogram f89113c5ed firmata: increase test coverage for i2c commands
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-06 21:07:45 +02:00
deadprogram d1195335b6 firmata: increase test coverage for i2c commands
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-06 20:40:31 +02:00
deadprogram bfbfce2fbe firmata: count bytes written after write succeeds
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-06 20:23:00 +02:00
deadprogram c27871084e firmata: cleanup slice expression to remove redundant clause
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-06 20:20:18 +02:00
deadprogram aefc031d13 firmata: correctly handle i2cwrite operations of >16 bytes by chunking them
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-06 20:04:47 +02:00
deadprogram fe19c2f167 firmata: eliminate race conditions introduced by tests
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-02 21:13:55 +02:00
Marc-Antoine Ruel 50d5869808 Fix go test ./...
Make all examples to not be built by default by adding the build tag 'example'.
Some files were automatically reformatted by goimports upon saving.
2017-03-13 11:01:39 -04:00
deadprogram 51f6aba47c i2c: refactoring of the interface/implementations based on feedback and golinter
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-10 11:08:32 +01:00
deadprogram b0a8bda83f firmata: remove race conditions identified in Firmata client
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-08 15:33:52 +01:00
deadprogram fc3db1ce0f firmata: correct test awaiting i2c response
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-08 12:25:45 +01:00
deadprogram 05aded7528 firmata: correct error in I2C reads not listening to board events
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-07 20:50:26 +01:00
Erik Agsjö 09142c55ee Refactored platforms to new I2C interfaces
Signed-off-by: Erik Agsjö <erik.agsjo@gmail.com>
2017-02-06 15:06:03 +01:00
deadprogram 0c06d0bd97 firmata: use new improved default namer to avoid API conflicts
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-02 16:10:09 +01:00
deadprogram 11473b96f4 firmata: add mutex to try to reduce spurious build errors
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-26 17:37:51 +01:00
deadprogram c5f3427586 firmata: restrict scope for ble serial port for ble firmata adaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-18 12:17:49 +01:00
deadprogram 19353b91a9 ble: some cleanup and comments on ble serial port
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-17 14:09:24 +01:00
deadprogram 0577566617 firmata: comment on default rx/tx characteristics with BLE connected microcontrollers
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-16 21:50:54 +01:00
deadprogram bfddff19b1 firmata: WIP on adding support for BLE connected microcontrollers
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-16 21:45:37 +01:00
deadprogram 653428812a firmata: rename openCommPort to PortOpener, late connect to improve ability to test adaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-15 13:51:07 +01:00
deadprogram 7e520c6440 firmata: add mention to README to use 'tty.' serial port on OSX
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-08 20:53:53 +01:00
deadprogram dacb2e59be firmata: display address in log for TCPFirmata connections
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-03 10:29:21 +01:00
deadprogram 885c829a43 license: update license year to include 2017
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-02 22:25:17 +01:00
deadprogram b8b6f8c89a firmata: change test name for TCPAdaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-02 22:18:12 +01:00
deadprogram 0ce92924c4 firmata: add info on TCPAdaptor to README
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-02 22:16:04 +01:00
deadprogram 78112f1c63 firmata: some WIP on TCP connection to WiFi connected device
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-02 20:00:16 +01:00
deadprogram b99e935b81 test: correct aio references for AnalogRead tests
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-21 15:54:00 +01:00
deadprogram 1dee38c2d4 docs: correct Firmata README link
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-21 10:51:54 +01:00
deadprogram 7cd698b2e7 docs: Add mention of A4 and A5 normally unavailable on Firmata
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-21 08:25:43 +01:00
deadprogram 953c3254e7 core: use canonical import domain of gobot.io for all code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-08 13:24:03 +01:00
Sebastien Binet 1b574b5d45 platforms/firmata/client: use io.ReadFull
This CL uses io.ReadFull to make sure exactly n bytes are read, and
correctly handle io.EOF and co.

Fixes #343.

Signed-off-by: Sebastien Binet <seb.binet@gmail.com>

Conflicts:
	platforms/firmata/client/client.go
2016-11-30 22:58:37 +01:00
deadprogram 654a2a0fde core: update Firmata platform to simply return error
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-07 21:29:51 +01:00
deadprogram 9faf9eb52a core: Use time.Sleep unless waiting for a timeout in a select
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-05 13:05:49 +01:00
deadprogram 900bf1d9ea docs: remove Master unless needed for less code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-18 21:37:10 +02:00
deadprogram 458c750f33 core: refactor/rename internal name of Master type
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-15 20:02:54 +02:00
deadprogram 07f674955b core: Ensure that all drivers have default names
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-03 19:06:37 +02:00
deadprogram 23559830ea update: Update tarm/goserial to tarm/serial
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-03 08:38:24 +02:00
deadprogram 6d4b9927a7 core: Refactor Firmata platform for new Adaptor creation signature
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-25 20:49:20 +02:00
deadprogram 3a60b33480 core: Add Unsubscribe() to eventer, now Once() works as expected
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
deadprogram 9f8fd26221 core: Refactor tests to allow 'metal' development using Gobot adaptors/drivers.
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
deadprogram ef2f0bf203 core: Refactor tests to allow 'metal' development using Gobot adaptors/drivers.
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
deadprogram e15961348f core: Continue refactoring to allow 'metal' development using Gobot libs.
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
deadprogram fe057ba6bf misc: update all LICENSE files for current year
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-08-27 13:12:47 +02:00
deadprogram a64f56d479 tests: refactor test interfaces out of implementations and into the tests where they belong
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-08-26 14:23:03 +02:00
Harley Laue f8be611424 Fix a typo and update the doc comment for FirmataAdaptor.ServoConfig
Signed-off-by: Harley Laue <losinggeneration@gmail.com>
2016-07-27 02:23:14 -07:00
Harley Laue ab52d2bb8f Add ServoConfig to the FirmataAdaptor
Signed-off-by: Harley Laue <losinggeneration@gmail.com>
2016-07-27 02:23:06 -07:00
Harley Laue dc1f750e3b Add unit tests for ServoConfig
Signed-off-by: Harley Laue <losinggeneration@gmail.com>
2016-07-27 02:22:53 -07:00