Professional Documents
Culture Documents
...
drone> client.animate('yawShake',1000);
undefined
drone> client.animate('flipBehind",1000)'
SyntaxError: missing ) after argument list
at Object.exports.createScript (vm.js:24:10)
at REPLServer.defaultEval (repl.js:235:25)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:431:12)
at emitOne (events.js:77:13)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:211:10)
at REPLServer.Interface._line (readline.js:550:8)
at REPLServer.Interface._ttyWrite (readline.js:827:14)
drone>
(To exit, press ^C again or type .exit)
drone> client.animate('flipBehind', 1000);
undefined
drone> client.animate('flipLeft', 1000);
undefined
drone> client.animate('flipLeft', 1000);
undefined
drone> client.animate('flipBehind', 1000);
undefined
drone> client.stop();
true
drone> client.animate('flipBehind', 1000);
undefined
drone> client.stop();
true
drone> control.pcmd({
... front: 0.5, // fly forward with 50% speed
... up: 0.3, // and also fly up with 30% speed
... });
ReferenceError: control is not defined
at repl:1:1
at REPLServer.defaultEval (repl.js:264:27)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:431:12)
at emitOne (events.js:77:13)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:211:10)
at REPLServer.Interface._line (readline.js:550:8)
at REPLServer.Interface._ttyWrite (readline.js:827:14)
drone> control.pcmd([
... front: 0.5,
... up: 0.3,
... })
...
drone> client.up(5);
5
drone> client.down(3);
3
drone> client.up(2);
2
drone> client.animate('flipLeft', 2000);
undefined
drone> client.animate('flipLeft', 1000);
undefined
drone>
(To exit, press ^C again or type .exit)
drone> client.stop();
true
drone> client.animate('flipLeft', 1000);
undefined
drone>
(To exit, press ^C again or type .exit)
drone> client.animate('flipLeft', 1000);
undefined
drone> client.down(1);
1
drone> client.land();
true
drone> client.takeoff();
true
drone>
(To exit, press ^C again or type .exit)
drone> client.takeoff();
true
drone> client.up(2);
2
drone>
(To exit, press ^C again or type .exit)
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$ node repl.js
drone> client.takeoff();
true
drone> client.calibrate(0);
undefined
drone> client.takeoff();
true
drone>
(To exit, press ^C again or type .exit)
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$ node repl.js
drone> takeoff();
true
drone> client.up(2);
2
drone> client.down(1);
1
drone> client.stop();
true
drone> client.land();
true
drone> client.takeoff();
true
drone> client.animate('flipLeft', 1000);
undefined
drone> client.stop();
true
drone> client.up(4);
4
drone> client.animate('flipLeft', 1000);
undefined
drone> client.animate('thetaDance', 1000);
undefined
drone> client.animate('flipLeft', 1000);
undefined
drone> client.animate('flipRight', 2000);
undefined
drone> client.takeoff();
true
drone> client.takeoff();
true
drone> client.takeoff();
true
drone>
drone>
(To exit, press ^C again or type .exit)
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$ node repl.js
drone> client.takeoff();
true
drone> client.land();
true
drone> client.takeoff();
true
drone> client.after;
[Function]
drone> client.after(5000,function(){this.clockwise(0.5);})
Client {
domain: null,
_events:
{ hovering: [ [Object], [Object] ],
landed: [ [Object], [Object] ] },
_eventsCount: 2,
_maxListeners: undefined,
_options: {},
_udpControl:
UdpControl {
_sequenceNumber: 5848,
_socket:
Socket {
domain: null,
_events: {},
_eventsCount: 0,
_maxListeners: undefined,
_handle: [Object],
_receiving: true,
_bindState: 2,
type: 'udp4',
fd: -42,
_reuseAddr: undefined,
_sendQueue: undefined },
_port: 5556,
_ip: '192.168.1.1',
defaultTimeout: 500,
_cmdCreator: AtCommandCreator {},
_cmds: [],
_blockingCmds: [],
_tcpVideoStream: null,
_interval:
{ _called: true,
_idleTimeout: 30,
_idlePrev:
Timer {
'0': [Function: listOnTimeout],
_idleNext: [Circular],
_idlePrev: [Circular],
msecs: 30 },
_idleNext:
Timer {
'0': [Function: listOnTimeout],
_idleNext: [Circular],
_idlePrev: [Circular],
msecs: 30 },
_idleStart: 95929,
_onTimeout: [Function: wrapper],
_repeat: [Function: bound ] },
_ref: { emergency: false, fly: true },
_pcmd: {},
_repeaters: [],
_afterOffset: 13000,
_disableEmergency: false,
_lastState: 'CTRL_LANDED',
_lastBattery: 100,
_lastAltitude: 0 }
drone> client.after(3000, funtion(){this.stop();
SyntaxError: missing ) after argument list
at Object.exports.createScript (vm.js:24:10)
at REPLServer.defaultEval (repl.js:235:25)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:431:12)
at emitOne (events.js:77:13)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:211:10)
at REPLServer.Interface._line (readline.js:550:8)
at REPLServer.Interface._ttyWrite (readline.js:827:14)
drone> this.land();
true
drone> client.takeoff();
true
drone>
_parseNavdata: [Object],
_timeout: 100,
_timer: [Object],
_sequenceNumber: 4029 },
_pngStream: null,
_tcpVideoStream: null,
_interval:
{ _called: true,
_idleTimeout: 30,
_idlePrev: [Object],
_idleNext: [Object],
_idleStart: 21549,
_onTimeout: [Function: wrapper],
_repeat: [Function: bound ] },
_ref: { fly: false, emergency: false },
_pcmd: {},
_repeaters: [],
_afterOffset: 8000,
_disableEmergency: false,
_lastState: 'CTRL_LANDED',
_lastBattery: 19,
_lastAltitude: 0 },
_repl:
REPLServer {
_domain:
Domain {
domain: null,
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
members: [] },
useGlobal: false,
ignoreUndefined: false,
replMode: Symbol(repl-sloppy),
_inTemplateLiteral: false,
rli: [Circular],
eval: { [Function: runBound] domain: [Object] },
inputStream:
ReadStream {
_connecting: false,
_hadError: false,
_handle: [Object],
_parent: null,
_host: null,
_readableState: [Object],
readable: true,
domain: null,
_events: [Object],
_eventsCount: 6,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
destroyed: false,
bytesRead: 39,
_bytesDispatched: 0,
_sockname: null,
_writev: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
isRaw: true,
isTTY: true,
fd: 0,
read: [Function],
_consuming: true },
outputStream:
WriteStream {
_connecting: false,
_hadError: false,
_handle: [Object],
_parent: null,
_host: null,
_readableState: [Object],
readable: false,
domain: null,
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
_writableState: [Object],
writable: true,
allowHalfOpen: false,
destroyed: false,
bytesRead: 0,
_bytesDispatched: 113,
_sockname: null,
_writev: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
columns: 80,
rows: 24,
_type: 'tty',
fd: 1,
_isStdio: true,
destroySoon: [Function],
destroy: [Function] },
lines: [ level: [] ],
context:
{ DTRACE_NET_SERVER_CONNECTION: [Function],
DTRACE_NET_STREAM_END: [Function],
DTRACE_HTTP_SERVER_REQUEST: [Function],
DTRACE_HTTP_SERVER_RESPONSE: [Function],
DTRACE_HTTP_CLIENT_REQUEST: [Function],
DTRACE_HTTP_CLIENT_RESPONSE: [Function],
global: [Circular],
process: [Object],
GLOBAL: [Object],
root: [Object],
Buffer: [Object],
clearImmediate: [Function],
clearInterval: [Function],
clearTimeout: [Function],
setImmediate: [Function],
setInterval: [Function],
setTimeout: [Function],
console: [Object],
module: [Object],
require: [Object],
domain: null,
after: [Function: bound ],
createRepl: [Function: bound ],
createPngStream: [Function: bound ],
getPngStream: [Function: bound ],
getVideoStream: [Function: bound ],
resume: [Function: bound ],
disableEmergency: [Function: bound ],
takeoff: [Function: bound ],
land: [Function: bound ],
stop: [Function: bound ],
line: [Function],
SIGCONT: [Function] },
_eventsCount: 4,
_maxListeners: undefined,
output:
WriteStream {
_connecting: false,
_hadError: false,
_handle: [Object],
_parent: null,
_host: null,
_readableState: [Object],
readable: false,
domain: null,
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
_writableState: [Object],
writable: true,
allowHalfOpen: false,
destroyed: false,
bytesRead: 0,
_bytesDispatched: 113,
_sockname: null,
_writev: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
columns: 80,
rows: 24,
_type: 'tty',
fd: 1,
_isStdio: true,
destroySoon: [Function],
destroy: [Function] },
input:
ReadStream {
_connecting: false,
_hadError: false,
_handle: [Object],
_parent: null,
_host: null,
_readableState: [Object],
readable: true,
domain: null,
_events: [Object],
_eventsCount: 6,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
destroyed: false,
bytesRead: 39,
_bytesDispatched: 0,
_sockname: null,
_writev: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
isRaw: true,
isTTY: true,
fd: 0,
read: [Function],
_consuming: true },
historySize: 30,
completer: [Function: complete],
_initialPrompt: 'drone> ',
_prompt: 'drone> ',
terminal: true,
line: '',
cursor: 0,
history: [],
historyIndex: -1,
commands:
{ break: [Object],
clear: [Object],
exit: [Object],
help: [Object],
save: [Object],
load: [Object] },
writer: [Function],
useColors: true,
prevRows: 0 },
_nodeEval:
{ [Function: runBound]
domain:
Domain {
domain: null,
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
members: [] } } }
drone> client.stopp(());;
true
drone>
true
drone>
(To exit, press ^C again or type .exit)
drone>
^C
node
node repl.js
node repl.js
node repl.js
^C
Annabels-MacBook-Air-2:~ annabelhughes$ node repl.js
drone>
(To exit, press ^C again or type .exit)
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$ node repl.js
drone> client.takeoff();
true
drone> client.up(2);
2
drone> client.down(2);
2
drone> client.stop();
true
drone> client.left(0.5);
0.5
drone> client.stop();
true
drone> client.land();
true
drone>
(To exit, press ^C again or type .exit)
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$ node repl.js
drone>
(To exit, press ^C again or type .exit)
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$ node repl.js
drone> client.takeoff();
true
drone> client.up(2);
2
drone> client.stop();
true
drone> client.animate('Flipleft, 5000');
undefined
drone> /Users/annabelhughes/node_modules/ardrone/lib/control/AtCommandCreator.js:112
throw new Error('Unknown animation: ' + name);
^
Error: Unknown animation: Flipleft, 5000
at AtCommandCreator.animate (/Users/annabelhughes/node_modules/ardrone/lib/control/AtCommandCreator.js:112:11)
at UdpControl.(anonymous function) [as animate]
(/Users/annabelhughes/node_modules/ar-drone/lib/control/UdpControl.js:42:44)
at Object.method (/Users/annabelhughes/node_modules/ardrone/lib/Client.js:242:22)
at /Users/annabelhughes/node_modules/ar-drone/lib/Client.js:181:14
at Array.forEach (native)
at Client._sendCommands (/Users/annabelhughes/node_modules/ardrone/lib/Client.js:179:6)
^C
Annabels-MacBook-Air-2:~ annabelhughes$
drone> client.takeoff();
true
drone> client.animate('flipLeft', 1000);
undefined
drone> client.land();
true
drone>
(To exit, press ^C again or type .exit)
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$
drone> client.takeoff();
true
drone> client.up(1);
1
drone> client.stop();
true
drone> client.animate('flipLeft', 1000);
undefined
drone> client.land();
true
drone>
(To exit, press ^C again or type .exit)
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$
drone>
(To exit, press ^C again or type .exit)
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$
module.js:327
throw err;
^
node repl.js
node repl.js
node repl.js
node repljs
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$ node repl.js
drone> client.takeoff();
true
drone> client.clockwise(0.5);
0.5
drone> client.stop();
true
drone> client.right(2);
2
drone> client.stop();
true
drone> client.land();
true
drone>
(To exit, press ^C again or type .exit)
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$ node repl.js
drone> client.takeoff();
true
drone> client.clockwise(0.5);
0.5
drone> client.stop();
true
drone> client.land();
true
drone>
(To exit, press ^C again or type .exit)
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$ node repl.js
drone> client.takeoff();
true
drone> client.clockwise(0.5);
0.5
drone> client.stop();
true
drone> client.land();
true
drone> client.counterclockwise(0.5);
TypeError: client.counterclockwise is not a function
at repl:1:8
at REPLServer.defaultEval (repl.js:264:27)
at bound (domain.js:287:14)
at REPLServer.runBound [as eval] (domain.js:300:12)
at REPLServer.<anonymous> (repl.js:431:12)
at emitOne (events.js:77:13)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:211:10)
at REPLServer.Interface._line (readline.js:550:8)
at REPLServer.Interface._ttyWrite (readline.js:827:14)
drone>
(To exit, press ^C again or type .exit)
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$ node repl.js
drone> client.after(5000,function(){this.clockwise(0.5);})
Client {
domain: null,
_events: { hovering: { [Function: g] listener: [Function] } },
_eventsCount: 1,
_maxListeners: undefined,
_options: {},
_udpControl:
UdpControl {
_sequenceNumber: 84,
_socket:
Socket {
domain: null,
_events: {},
_eventsCount: 0,
_maxListeners: undefined,
_handle: [Object],
_receiving: true,
_bindState: 2,
type: 'udp4',
fd: -42,
_reuseAddr: undefined,
_sendQueue: undefined },
_port: 5556,
_ip: '192.168.1.1',
defaultTimeout: 500,
_cmdCreator: AtCommandCreator {},
_cmds: [],
_blockingCmds: [],
_blocked: { state: 'NOT_BLOCKED', cmd: null, ackTimer: null } },
_udpNavdatasStream:
UdpNavdataStream {
domain: null,
_events: { error: [Function: bound ], data: [Function: bound ] },
_eventsCount: 2,
_maxListeners: undefined,
readable: true,
_socket:
Socket {
domain: null,
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
_handle: [Object],
_receiving: true,
_bindState: 2,
type: 'udp4',
fd: -42,
_reuseAddr: undefined,
_sendQueue: undefined },
_port: 5554,
_ip: '192.168.1.1',
_initialized: true,
_parseNavdata:
{ [Function: parseNavdata]
OPTION_PARSERS: [Object],
NAVDATA_HEADER1: 1432778632,
NAVDATA_HEADER2: 1432778633,
DRONE_STATES: [Object],
OPTION_IDS: [Object],
CONTROL_STATES: [Object],
FLY_STATES: [Object] },
_timeout: 100,
_timer:
{ _called: false,
_idleTimeout: 100,
_idlePrev: [Object],
_idleNext: [Object],
_idleStart: 1536,
_onTimeout: [Function: bound ],
_repeat: null },
_sequenceNumber: 0 },
_pngStream: null,
_tcpVideoStream: null,
_interval:
{ _called: true,
_idleTimeout: 30,
_idlePrev:
Timer {
'0': [Function: listOnTimeout],
_idleNext: [Circular],
_idlePrev: [Circular],
msecs: 30 },
_idleNext:
Timer {
'0': [Function: listOnTimeout],
_idleNext: [Circular],
_idlePrev: [Circular],
msecs: 30 },
_idleStart: 1601,
_onTimeout: [Function: wrapper],
_repeat: [Function: bound ] },
_ref: { fly: true },
_pcmd: {},
_repeaters: [],
_afterOffset: 27000,
_disableEmergency: true,
_lastState: 'CTRL_LANDED',
_lastBattery: 100,
_lastAltitude: 0 }
drone>
(To exit, press ^C again or type .exit)
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$ node repl.js
drone> client.createRepl();
drone> Repl {
_client:
Client {
domain: null,
_events: { hovering: [Object] },
_eventsCount: 1,
_maxListeners: undefined,
_options: {},
_udpControl:
UdpControl {
_sequenceNumber: 168,
_socket: [Object],
_port: 5556,
_ip: '192.168.1.1',
defaultTimeout: 500,
_cmdCreator: AtCommandCreator {},
_cmds: [],
_blockingCmds: [],
_blocked: [Object] },
_udpNavdatasStream:
UdpNavdataStream {
domain: null,
_events: [Object],
_eventsCount: 2,
_maxListeners: undefined,
readable: true,
_socket: [Object],
_port: 5554,
_ip: '192.168.1.1',
_initialized: true,
_parseNavdata: [Object],
_timeout: 100,
_timer: [Object],
_sequenceNumber: 0 },
_pngStream: null,
_tcpVideoStream: null,
_interval:
{ _called: true,
_idleTimeout: 30,
_idlePrev: [Object],
_idleNext: [Object],
_idleStart: 3088,
_onTimeout: [Function: wrapper],
_repeat: [Function: bound ] },
_ref: { fly: true },
_pcmd: {},
_repeaters: [],
_afterOffset: 22000,
_disableEmergency: true,
_lastState: 'CTRL_LANDED',
_lastBattery: 100,
_lastAltitude: 0 },
_repl:
REPLServer {
_domain:
Domain {
domain: null,
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
members: [] },
useGlobal: false,
ignoreUndefined: false,
replMode: Symbol(repl-sloppy),
_inTemplateLiteral: false,
rli: [Circular],
eval: { [Function: runBound] domain: [Object] },
inputStream:
ReadStream {
_connecting: false,
_hadError: false,
_handle: [Object],
_parent: null,
_host: null,
_readableState: [Object],
readable: true,
domain: null,
_events: [Object],
_eventsCount: 6,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
destroyed: false,
bytesRead: 21,
_bytesDispatched: 0,
_sockname: null,
_writev: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
isRaw: true,
isTTY: true,
fd: 0,
read: [Function],
_consuming: true },
outputStream:
WriteStream {
_connecting: false,
_hadError: false,
_handle: [Object],
_parent: null,
_host: null,
_readableState: [Object],
readable: false,
domain: null,
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
_writableState: [Object],
writable: true,
allowHalfOpen: false,
destroyed: false,
bytesRead: 0,
_bytesDispatched: 60,
_sockname: null,
_writev: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
columns: 103,
rows: 49,
_type: 'tty',
fd: 1,
_isStdio: true,
destroySoon: [Function],
destroy: [Function] },
lines: [ level: [] ],
context:
{ DTRACE_NET_SERVER_CONNECTION: [Function],
DTRACE_NET_STREAM_END: [Function],
DTRACE_HTTP_SERVER_REQUEST: [Function],
DTRACE_HTTP_SERVER_RESPONSE: [Function],
DTRACE_HTTP_CLIENT_REQUEST: [Function],
DTRACE_HTTP_CLIENT_RESPONSE: [Function],
global: [Circular],
process: [Object],
GLOBAL: [Object],
root: [Object],
Buffer: [Object],
clearImmediate: [Function],
clearInterval: [Function],
clearTimeout: [Function],
setImmediate: [Function],
setInterval: [Function],
setTimeout: [Function],
console: [Object],
module: [Object],
require: [Object],
domain: null,
after: [Function: bound ],
createRepl: [Function: bound ],
createPngStream: [Function: bound ],
getPngStream: [Function: bound ],
getVideoStream: [Function: bound ],
resume: [Function: bound ],
disableEmergency: [Function: bound ],
takeoff: [Function: bound ],
land: [Function: bound ],
stop: [Function: bound ],
calibrate: [Function: bound ],
ftrim: [Function: bound ],
config: [Function: bound ],
ctrl: [Function: bound ],
_eventsCount: 4,
_maxListeners: undefined,
_writableState: [Object],
writable: true,
allowHalfOpen: false,
destroyed: false,
bytesRead: 0,
_bytesDispatched: 60,
_sockname: null,
_writev: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
columns: 103,
rows: 49,
_type: 'tty',
fd: 1,
_isStdio: true,
destroySoon: [Function],
destroy: [Function] },
input:
ReadStream {
_connecting: false,
_hadError: false,
_handle: [Object],
_parent: null,
_host: null,
_readableState: [Object],
readable: true,
domain: null,
_events: [Object],
_eventsCount: 6,
_maxListeners: undefined,
_writableState: [Object],
writable: false,
allowHalfOpen: false,
destroyed: false,
bytesRead: 21,
_bytesDispatched: 0,
_sockname: null,
_writev: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
isRaw: true,
isTTY: true,
fd: 0,
read: [Function],
_consuming: true },
historySize: 30,
completer: [Function: complete],
_initialPrompt: 'drone> ',
_prompt: 'drone> ',
terminal: true,
line: '',
cursor: 0,
history: [],
historyIndex: -1,
commands:
{ break: [Object],
clear: [Object],
exit: [Object],
help: [Object],
save: [Object],
load: [Object] },
writer: [Function],
useColors: true,
prevRows: 0 },
_nodeEval:
{ [Function: runBound]
domain:
Domain {
domain: null,
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
members: [] } } }
drone>
(To exit, press ^C again or type .exit)
drone>
(To exit, press ^C again or type .exit)
drone>
^C
Annabels-MacBook-Air-2:~ annabelhughes$