@@ -257,6 +257,7 @@ GraphConfig.load = function(config) {
257257 }
258258
259259 const gyroScaleMargin = 1.20 ; // Give a 20% margin for gyro graphs
260+ const highResolutionScale = sysConfig . blackbox_high_resolution > 0 ? 10 : 1 ;
260261
261262 try {
262263 if ( fieldName . match ( / ^ m o t o r \[ / ) ) {
@@ -302,7 +303,7 @@ GraphConfig.load = function(config) {
302303 return {
303304 offset : 0 ,
304305 power : 0.25 , /* Make this 1.0 to scale linearly */
305- inputRange : maxDegreesSecond ( gyroScaleMargin ) , // Maximum grad/s + 20%
306+ inputRange : maxDegreesSecond ( gyroScaleMargin * highResolutionScale ) , // Maximum grad/s + 20%
306307 outputRange : 1.0
307308 } ;
308309 } else if ( fieldName . match ( / ^ a x i s .+ \[ / ) ) {
@@ -314,16 +315,16 @@ GraphConfig.load = function(config) {
314315 } ;
315316 } else if ( fieldName == "rcCommand[3]" ) { // Throttle
316317 return {
317- offset : - 1500 ,
318+ offset : - 1500 * highResolutionScale ,
318319 power : 1.0 ,
319- inputRange : 500 ,
320+ inputRange : 500 * highResolutionScale ,
320321 outputRange : 1.0
321322 } ;
322323 } else if ( fieldName . match ( / ^ r c C o m m a n d \[ / ) ) {
323324 return {
324325 offset : 0 ,
325326 power : 0.25 ,
326- inputRange : 500 * gyroScaleMargin , // +20% to let compare in the same scale with the rccommands
327+ inputRange : 500 * highResolutionScale * gyroScaleMargin , // +20% to let compare in the same scale with the rccommands
327328 outputRange : 1.0
328329 } ;
329330 } else if ( fieldName == "heading[2]" ) {
@@ -771,7 +772,7 @@ GraphConfig.load = function(config) {
771772 EXAMPLE_GRAPHS . push ( { label : "Gyros" , fields : [ "gyroADC[all]" ] } ) ;
772773 }
773774 if ( ! flightLog . isFieldDisabled ( ) . SETPOINT ) {
774- EXAMPLE_GRAPHS . push ( { label : "RC Rates " , fields : [ "rcCommands[all]" ] } ) ;
775+ EXAMPLE_GRAPHS . push ( { label : "Setpoint " , fields : [ "rcCommands[all]" ] } ) ;
775776 }
776777 if ( ! flightLog . isFieldDisabled ( ) . RC_COMMANDS ) {
777778 EXAMPLE_GRAPHS . push ( { label : "RC Command" , fields : [ "rcCommand[all]" ] } ) ;
0 commit comments