hybridgroup.gobot/platforms/bebop
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
..
client Change default value for PCMD flag to match the Bebop 2.0.57+ expectations 2016-07-03 10:52:10 +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 Corrections needed for Bebop to handle Outside mode 2015-10-24 16:45:53 -07:00
bebop_adaptor_test.go Refactor to use `gobottest` test helpers 2016-03-03 17:18:10 -08:00
bebop_driver.go Corrections needed for Bebop to handle Outside mode 2015-10-24 16:45:53 -07: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.