YPR: Fix for turnLeft / turnRight swap bug

Thanks for reporting this, Dan!
pull/3/merge
jmoenig 2013-03-20 14:00:42 +01:00
rodzic 7fb0972001
commit 45fcc9d14d
2 zmienionych plików z 8 dodań i 3 usunięć

Wyświetl plik

@ -1542,4 +1542,7 @@ ______
130320
------
* GUI: deactivated motd and cloudmsg mechanism for now (has some issues)
* 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

6
ypr.js
Wyświetl plik

@ -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',