Skip to content

Commit 985cb3b

Browse files
committed
Further updates
1 parent 1092c04 commit 985cb3b

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

src/flightlog_fields_presenter.js

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ FlightLogFieldPresenter.adjustDebugDefsList = function (
12521252
"debug[7]": "Not Used",
12531253
};
12541254
DEBUG_FRIENDLY_FIELD_NAMES.GPS_RESCUE_THROTTLE_PID = {
1255-
"debug[all]": "GPS Rescue Altitude",
1255+
"debug[all]": "GPS Rescue Throttle PID",
12561256
"debug[0]": "Throttle P",
12571257
"debug[1]": "Throttle D",
12581258
"debug[2]": "Altitude",
@@ -1287,17 +1287,6 @@ FlightLogFieldPresenter.adjustDebugDefsList = function (
12871287
"debug[6]": "Not Used",
12881288
"debug[7]": "Not Used",
12891289
};
1290-
DEBUG_FRIENDLY_FIELD_NAMES.GPS_RESCUE_THROTTLE_PID = {
1291-
"debug[all]": "GPS Rescue throttle PIDs",
1292-
"debug[0]": "Throttle P",
1293-
"debug[1]": "Throttle D",
1294-
"debug[2]": "Altitude",
1295-
"debug[3]": "Target altitude",
1296-
"debug[4]": "Not Used",
1297-
"debug[5]": "Not Used",
1298-
"debug[6]": "Not Used",
1299-
"debug[7]": "Not Used",
1300-
};
13011290
}
13021291

13031292
if (semver.gte(firmwareVersion, '4.5.0')) {
@@ -1313,7 +1302,7 @@ FlightLogFieldPresenter.adjustDebugDefsList = function (
13131302
"debug[7]": "dcmKp gain",
13141303
};
13151304
DEBUG_FRIENDLY_FIELD_NAMES.GPS_RESCUE_THROTTLE_PID = {
1316-
"debug[all]": "GPS Rescue throttle PIDs",
1305+
"debug[all]": "GPS Rescue throttle PID",
13171306
"debug[0]": "Throttle P",
13181307
"debug[1]": "Throttle D",
13191308
"debug[2]": "Altitude",
@@ -2163,7 +2152,9 @@ FlightLogFieldPresenter.decodeDebugFieldToFriendly = function (
21632152
case "GPS_RESCUE_THROTTLE_PID":
21642153
switch (fieldName) {
21652154
case "debug[0]": // Throttle P added uS
2166-
case "debug[1]": // Throttle D added * uS
2155+
case "debug[1]": // Throttle D added uS
2156+
case "debug[4]": // Throttle I added uS
2157+
case "debug[6]": // Throttle D before lp smoothing uS
21672158
return `${value.toFixed(0)} uS`;
21682159
case "debug[2]": // current altitude in m
21692160
case "debug[3]": // TARGET altitude in m
@@ -2912,6 +2903,8 @@ FlightLogFieldPresenter.ConvertDebugFieldValue = function (
29122903
switch (fieldName) {
29132904
case "debug[0]": // Throttle P added uS
29142905
case "debug[1]": // Throttle D added * uS
2906+
case "debug[4]": // Throttle I added uS
2907+
case "debug[6]": // Throttle D before lp smoothing uS
29152908
return value; // ' uS';
29162909
case "debug[2]": // current altitude in m
29172910
case "debug[3]": // TARGET altitude in m

0 commit comments

Comments
 (0)