mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Merge pull request #1984 from evhan55/extensions/gdxfor-update-rate
Vernier gdxfor input rate change
This commit is contained in:
commit
7e7326f474
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}
|
||||
|
@ -226,7 +231,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