zero() reset the kalman filter

Esse commit está contido em:
Laurent Eschenauer
2013-06-26 14:20:59 +02:00
commit af5882cc16
2 arquivos alterados com 18 adições e 0 exclusões
+8
Ver Arquivo
@@ -107,5 +107,13 @@ test('Controller', {
ctrl.left(1, cb);
assert(ctrl.right.calledWith(-1, cb));
},
'zero reset the kalman filter': function() {
var ctrl = new autonomy.Controller(this.mockClient);
sinon.spy(ctrl._ekf, 'reset');
ctrl.zero();
assert(ctrl._ekf.reset.calledOnce);
}
});