Commit Graph

33 Commits

Author SHA1 Message Date
deadprogram c80ab8ea91 firmata: Sysex response events now being handled as expected
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram b945fdaf5a firmata: expose WriteSysex to external callers
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram 4f97d01b34 firmata: cleanup error handling for connection code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram ab7944b86b firmata: improve connection code to use a proper timeout
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram 202089f3a2 firmata: increase test coverage
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram c057909011 firmata: return connect errors to client
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram efee462c95 firmata: client tests don't need so many goroutines
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram 3c4a4f6e0d firmata: adjust client test timeout values
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram bfdb65ad16 firmata: refactoring firmata client
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram 959a406e7b firmata: increase test coverage
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-05-04 19:58:38 +02:00
deadprogram 2742dbacc1 firmata: remove processing that might have been eating test events, increase test coverage
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-05-04 18:31:32 +02:00
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 39e7ec000d firmata: increase timeout for test
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-04-25 12:04:36 +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 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 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 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 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 23559830ea update: Update tarm/goserial to tarm/serial
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-03 08:38:24 +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
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 dc1f750e3b Add unit tests for ServoConfig
Signed-off-by: Harley Laue <losinggeneration@gmail.com>
2016-07-27 02:22:53 -07:00
Harley Laue 5086b2a0d5 Fix the ServoConfig byte order
Signed-off-by: Harley Laue <losinggeneration@gmail.com>
2016-07-21 00:41:12 -07:00
Damian Gryski 977c878a8b Code cleanups suggested by gosimple 2016-07-13 09:32:22 -06:00
gmarik e494b9fb99 Refactor to use `gobottest` test helpers 2016-02-22 00:33:58 -05:00
Matt Aimonetti a129ff03fa Update blink example due to API change 2015-10-07 23:35:22 -07:00
Adrian Zankich a8fa365990 Make travis happy 2015-07-15 16:46:40 -07:00
Adrian Zankich 02a62d043a Refactor firmata client library into seperate package
Green tests

Refactor tests to table driven

Refactor analog, digital and i2c

Fix tests

golint client package

Fix tests

Add ServoConfig

Rename query and i2c functions

Fix tests

Fix typo
2015-06-30 14:11:22 -07:00