Skip to content

Commit 15b199d

Browse files
committed
Fix gps rescue throttle pid gains
1 parent ad79fbc commit 15b199d

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

js/flightlog_fields_presenter.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,13 @@ function FlightLogFieldPresenter() {
678678
'debug[2]':'Notch 3 Center Freq [dbg-axis]',
679679
'debug[3]':'Gyro Pre Dyn Notch [dbg-axis]',
680680
};
681+
DEBUG_FRIENDLY_FIELD_NAMES.GPS_RESCUE_THROTTLE_PID = {
682+
'debug[all]':'GPS Rescue Throttle PID',
683+
'debug[0]':'Throttle P',
684+
'debug[1]':'Throttle I',
685+
'debug[2]':'Throttle D',
686+
'debug[3]':'Altitude',
687+
};
681688
} else if (semver.gte(firmwareVersion, '4.2.0')) {
682689
DEBUG_FRIENDLY_FIELD_NAMES.FF_INTERPOLATED = {
683690
'debug[all]':'Feedforward [roll]',

js/graph_config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,33 @@ GraphConfig.load = function(config) {
736736
default:
737737
return getCurveForMinMaxFields(fieldName);
738738
}
739+
case 'GPS_RESCUE_THROTTLE_PID':
740+
switch (fieldName) {
741+
case 'debug[0]': // Throttle P
742+
return {
743+
offset: 0,
744+
power: 1.0,
745+
inputRange: 500,
746+
outputRange: 1.0,
747+
};
748+
case 'debug[1]': // Throttle I
749+
return {
750+
offset: 0,
751+
power: 1.0,
752+
inputRange: 500,
753+
outputRange: 1.0,
754+
};
755+
case 'debug[2]': // Throttle D
756+
return {
757+
offset: 0,
758+
power: 1.0,
759+
inputRange: 500,
760+
outputRange: 1.0,
761+
};
762+
case 'debug[0]': // Altitude
763+
default:
764+
return getCurveForMinMaxFields(fieldName);
765+
}
739766
}
740767
}
741768
// if not found above then

0 commit comments

Comments
 (0)