hybridgroup.gobot/platforms/bebop
deadprogram 3119824a5e core: Refactor Bebop platform for new Adaptor/Driver creation signatures
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-25 16:05:24 +02:00
..
client Merge pull request #291 from dgryski/bebop-bool-binarywrite 2016-07-19 19:40:31 +02:00
LICENSE misc: update all LICENSE files for current year 2016-08-27 13:12:47 +02:00
README.md core: Refactor Bebop platform for new Adaptor/Driver creation signatures 2016-09-25 16:05:24 +02:00
bebop_adaptor.go core: Refactor Bebop platform for new Adaptor/Driver creation signatures 2016-09-25 16:05:24 +02:00
bebop_adaptor_test.go core: Refactor Bebop platform for new Adaptor/Driver creation signatures 2016-09-25 16:05:24 +02:00
bebop_driver.go core: Refactor Bebop platform for new Adaptor/Driver creation signatures 2016-09-25 16:05:24 +02:00
bebop_driver_test.go core: Refactor Bebop platform for new Adaptor/Driver creation signatures 2016-09-25 16:05:24 +02:00
doc.go Initial support for the bebop drone 2015-07-21 20:03:27 -07:00
test_helper.go core: Refactor Bebop platform for new Adaptor/Driver creation signatures 2016-09-25 16:05:24 +02: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.NewAdaptor()
	drone := bebop.NewDriver(bebopAdaptor)

	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.