Commit Graph

259 Commits

Author SHA1 Message Date
jeromefroe cb8f90beae Added example of how to use temp36 temperature sensor with firmata 2016-07-03 10:52:10 +02:00
deadprogram 9de106d089 Simple implementation that can read data 2016-03-02 22:43:41 -08:00
deadprogram b662559ae9 Remove test code 2016-03-02 22:05:19 -08:00
deadprogram 12dbf722d7 Almost reading battery info 2016-03-02 22:00:05 -08:00
deadprogram b3e1bb09ee Merge branch 'feature/ble' into feature/ble-wip 2016-02-20 19:56:42 -08:00
deadprogram b4427ced97 Adds support for Dualshock4 wireless gamepad 2016-02-20 09:41:38 -08:00
deadprogram 7ef09a58ba Update ARDrone face tracking example to use main go-opencv fork 2016-02-19 18:39:30 -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
deadprogram d0a5893f27 Fix #236 & fix #239 by correcting initialization and temperature conversion for MPU-6050 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
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
deadprogram 2baa2dcf89 Add MMA7660 accelerometer example for C.H.I.P. 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
deadprogram bc50d792fb Adds additional examples for C.H.I.P. 2016-02-17 12:25:14 -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
Cathal Garvey 79fad6bae4 Fixed event race condition
If this is anything like the Bebop, then taking off immediately fires the "flying" event, but these events aren't buffered so attaching an event handler afterwards achieves nothing. When I ran the same code for the Bebop (as suggested on the site) it never landed, prompting an emergency connect-with-phone-hammer-buttons scramble. Swapping the event registration with the takeoff method call fixed the problem immediately.
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 2bce008224 A little more WIP, can open a connection to a specific peripheral 2016-02-16 15:32:14 -08:00
Andrew Stewart cda57f9dc5 Add support for 'hand' and 'gesture' Leap Motion events 2016-02-09 16:15:55 -08:00
Hrishikesh Tapaswi 04c06202ab 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-08 00:01:44 -08:00
deadprogram 08b756f917 Add MMA7660 accelerometer example for C.H.I.P. 2016-02-07 09:08:29 -08:00
Hrishikesh Tapaswi 4fdcb6e718 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-06 20:21:02 -08:00
deadprogram 31cf304a45 Adds additional examples for C.H.I.P. 2016-02-03 13:51:25 -08:00
Hrishikesh Tapaswi 30d66e2502 Add support for the CHIP platform
This includes support for GPIO and I2C interfaces.

Signed-off-by: Hrishikesh Tapaswi <hrishikesh195@yahoo.com>
2016-01-30 03:44:31 -08:00
Cathal Garvey 051f54c7a0 Fixed event race condition
If this is anything like the Bebop, then taking off immediately fires the "flying" event, but these events aren't buffered so attaching an event handler afterwards achieves nothing. When I ran the same code for the Bebop (as suggested on the site) it never landed, prompting an emergency connect-with-phone-hammer-buttons scramble. Swapping the event registration with the takeoff method call fixed the problem immediately.
2015-11-06 20:32:00 -08:00
deadprogram 24ccd3dde6 Corrections needed for Bebop to handle Outside mode 2015-10-24 16:45:53 -07:00
deadprogram fdf5576e15 Needed to setup the event handler before the method that triggers it 2015-10-24 15:50:44 -07:00
deadprogram 929ccd2ff7 Docs and examples to better show off Grove GPIO 2015-10-22 16:56:03 -07:00
deadprogram 187d79f360 Added square of fire example 2015-10-11 13:41:52 -07:00
Matt Aimonetti 601e4916a2 let devs set and use custom LCD characters
I noticed that the grove LCD screen only has an ASCII/Japanese font table. I need to be able to display accented characters
looking at the data sheet the screen supports up to 8 custom CGRAM characters. I added an API to set those CGRAM characters
as well as a map of common latin 1 characters + emoticons
2015-10-11 00:49:57 -07:00
Ron Evans 79c9657807 Merge pull request #196 from hybridgroup/add/platforms/keyboard
Add basic keyboard driver using `stty`
2015-07-17 08:18:54 -07:00
Adrian Zankich 88f7a68c46 Update jhd1313m1 Scroll and grove lcd example 2015-07-15 17:57:22 -07:00
Filip Gospodinov 52ed70322a edison_grove_lcd: add multi-line example 2015-07-11 00:08:04 +02:00
Adrian Zankich d751445cc0 Add edison grove examples 2015-07-09 11:50:39 -07:00
Andrew Stewart 15a764d865 add basic keyboard driver using stty 2015-07-09 11:41:33 -07:00
Adrian Zankich 761dae973f Add MMA7660Driver 2015-07-08 10:54:37 -07:00
Adrian Zankich b212a40a7e Add buzzer example 2015-07-03 19:03:31 -07:00
Adrian Zankich bc8bb36f8f Update mqtt package for latest paho mqtt api compatibility 2015-04-06 15:35:11 -07:00
Adrian Zankich 96c0677d36 Add lidar example 2015-03-27 09:55:44 -07:00
Adrian Zankich 3f0dd3efb9 Merge branch 'dev' 2014-12-28 08:13:33 -08:00
Adrian Zankich 78436285ec Refactor and add tests 2014-12-28 08:04:15 -08:00
Adrian Zankich 541761b98e Merge branch 'dev' into event-stream
Conflicts:
	platforms/spark/spark_core_adaptor.go
2014-12-28 05:20:52 -08:00
Adrian Zankich 51feaa9985 Update examples, slight refactor and more tests 2014-12-28 04:54:14 -08:00
Javier Cervantes 5002287a78 Adding Function methods to spark core adaptor 2014-12-28 04:54:13 -08:00
Javier Cervantes c679128587 Adding Variable method to spark code adaptor 2014-12-28 04:54:13 -08:00
Adrian Zankich 4a9954a5f9 Slight refactor and add default config constructors 2014-12-25 08:32:24 -08:00
Javier Cervantes 70e89aec05 Adding EventStream method to spark adaptor 2014-12-09 18:27:39 +01:00
Adrian Zankich be963f989c Increase gobot package test coverage 2014-11-30 00:19:53 -08:00
Adrian Zankich fbc79e1a8f Update raspi package for new i2c interface 2014-11-19 17:44:08 -08:00
Adrian Zankich 0541eee697 Update edison package for new i2c interface 2014-11-19 17:41:34 -08:00
Adrian Zankich 6832c1739a Update firmata package for new i2c interface 2014-11-19 17:24:17 -08:00
Adrian Zankich 557e5a239c Update beaglebone package for new i2c interface 2014-11-19 17:18:01 -08:00
Adrian Zankich c5906a9a4b Update beaglebone package for new gpio interface 2014-11-16 14:18:29 -08:00
Adrian Zankich ea27332430 Merge pull request #145 from hybridgroup/mpu6050
Mpu6050
2014-11-10 18:30:54 -08:00
deadprogram b4ff16d14b Support for MPU6050
- Add initial support for MPU6050
- Add real simple test impl
- Add proper formatting
- This pumps out data
2014-11-10 17:05:14 -08:00
deadprogram 9d864d4f1d WIP on MPL115A2
More WIP on mpl115a2
Even more WIP
This pumps out data
2014-11-10 16:53:49 -08:00
Adrian Zankich ce7181741f Add constructor clientid parameter and set proper datatype for On callback function 2014-11-06 12:28:04 -08:00
Adrian Zankich 5ddfd4a848 Add raspi support 2014-11-04 17:14:36 -08:00
deadprogram ccbe8b21f5 Working mqtt examples 2014-11-04 08:54:06 -08:00
deadprogram 33367e1af7 Adding firmata/mqtt example 2014-11-04 07:12:02 -08:00
deadprogram b2e4bd5e55 Simple case is working 2014-11-03 23:29:07 -08:00
Adrian Zankich fd24e6a9fe Update docs 2014-10-28 14:52:59 -07:00
Adrian Zankich 5c9d44f391 Decouple middleware data from api struct 2014-09-25 18:29:10 -07:00
Adrian Zankich 72aade7b3f Add Edison Support
Digital write works

Add PWMWrite

Add AnalogRead

Refactor edison adaptor

Enable more digital pins

Enable all digital pins

Add i2c support

Properly close i2c device

Restore proper examples

Add test stub

Add Edison README
2014-09-23 21:35:29 -07:00
Adrian Zankich 39d3795f5a Add support for blinking usr leds 2014-09-17 15:20:08 -07:00
Nathan Youngman 46d46a8ad0 sphero: return collision data as a struct 2014-09-09 21:45:38 -06:00
Javier Cervantes 1b61814ee1 Adding leap + servos example (robotic hand) 2014-09-06 21:01:44 -05:00
Javier Cervantes bd7168961f Adding leap sphero example 2014-09-02 11:48:23 -05:00
Trevor Rosen f0d1154270
Example for direct GPIO control on Beaglebone
* Contains some annotated on potential gotchas
* Penance for hybridgroup/gobot#98
2014-08-23 14:13:23 -05:00
Adrian Zankich 06061ee67c Initial mavlink support 2014-08-03 18:21:00 -07:00
Adrian Zankich cd797fed65 Add SSE support 2014-08-01 21:37:34 -07:00
Adrian Zankich a155efab14 Update example to use default Watchbot http port 2014-08-01 09:46:07 -07:00
Javier Cervantes 71c6a66049 Making pebble finally work on gobot 2014-07-31 13:56:50 -05:00
Adrian Zankich 2d8ba7206d WIP threepio support 2014-07-24 16:39:27 -07:00
Adrian Zankich 459e06dd67 Enable custom handlers for api 2014-07-21 22:19:04 -07:00
Adrian Zankich d09b778c04 Fix error in example 2014-07-10 19:28:00 -07:00
Adrian Zankich 244ec0a0cf fmt examples 2014-07-10 17:21:21 -07:00
Adrian Zankich a94c3c0bed Update NewLedDriver function signature 2014-07-09 16:51:00 -07:00
Adrian Zankich c86123c694 Clean up devices and connections type 2014-07-09 09:38:43 -07:00
Adrian Zankich 7eec236b07 Update examples 2014-07-08 18:36:14 -07:00
Adrian Zankich 97a1dc67cc Merge branch 'dev' into refactor_device_connection 2014-07-07 22:04:02 -07:00
Travis Berry c5cd47a1d2 implement direct pin for beaglebone
Signed-off-by: Travis Berry <contact@travisberry.com>
2014-06-30 17:54:56 -06:00
Adrian Zankich 34ccc13ecb Add analog sensor data event 2014-06-28 17:18:16 -07:00
Adrian Zankich e10d617ece WIP refactor device and connection 2014-06-23 20:33:59 -07:00
Adrian Zankich 4f5d23a3af Update travis example 2014-06-13 11:19:01 -07:00
Adrian Zankich 5096d983ed Add AddRobot function 2014-06-12 22:30:14 -07:00
Adrian Zankich d05c26e013 Add master api commands 2014-06-12 20:58:54 -07:00
Adrian Zankich f1dbe8b1e2 Update platforms for new device command syntax 2014-06-11 18:59:30 -07:00
Adrian Zankich ca4d8ce583 Refactor robot commands 2014-06-11 16:44:23 -07:00
Adrian Zankich 2a24cda531 Add direct pin example 2014-06-11 11:44:10 -07:00
Adrian Zankich db44941c21 Use new Event type for events 2014-06-11 11:37:20 -07:00
Adrian Zankich c129da61d3 Make golint happy 2014-06-10 15:16:11 -07:00
Adrian Zankich 90423bc68b Merge pull request #64 from hybridgroup/pebble
Pebble Support
2014-06-10 11:55:02 -07:00
Javier Cervantes 3d454a7b05 Updating pebble with new structure
Movinf events creation to newPebbleDriver method

Adding basic button support

Ignoring sass-cache and robeaux

Adding accelerometer example

Adding tap support

Use custom server instead of classic martini

This is to disable logs and avoid noise

Adding correct format to code

Adding notification support to pebble driver

Adding tests and correcting PendingMessage

Updating documentation

Format to example accel

Removing logging changes in api

Removing temp fix in api, will be attended later

Removing extra space
2014-06-10 13:11:27 -05:00
Adrian Zankich 7cf1b991a1 Update ardrone examples 2014-06-08 19:50:15 -07:00
Adrian Zankich cc8612bbcb Update sphero examples 2014-06-08 19:37:41 -07:00
Adrian Zankich 6e0126698e Update spark examples 2014-06-08 18:37:14 -07:00
Adrian Zankich 4449d909e4 Update face detection example 2014-06-08 18:14:18 -07:00
Adrian Zankich 513213178a Update leap exxamples 2014-06-08 18:05:52 -07:00
Adrian Zankich 9ea4224193 Update joystick examples 2014-06-08 18:01:22 -07:00
Adrian Zankich 851b9bc48e Fix robot command initialization 2014-06-07 20:57:51 -07:00
Adrian Zankich e1053fbdc5 Fix Wiichuck driver 2014-06-07 20:38:45 -07:00
Adrian Zankich f70150c5f7 Fix firmata examples 2014-06-06 18:58:04 -07:00
Adrian Zankich 45b38fd55e Update digispark examples 2014-06-06 18:11:26 -07:00
Adrian Zankich bd3599dece Fix beaglebone black issues 2014-06-06 16:58:58 -07:00
Adrian Zankich a7d648eee8 Makey button now uses Interval to manage polling 2014-06-06 14:44:51 -07:00
Adrian Zankich 6f14570641 Fix broken examples 2014-06-06 13:18:07 -07:00
Javier Cervantes 3de9d86f74 Merge branch 'dev' of https://github.com/hybridgroup/gobot into pebble-support
* 'dev' of https://github.com/hybridgroup/gobot: (44 commits)
  Fix errors in examples
  Update i2c package
  Update gpio package
  Update sphero package and examples
  Update spark package and examples
  Update opencv package and examples
  Update neurosky package and examples
  Update leap package and examples
  Update joystick package and examples
  Update hello examples
  Update digispark package and examples
  Update beaglebone package and examples
  Update firmata examples
  Update ardrone adaptor, driver and examples
  Mark failing tests as pending
  WIP api refactor
  Fix platform tests
  Interval is now a time.Duration
  Gobot tests are green again
  After and Every now require a time.Duration instead of a string
  ...
2014-05-23 15:55:31 -05:00
Adrian Zankich 8e8adf1587 Fix errors in examples 2014-05-22 21:39:15 -07:00
Adrian Zankich d877ffd251 Update sphero package and examples 2014-05-22 21:20:16 -07:00
Adrian Zankich f81aa43336 Update spark package and examples 2014-05-22 21:04:47 -07:00
Adrian Zankich cfc11f8eda Update opencv package and examples 2014-05-22 20:53:15 -07:00
Adrian Zankich 89b781fbdb Update neurosky package and examples 2014-05-22 20:43:00 -07:00
Adrian Zankich 7806a19a3f Update leap package and examples 2014-05-22 20:35:45 -07:00
Adrian Zankich 02ea69f7e0 Update joystick package and examples 2014-05-22 20:28:26 -07:00
Adrian Zankich ef41a36f0f Update hello examples 2014-05-22 20:18:45 -07:00
Adrian Zankich 8eaf55552a Update digispark package and examples 2014-05-22 20:13:38 -07:00
Adrian Zankich 93ff0d6844 Update beaglebone package and examples 2014-05-22 19:32:09 -07:00
Adrian Zankich cb3f65c3f0 Update firmata examples 2014-05-22 19:22:14 -07:00
Adrian Zankich d32a5270f2 Update ardrone adaptor, driver and examples 2014-05-20 23:36:44 -07:00
Javier Cervantes 37241b7edb Adding pebble support 2014-05-02 17:22:05 -05:00
Adrian Zankich eca3a1ca99 More WIP restructure 2014-04-30 08:10:44 -07:00
Adrian Zankich 90ee5d7d70 WIP project restructure 2014-04-29 13:20:32 -07:00
Adrian Zankich 86f0580f58 Update sphero driver and examples 2014-04-28 11:40:20 -07:00
Adrian Zankich 912e25f353 Update conways example 2014-04-28 11:29:53 -07:00
Adrian Zankich 765ea17717 Update examples 2014-04-28 11:24:48 -07:00
Adrian Zankich 20cbba0789 Update ardrone package 2014-04-28 11:23:12 -07:00
Adrian Zankich 44cf684194 Update beaglebone package 2014-04-28 04:39:51 -07:00
Adrian Zankich 5d60de0376 Update digispark package 2014-04-28 04:23:15 -07:00
Adrian Zankich a15ccb6a20 Update firmata package 2014-04-27 19:56:18 -07:00
Adrian Zankich 96cb031261 Update joystick package 2014-04-27 18:02:39 -07:00
Adrian Zankich 35437065f6 Update leap package 2014-04-27 17:43:15 -07:00
Adrian Zankich af5413a0bc Update neurosky package 2014-04-27 17:17:05 -07:00
Adrian Zankich d2673273cb Update opencv package 2014-04-27 16:58:34 -07:00
Adrian Zankich 9ac54feaed Update spark package 2014-04-27 11:56:23 -07:00
Adrian Zankich 82b8fd5224 Update sphero package 2014-04-26 18:07:04 -07:00
Adrian Zankich fb4118d7eb WIP combine all seperate adaptor and driver repos into a single repo 2014-04-26 03:11:51 -07:00
deadprogram ed2bdfb510 Add basic auth support to api 2014-04-18 15:45:42 -07:00
deadprogram 0ee37bd33d Allow user to set Host and Port when starting up Api 2014-04-18 15:19:09 -07:00
deadprogram 189dddc3c0 WIP for API host/port params 2014-04-18 14:39:17 -07:00
Adrian Zankich 0338910e0b Update examples 2014-04-16 15:54:39 -07:00
Adrian Zankich 5deff8dfed Update examples 2013-12-30 13:56:16 -08:00
Adrian Zankich ad0bdeaf8e Update examples 2013-12-03 16:11:24 -08:00
Adrian Zankich 60abbf8c2a Add serialport support 2013-12-03 10:43:30 -08:00
deadprogram fb963364b1 Can I build? 2013-12-03 00:48:20 -08:00
deadprogram b55167585a Dots for ignoring imports 2013-12-02 22:46:25 -08:00
Adrian Zankich 77dd6dbae3 Drop unnecessary api parameters 2013-11-27 20:35:32 -08:00
Adrian Zankich d0176c313e Fix example 2013-11-27 20:14:32 -08:00
Adrian Zankich a435a0bd7d Expose robot functions via api 2013-11-27 20:05:45 -08:00
Adrian Zankich 2fced445c9 Update examples 2013-11-24 16:24:32 -08:00