mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Changing the input rate, resolves 1976.
This commit is contained in:
parent
7f6fa5f272
commit
104e997b59
1 changed files with 6 additions and 1 deletions
|
@ -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}
|
||||
|
@ -220,7 +225,7 @@ class GdxFor {
|
|||
});
|
||||
|
||||
// Start device
|
||||
this._device.start(10); // Set the period to 10 milliseconds
|
||||
this._device.start(GDXFOR_UPDATE_RATE);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue