hybridgroup.gobot/platforms/bebop
Ron Evans 2e8c1a5e6d Merge pull request #291 from dgryski/bebop-bool-binarywrite
platforms/bebop/client: fix type for binary.Write call
2016-07-19 19:40:31 +02:00
..
client Merge pull request #291 from dgryski/bebop-bool-binarywrite 2016-07-19 19:40:31 +02:00
LICENSE Initial support for the bebop drone 2015-07-21 20:03:27 -07:00
README.md Bebop hull protection setting and beginning of test coverage 2015-10-04 23:06:26 -07:00
bebop_adaptor.go Move interface assertions to test files. 2016-07-13 11:04:30 -06:00
bebop_adaptor_test.go Move interface assertions to test files. 2016-07-13 11:04:30 -06:00
bebop_driver.go Move interface assertions to test files. 2016-07-13 11:04:30 -06:00
bebop_driver_test.go Move interface assertions to test files. 2016-07-13 11:04:30 -06:00
doc.go Initial support for the bebop drone 2015-07-21 20:03:27 -07:00
test_helper.go Corrections needed for Bebop to handle Outside mode 2015-10-24 16:45:53 -07:00

README.md

Bebop

The Bebop from Parrot is an inexpensive quadcopter that is controlled using WiFi. It includes a built-in front-facing HD video camera, as well as a second lower resolution bottom facing video camera.

How to Install

go get -d -u github.com/hybridgroup/gobot/... && go install github.com/hybridgroup/gobot/platforms/bebop

How to Use

package main

import (
	"time"

	"github.com/hybridgroup/gobot"
	"github.com/hybridgroup/gobot/platforms/bebop"
)

func main() {
	gbot := gobot.NewGobot()

	bebopAdaptor := bebop.NewBebopAdaptor("Drone")
	drone := bebop.NewBebopDriver(bebopAdaptor, "Drone")

	work := func() {
    drone.HullProtection(true)
		drone.TakeOff()
		gobot.On(drone.Event("flying"), func(data interface{}) {
			gobot.After(3*time.Second, func() {
				drone.Land()
			})
		})
	}

	robot := gobot.NewRobot("drone",
		[]gobot.Connection{bebopAdaptor},
		[]gobot.Device{drone},
		work,
	)
	gbot.AddRobot(robot)

	gbot.Start()
}

How to Connect

The Bebop is a WiFi device, so there is no additional work to establish a connection to a single drone. However, in order to connect to multiple drones, you need to perform some configuration steps on each drone via SSH.