From adb4c0482cf6cc23ca095287a803e83d5fe2d7f5 Mon Sep 17 00:00:00 2001 From: Evelyn Eastmond Date: Tue, 23 Apr 2019 19:05:12 -0400 Subject: [PATCH] Reversing the sign on Motor A reported position. --- src/extensions/scratch3_boost/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/extensions/scratch3_boost/index.js b/src/extensions/scratch3_boost/index.js index f36744740..8c7d71830 100644 --- a/src/extensions/scratch3_boost/index.js +++ b/src/extensions/scratch3_boost/index.js @@ -1888,7 +1888,11 @@ class Scratch3BoostBlocks { return false; } if (portID && this._peripheral.motor(portID)) { - return MathUtil.wrapClamp(this._peripheral.motor(portID).position, 0, 360); + let val = MathUtil.wrapClamp(this._peripheral.motor(portID).position, 0, 360); + if (portID === BoostPort.A) { + val *= -1; + } + return val; } return 0; }