Changing the input rate, resolves 1976.

This commit is contained in:
Evelyn Eastmond 2019-02-07 10:48:48 -05:00
parent 7f6fa5f272
commit 104e997b59

View file

@ -38,6 +38,11 @@ const GDXFOR_SENSOR = {
SPIN_SPEED_Z: 7 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. * Threshold for pushing and pulling force, for the whenForcePushedOrPulled hat block.
* @type {number} * @type {number}
@ -220,7 +225,7 @@ class GdxFor {
}); });
// Start device // Start device
this._device.start(10); // Set the period to 10 milliseconds this._device.start(GDXFOR_UPDATE_RATE);
}); });
} }