From e4d9f9cdffd99d5a5d87c44bfe09996a734f03fd Mon Sep 17 00:00:00 2001 From: Valerie Young Date: Tue, 11 Dec 2018 12:31:42 -0500 Subject: [PATCH] tilt to speed --- src/extensions/scratch3_goforce/index.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/extensions/scratch3_goforce/index.js b/src/extensions/scratch3_goforce/index.js index d52d1b238..9290b5885 100644 --- a/src/extensions/scratch3_goforce/index.js +++ b/src/extensions/scratch3_goforce/index.js @@ -85,11 +85,11 @@ class Scratch3GoForceBlocks { } }, { - opcode: 'whenTiltCompare', + opcode: 'whenAngularSpeedCompare', text: formatMessage({ - id: 'goforce.whenTitleCompare', - default: 'when tilt [DIRECTION] [COMPARE] [VALUE] rad/s', - description: 'when the value measured by the acceleration sensor is compared to some value' + id: 'goforce.whenAngularSpeedCompare', + default: 'when angular speed [DIRECTION] [COMPARE] [VALUE] rad/s', + description: 'when the value measured by the gyroscope sensor is compared to some value' }), blockType: BlockType.HAT, arguments: { @@ -146,10 +146,10 @@ class Scratch3GoForceBlocks { } }, { - opcode: 'getTilt', + opcode: 'getAngularSpeed', text: formatMessage({ - id: 'goforce.getTitle', - default: 'tilt [DIRECTION]', + id: 'goforce.getAngularSpeed', + default: 'angular speed [DIRECTION]', description: 'gets tilt' }), blockType: BlockType.REPORTER, @@ -181,7 +181,7 @@ class Scratch3GoForceBlocks { whenAccelerationCompare () { return Promise.resolve(); } - whenTiltCompare () { + whenAngularSpeedCompare () { return Promise.resolve(); } whenForceCompare () { @@ -190,7 +190,7 @@ class Scratch3GoForceBlocks { getAcceleration () { return Promise.resolve(); } - getTilt () { + getAngularSpeed () { return Promise.resolve(); } getForce () {