Skip to content

Commit 65dbdc3

Browse files
authored
Added curves settings for axis_s log fields (for airplanes) (#789)
added curves settings for axis_s log fields (for airplanes)
1 parent 8e9e411 commit 65dbdc3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/flightlog_fields_presenter.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ const FRIENDLY_FIELD_NAMES = {
3232
"axisF[0]": "PID Feedforward [roll]",
3333
"axisF[1]": "PID Feedforward [pitch]",
3434
"axisF[2]": "PID Feedforward [yaw]",
35+
36+
"axisS[all]": "PID S",
37+
"axisS[0]": "PID S [roll]",
38+
"axisS[1]": "PID S [pitch]",
39+
"axisS[2]": "PID S [yaw]",
3540

3641
//Virtual field
3742
"axisSum[all]": "PID Sum",
@@ -1540,6 +1545,9 @@ FlightLogFieldPresenter.decodeFieldToFriendly = function (
15401545
case "axisF[0]":
15411546
case "axisF[1]":
15421547
case "axisF[2]":
1548+
case "axisS[0]":
1549+
case "axisS[1]":
1550+
case "axisS[2]":
15431551
return `${flightLog.getPIDPercentage(value).toFixed(1)} %`;
15441552

15451553
case "accSmooth[0]":
@@ -2222,6 +2230,9 @@ FlightLogFieldPresenter.ConvertFieldValue = function (
22222230
case "axisF[0]":
22232231
case "axisF[1]":
22242232
case "axisF[2]":
2233+
case "axisS[0]":
2234+
case "axisS[1]":
2235+
case "axisS[2]":
22252236
return toFriendly
22262237
? flightLog.getPIDPercentage(value)
22272238
: value / flightLog.getPIDPercentage(1.0);

0 commit comments

Comments
 (0)