Crazyflies
This commit is contained in:
parent
068f6bd676
commit
671e395984
|
@ -0,0 +1,19 @@
|
|||
Cylon = require '..'
|
||||
|
||||
Cylon.robot
|
||||
connection:
|
||||
name: 'crazyflie', adaptor: 'crazyflie', port: "radio://1/10/250KPS"
|
||||
|
||||
device:
|
||||
name: 'drone', driver: 'crazyflie'
|
||||
|
||||
work: (my) ->
|
||||
#my.drone.setParam('flightmode.althold', true)
|
||||
my.drone.on 'start', ->
|
||||
my.drone.takeoff()
|
||||
after 10.seconds(), ->
|
||||
my.drone.land()
|
||||
after 15.seconds(), ->
|
||||
my.drone.stop()
|
||||
|
||||
.start()
|
Loading…
Reference in New Issue