cylon/examples/drone.coffee

20 lines
308 B
CoffeeScript

Cylon = require('..')
Cylon.robot
connection:
name: 'ardrone', adaptor: 'ardrone', port: '192.168.1.1'
device:
name: 'drone', driver: 'ardrone'
work: (my) ->
my.drone.takeoff()
after 10.seconds(), ->
my.drone.land()
after 15.seconds(), ->
my.drone.stop()
.start()