Added initial autonomy mission class
Esse commit está contido em:
+12
-4
@@ -1,12 +1,20 @@
|
||||
var autonomy = exports;
|
||||
var ardrone = require('ar-drone');
|
||||
|
||||
exports.StateEstimator = require('./lib/StateEstimator');
|
||||
exports.EKF = require('./lib/EKF');
|
||||
exports.Camera = require('./lib/Camera');
|
||||
exports.Controller = require('./lib/Controller');
|
||||
exports.Mission = require('./lib/Mission');
|
||||
|
||||
exports.estimateState = function(client, options) {
|
||||
var estimator = new autonomy.StateEstimator(client, options);
|
||||
return estimator;
|
||||
exports.control = function(client, options) {
|
||||
return new autonomy.Controller(client, options);
|
||||
}
|
||||
|
||||
exports.createMission = function(options) {
|
||||
var client = ardrone.createClient(options);
|
||||
var control = new autonomy.Controller(client, options);
|
||||
var mission = new autonomy.Mission(client, control, options);
|
||||
|
||||
return mission;
|
||||
}
|
||||
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário