diff --git a/js/flightlog_fields_presenter.js b/js/flightlog_fields_presenter.js index 05d7d70..ead67b7 100644 --- a/js/flightlog_fields_presenter.js +++ b/js/flightlog_fields_presenter.js @@ -38,6 +38,11 @@ function FlightLogFieldPresenter() { 'gyroADC[1]': 'gyro[pitch]', 'gyroADC[2]': 'gyro[yaw]', + 'gyroRaw[all]': 'gyroRAW', + 'gyroRaw[0]': 'gyroRAW[roll]', + 'gyroRaw[1]': 'gyroRAW[pitch]', + 'gyroRaw[2]': 'gyroRAW[yaw]', + 'accSmooth[all]': 'acc', 'accSmooth[0]': 'acc[X]', 'accSmooth[1]': 'acc[Y]', @@ -183,6 +188,11 @@ function FlightLogFieldPresenter() { case 'gyroADC[2]': return value.toFixed(0) + ' deg/s'; + case 'gyroRaw[0]': + case 'gyroRaw[1]': + case 'gyroRaw[2]': + return value.toFixed(0) + ' deg/s'; + case 'axisError[0]': case 'axisError[1]': case 'axisError[2]': diff --git a/js/graph_config.js b/js/graph_config.js index ec71408..6e0b2b1 100755 --- a/js/graph_config.js +++ b/js/graph_config.js @@ -253,7 +253,14 @@ GraphConfig.load = function(config) { return { offset: 0, power: 0.25, /* Make this 1.0 to scale linearly */ - inputRange: 1000, //(2.0e-3 * Math.PI/180) / sysConfig.gyroScale, + inputRange: (2.0e-3 * Math.PI/180) / sysConfig.gyroScale, //scales based on max deg/s logged + outputRange: 1.0 + }; + } else if (fieldName.match(/^gyroRaw\[/)) { + return { + offset: 0, + power: 0.25, /* Make this 1.0 to scale linearly */ + inputRange: (2.0e-3 * Math.PI/180) / sysConfig.gyroScale, //scales based on max deg/s logged outputRange: 1.0 }; } else if (fieldName.match(/^accSmooth\[/)) { @@ -274,7 +281,7 @@ GraphConfig.load = function(config) { return { offset: 0, power: 0.25, - inputRange: 1000, // Was 400 ? + inputRange: (2.0e-3 * Math.PI/180) / sysConfig.gyroScale, //scales based on max deg/s logged outputRange: 1.0 }; } else if (fieldName == "rcCommand[3]") { // Throttle