Merge pull request #1984 from evhan55/extensions/gdxfor-update-rate

Vernier gdxfor input rate change
This commit is contained in:
Evelyn Eastmond 2019-02-07 15:24:11 -05:00 committed by GitHub
commit 7e7326f474
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,6 +38,11 @@ const GDXFOR_SENSOR = {
SPIN_SPEED_Z: 7
};
/**
* The update rate, in milliseconds, for sensor data input from the peripheral.
*/
const GDXFOR_UPDATE_RATE = 100;
/**
* Threshold for pushing and pulling force, for the whenForcePushedOrPulled hat block.
* @type {number}
@ -226,7 +231,7 @@ class GdxFor {
});
// Start device
this._device.start(10); // Set the period to 10 milliseconds
this._device.start(GDXFOR_UPDATE_RATE);
});
}