mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Renaming LONG_RAMP to RAMP and adding comment.
This commit is contained in:
parent
f45539280a
commit
728e5e2d12
1 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ const Ev3Args = {
|
||||||
LAYER: 0x00, // always 0, chained EV3s not supported
|
LAYER: 0x00, // always 0, chained EV3s not supported
|
||||||
COAST: 0x00,
|
COAST: 0x00,
|
||||||
BRAKE: 0x01,
|
BRAKE: 0x01,
|
||||||
LONG_RAMP: 50,
|
RAMP: 50, // time in milliseconds
|
||||||
DO_NOT_CHANGE_TYPE: 0
|
DO_NOT_CHANGE_TYPE: 0
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -301,7 +301,7 @@ class EV3Motor {
|
||||||
const port = this._portMask(this._index);
|
const port = this._portMask(this._index);
|
||||||
let n = milliseconds;
|
let n = milliseconds;
|
||||||
let speed = this._power * this._direction;
|
let speed = this._power * this._direction;
|
||||||
const ramp = Ev3Args.LONG_RAMP;
|
const ramp = Ev3Args.RAMP;
|
||||||
|
|
||||||
let byteCommand = [];
|
let byteCommand = [];
|
||||||
byteCommand[0] = Ev3Opcode.OPOUTPUT_TIME_SPEED;
|
byteCommand[0] = Ev3Opcode.OPOUTPUT_TIME_SPEED;
|
||||||
|
|
Loading…
Reference in a new issue