Skip to content

Commit

Permalink
Merge pull request hybridgroup#245 from cathalgarvey/patch-1
Browse files Browse the repository at this point in the history
The take-off-before-event-handling bug again
  • Loading branch information
deadprogram committed Nov 26, 2015
2 parents 274cb02 + 78bf872 commit fee0946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/ardrone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,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",
Expand Down

0 comments on commit fee0946

Please sign in to comment.