Commit Graph

524 Commits

Author SHA1 Message Date
Andrew Lytvynov f20424fead ble: populate descriptors after descovering characterisitcs
On Linux, characteristic discovery requires setting the descriptor field
explicitly.
2016-07-13 10:16:58 -07:00
Damian Gryski b5083e67d3 Move interface assertions to test files.
In general, these shouldn't live in the package proper, since they're
actually tests.
2016-07-13 11:04:30 -06:00
Damian Gryski a8ea32ce56 Fix misspellings 2016-07-13 10:44:47 -06:00
Damian Gryski f131a82e69 platforms/bebop/client: fix type for binary.Write call
binary.Write only takes fixed-width types, of which 'bool' is not one.
Add a helper and turn those into int8s instead.
2016-07-13 09:38:40 -06:00
Damian Gryski 977c878a8b Code cleanups suggested by gosimple 2016-07-13 09:32:22 -06:00
deadprogram c78be7d51f Resolve merge conflicts
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-13 08:30:45 -06:00
deadprogram 2001471637 [ble] Slightly longer delay on Ollie halt
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-13 07:37:40 -06:00
deadprogram c5f996c543 [ble] Go to sleep, little Ollie
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-11 23:46:01 -06:00
deadprogram 11a49b64f3 [ble] Implement Ollie Roll command
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-10 12:28:20 -06:00
deadprogram 8fa839081f [ble] Ollie example color cycles
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-10 12:08:34 -06:00
ron ee2fc3777c [ble] Can setrgb commands to Ollie 2016-07-10 10:51:36 -06:00
deadprogram 5abc5d260e [ble] Correct examples to use client adaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-09 11:52:48 -06:00
deadprogram 9630662a00 [ble] Separate BLE client adaptor to allow for a BLE server adaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-08 20:36:53 +02:00
deadprogram d2e9ebc5c1 [ble] BLE client adaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-08 20:28:41 +02:00
deadprogram 80ecc5ac53 [ble] BLE client adaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-08 20:27:06 +02:00
deadprogram 10f0ec6dbc [ble] log without failing for operations involving unknown characteristics
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-08 12:02:15 +02:00
deadprogram 11c8e9a98c [ble] Refactoring to DRY up characteristic lookup
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-08 11:44:45 +02:00
deadprogram fa22353cb6 [ble] Flip it
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-05 22:08:42 +02:00
deadprogram 4eeb186bcd [ble] Simplify packet format
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-05 21:51:20 +02:00
deadprogram e6baafd49b [ble] Another attempt at the correct packet format
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-05 21:20:49 +02:00
deadprogram e5068274d3 [ble] Correcting params to match the Minidrone defs
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-05 21:07:43 +02:00
deadprogram 48520de2f7 [ble] Can connect by advertised local name or by ID
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-05 12:35:37 +02:00
deadprogram 500283c87f [ble] Complete implementation for initial drone inferface
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-05 11:45:00 +02:00
deadprogram cca3a1cacd [ble] Rename files to match current naming scheme
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-05 11:11:04 +02:00
deadprogram 5018107377 [ble] Use constants for service/characteristic IDs
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-05 11:09:48 +02:00
ron ef99b92190 [ble] Able to takeoff and land 2016-07-04 23:54:44 +02:00
deadprogram a95af64ecb [ble] Startup Pcmd
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-04 22:53:54 +02:00
deadprogram eedc5081ed [ble] Flying and landing and landed
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-04 22:23:59 +02:00
deadprogram fbea6e76f0 [ble] Ready for takeoff?
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-04 20:31:15 +02:00
deadprogram f86f0fa76d [ble] Battery and status events
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-04 20:10:30 +02:00
ron 7887140073 [ble] Able to connect and retrieve battery notifications 2016-07-04 19:46:42 +02:00
deadprogram e001cce97c [ble] Experiments aerial
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-04 17:00:36 +02:00
ron 634387337b [ble] Separate options for linux and OSX 2016-07-04 11:46:27 +02:00
deadprogram 04bf4c355c [ble] Device information service
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 12:46:29 +02:00
deadprogram da9054d197 go fmt the code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 12:11:34 +02:00
deadprogram 25c861571c Making sure tests pass
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 11:15:42 +02:00
deadprogram 9b779e40ab Switching to currantlabs fork of gatt, and some related refactoring
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:11 +02:00
Ranjib Dey a589be6491 fix specs 2016-07-03 10:52:11 +02:00
Ranjib Dey a14e50d9ea support gpio pin turn on and off 2016-07-03 10:52:11 +02:00
deadprogram 06ee8a4699 [audio] Run go fmt because we have to
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:11 +02:00
deadprogram ae8b23c565 [audio] Refactor audio driver to simplify interface
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:11 +02:00
deadprogram 3b3b03c8dd [audio] Test coverage for execution of audio driver
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:11 +02:00
deadprogram cdc1330cc2 [audio] Test coverage for exexcution of audio adaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:11 +02:00
deadprogram 6464a1bb02 [audio] Add yet additional test coverage for audio adaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:11 +02:00
deadprogram 3085d43421 [audio] Add additional test coverage for audio adaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:11 +02:00
deadprogram a50c76b0ef [keyboard] Adds more test coverage and fixes README install instructions
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:11 +02:00
deadprogram a488b4fff0 [audio] Correct format of adaptor
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:11 +02:00
deadprogram 7eb221d9e5 [audio] Allows playback of both MP3 or WAV files, as long as the needed player (mpg123 or aplay) is installed
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:11 +02:00
deadprogram 1897c7f02e [gpio] Improve pin logging for RGB LED
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:11 +02:00
deadprogram b37c656ffe [audio] Spawn audio playing process using Start for async
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:11 +02:00
deadprogram 5c2766d85f [audio] WIP on Gobot audio support using mpg123, based on code from @colemanserious
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:11 +02:00
deadprogram 4015c7e818 [gpio] Correct go formatting on RGB LED
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:10 +02:00
deadprogram 3d9aeeef14 [gpio] Add support for RGB LED
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:10 +02:00
deadprogram 2707124725 Change default value for PCMD flag to match the Bebop 2.0.57+ expectations
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-07-03 10:52:10 +02:00
Stas Turlo 9226a6c80b Add MQTT authentication support 2016-07-03 10:52:10 +02:00
Ulises Flynn e391252dba Code cleanup, improve go report card 2016-03-12 15:08:21 -08:00
gmarik 8c68615485 Refactor to use `gobottest` test helpers 2016-03-03 17:18:10 -08:00
deadprogram 77453ccca8 Change test delay to 50ms 2016-03-03 17:18:10 -08:00
Krishna Chaitanya a28fd363ec Fix for analog (quick changes lag)
This fixes analog lag issue.
2016-03-03 17:18:10 -08:00
deadprogram 2cff32dee1 Remove commented lines 2016-03-02 22:51:55 -08:00
deadprogram 9de106d089 Simple implementation that can read data 2016-03-02 22:43:41 -08:00
deadprogram 12dbf722d7 Almost reading battery info 2016-03-02 22:00:05 -08:00
gmarik 8ceffc25ba Refactor to use `gobottest` test helpers 2016-02-24 22:16:05 -08:00
deadprogram c52a14d56b Change test delay to 50ms 2016-02-24 22:16:05 -08:00
Krishna Chaitanya 2c5f1bc9b6 Fix for analog (quick changes lag)
This fixes analog lag issue.
2016-02-24 22:16:05 -08:00
deadprogram 41d80f991c Tests also need to be pointed to @veandco go-sdl2 fork 2016-02-24 22:16:05 -08:00
deadprogram e45c822101 Use main go-sdl fork from @veandco to pickup any upstream changes 2016-02-24 22:16:05 -08:00
deadprogram acd1524432 Adds support for Dualshock4 wireless gamepad 2016-02-24 22:16:05 -08:00
deadprogram c116a625bc Adds support for Dualshock4 wireless gamepad 2016-02-24 22:16:05 -08:00
deadprogram e3d547f2c0 Use OpenCV 2.4, as well as switch to main fork of go-opencv 2016-02-24 22:16:05 -08:00
Brian Stengaard 24c04dc7eb Pin 229 value left out of test fixture on edison 2016-02-24 22:16:05 -08:00
deadprogram b3e1bb09ee Merge branch 'feature/ble' into feature/ble-wip 2016-02-20 19:56:42 -08:00
deadprogram dcf89ff49f Tests also need to be pointed to @veandco go-sdl2 fork 2016-02-20 14:43:16 -08:00
deadprogram 556159070c Use main go-sdl fork from @veandco to pickup any upstream changes 2016-02-20 14:27:24 -08:00
deadprogram b4427ced97 Adds support for Dualshock4 wireless gamepad 2016-02-20 09:41:38 -08:00
deadprogram ae4c760951 Adds support for Dualshock4 wireless gamepad 2016-02-20 09:41:19 -08:00
deadprogram f55cd94cd5 Use OpenCV 2.4, as well as switch to main fork of go-opencv 2016-02-19 18:36:33 -08:00
Brian Stengaard f839367fcf Pin 229 value left out of test fixture on edison 2016-02-19 09:51:58 +01:00
deadprogram d0a5893f27 Fix #236 & fix #239 by correcting initialization and temperature conversion for MPU-6050 2016-02-17 12:25:15 -08:00
deadprogram b06f8bae38 Revert "Increase button delay hack for test suite"
This reverts commit fe221a9633.
2016-02-17 12:25:15 -08:00
deadprogram 87584e9765 Increase button delay hack for test suite 2016-02-17 12:25:15 -08:00
Andrew Stewart 111a6df996 Add support for 'hand' and 'gesture' Leap Motion events 2016-02-17 12:25:15 -08:00
deadprogram f8f6dfeb0b Use newer naming system for C.H.I.P. pins 2016-02-17 12:25:15 -08:00
deadprogram 7c355b8dcd Update MQTT README for latest info 2016-02-17 12:25:15 -08:00
deadprogram 3cf667d450 Increase test delay hack for button tests 2016-02-17 12:25:15 -08:00
deadprogram 920c38482f Default the new MQTT 'AutoReconnect' to false 2016-02-17 12:25:15 -08:00
Hrishikesh Tapaswi ed4522248f Name C.H.I.P. pins according to printed names
It's more convenient to refer to a pin by the name that's printed right
on the header itself instead of having to count the pin number.

Signed-off-by: Hrishikesh Tapaswi <hrishikesh195@yahoo.com>
2016-02-17 12:25:15 -08:00
Hrishikesh Tapaswi 42475e479d Get I2C functionality before doing SMBus block I/O
In the sysfs i2cDevice implementation, use an ioctl to get the adapter
functionality mask. Prefer SMBus block I/O but if it's not available,
perform read/write calls directly on the file descriptor.

Improve Wiichuck error handling. Add a 1 ms delay between I/O operations
to the Wiichuck; this dramatically improves reliability.

Signed-off-by: Hrishikesh Tapaswi <hrishikesh195@yahoo.com>
2016-02-17 12:25:15 -08:00
Hrishikesh Tapaswi 8f79c322e0 Add support for the CHIP platform
This includes support for GPIO and I2C interfaces.

Signed-off-by: Hrishikesh Tapaswi <hrishikesh195@yahoo.com>
2016-02-17 12:25:14 -08:00
Ethan Young dc183d7a78 Correct the release command sent to pi-blaster. 2016-02-17 12:25:14 -08:00
Cathal Garvey 01bb538959 The take-off-before-event-handling bug again 2016-02-17 12:25:14 -08:00
deadprogram cee08c8e35 Correct Intel Edison docs location thanks to @seanmarcia 2016-02-17 12:25:14 -08:00
Ulises Flynn 43d4271b45 Add MCP23017 write and read functionality to GPIO
Signed-off-by: Ulises Flynn <uflynn@hotmail.com>
2016-02-17 12:25:14 -08:00
deadprogram ee61c902a5 Can see BLE devices, and connect to a specific one 2016-02-16 15:32:14 -08:00
deadprogram 2aa96c583a More WIP on reading characteristics 2016-02-16 15:32:14 -08:00
deadprogram 2bce008224 A little more WIP, can open a connection to a specific peripheral 2016-02-16 15:32:14 -08:00
deadprogram 66192290b6 WIP on BLE 2016-02-16 15:32:14 -08:00
deadprogram fe221a9633 Increase button delay hack for test suite 2016-02-16 15:27:02 -08:00
Andrew Stewart cda57f9dc5 Add support for 'hand' and 'gesture' Leap Motion events 2016-02-09 16:15:55 -08:00
deadprogram a82d030f9c Use newer naming system for C.H.I.P. pins 2016-02-09 15:38:17 -08:00