From 6a4255782d02a6b96c6c5b2445117166fde4d9f9 Mon Sep 17 00:00:00 2001 From: UAV Tech Date: Sat, 6 Apr 2024 13:52:29 -0400 Subject: [PATCH] Added scaling for Fixed Wing NAV traces. --- js/graph_config.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/js/graph_config.js b/js/graph_config.js index 7d8a46d..6a97911 100755 --- a/js/graph_config.js +++ b/js/graph_config.js @@ -415,6 +415,31 @@ GraphConfig.load = function(config) { inputRange: minMaxValues.inputRange * 1.75, outputRange: minMaxValues.outputRange, }; + //Altitude NAV position data Fixed Wing + } else if (fieldName.match(/^fwAlt*/)) { + var minMaxValues = getMinMax("fwAltOut"); + return { + offset: 0, + power: minMaxValues.power, + inputRange: minMaxValues.inputRange * 1.75, + outputRange: minMaxValues.outputRange, + }; + } else if (fieldName.match(/^fwPos*/)) { + var minMaxValues = getMinMax("fwPosOut"); + return { + offset: 0, + power: minMaxValues.power, + inputRange: minMaxValues.inputRange * 1.75, + outputRange: minMaxValues.outputRange, + }; + } else if (fieldName.match(/^attitude\[/)) { + var minMaxValues = getMinMax("attitude[2]"); + return { + offset: 0, + power: minMaxValues.power, + inputRange: minMaxValues.inputRange * 1.75, + outputRange: minMaxValues.outputRange, + }; } else if (fieldName.match(/^debug.*/) && sysConfig.debug_mode!=null) { var debugModeName = DEBUG_MODE[sysConfig.debug_mode];