From 126beedf9c5da1c68c5ed458bcdab354112de3be Mon Sep 17 00:00:00 2001 From: Marc Egli Date: Fri, 23 Jan 2015 12:01:52 +0100 Subject: [PATCH] Allow negative current scales and allow an offset between 0 and 3.3V --- js/msp.js | 2 +- tabs/configuration.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/msp.js b/js/msp.js index 725004c7..d073534c 100644 --- a/js/msp.js +++ b/js/msp.js @@ -482,7 +482,7 @@ var MSP = { BF_CONFIG.board_align_roll = data.getInt16(6, 1); BF_CONFIG.board_align_pitch = data.getInt16(8, 1); BF_CONFIG.board_align_yaw = data.getInt16(10, 1); - BF_CONFIG.currentscale = data.getUint16(12, 1); + BF_CONFIG.currentscale = data.getInt16(12, 1); BF_CONFIG.currentoffset = data.getUint16(14, 1); break; case MSP_codes.MSP_SET_BF_CONFIG: diff --git a/tabs/configuration.html b/tabs/configuration.html index 2cc07159..7d7783e4 100644 --- a/tabs/configuration.html +++ b/tabs/configuration.html @@ -198,13 +198,13 @@