From 45fcc9d14da40c1f395f513cffa70fbe42d8a587 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 20 Mar 2013 14:00:42 +0100 Subject: [PATCH] YPR: Fix for turnLeft / turnRight swap bug Thanks for reporting this, Dan! --- history.txt | 5 ++++- ypr.js | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/history.txt b/history.txt index 930a8dbc..581df240 100755 --- a/history.txt +++ b/history.txt @@ -1542,4 +1542,7 @@ ______ 130320 ------ -* GUI: deactivated motd and cloudmsg mechanism for now (has some issues) \ No newline at end of file +* GUI: deactivated motd and cloudmsg mechanism for now (has some issues) +* Updated Portuguese translation, thanks, Manuel! +* Updated all translations for %keyHat and %msgHat specs +* YPR: fixed turnLeft / turnRight swap bug \ No newline at end of file diff --git a/ypr.js b/ypr.js index f167008c..f392e03a 100644 --- a/ypr.js +++ b/ypr.js @@ -8,6 +8,8 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +last change: 2013-March-20 by Jens Moenig + */ var sb = (function (sb) { @@ -824,8 +826,8 @@ var sb = (function (sb) { }, blockSelectors = { // Motion': '', 'forward:': 'forward', - 'turnLeft:': 'turn', - 'turnRight:': 'turnLeft', + 'turnLeft:': 'turnLeft', + 'turnRight:': 'turn', 'heading:': 'setHeading', 'pointTowards:': 'doFaceTowards', 'gotoX:y:': 'gotoXY',