20 lines
355 B
CoffeeScript
20 lines
355 B
CoffeeScript
|
Cylon = require('..')
|
||
|
|
||
|
Cylon.robot
|
||
|
connection:
|
||
|
name: 'ardrone', adaptor: 'ardrone', port: '192.168.1.1'
|
||
|
|
||
|
devices:
|
||
|
[
|
||
|
{name: 'drone', driver: 'ardrone'},
|
||
|
{name: 'nav', driver: 'ardroneNav'}
|
||
|
]
|
||
|
|
||
|
work: (my) ->
|
||
|
my.drone.config('general:navdata_demo', 'TRUE')
|
||
|
|
||
|
my.nav.on 'update', (data) ->
|
||
|
Logger.info data
|
||
|
|
||
|
.start()
|