diff --git a/examples/ardrone.go b/examples/ardrone.go index dec41f97..3bab24dc 100644 --- a/examples/ardrone.go +++ b/examples/ardrone.go @@ -14,12 +14,12 @@ func main() { drone := ardrone.NewArdroneDriver(ardroneAdaptor, "Drone") work := func() { - drone.TakeOff() gobot.On(drone.Event("flying"), func(data interface{}) { gobot.After(3*time.Second, func() { drone.Land() }) }) + drone.TakeOff() } robot := gobot.NewRobot("drone",