Skip to content

Commit 58ccb0b

Browse files
demvladhaslinghuis
andauthored
The S component is added into PID sum curves data for wings (#817)
* the S component is added into PID sum data for wings * The extra semicoma is removed Co-authored-by: Mark Haslinghuis <[email protected]> --------- Co-authored-by: Mark Haslinghuis <[email protected]>
1 parent d13bfc9 commit 58ccb0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/flightlog.js

+6
Original file line numberDiff line numberDiff line change
@@ -644,18 +644,21 @@ export function FlightLog(logData) {
644644
fieldNameToIndex["axisI[0]"],
645645
fieldNameToIndex["axisD[0]"],
646646
fieldNameToIndex["axisF[0]"],
647+
fieldNameToIndex["axisS[0]"],
647648
],
648649
[
649650
fieldNameToIndex["axisP[1]"],
650651
fieldNameToIndex["axisI[1]"],
651652
fieldNameToIndex["axisD[1]"],
652653
fieldNameToIndex["axisF[1]"],
654+
fieldNameToIndex["axisS[1]"],
653655
],
654656
[
655657
fieldNameToIndex["axisP[2]"],
656658
fieldNameToIndex["axisI[2]"],
657659
fieldNameToIndex["axisD[2]"],
658660
fieldNameToIndex["axisF[2]"],
661+
fieldNameToIndex["axisS[2]"],
659662
],
660663
];
661664

@@ -797,6 +800,9 @@ export function FlightLog(logData) {
797800
: 0) +
798801
(axisPID[axis][3] !== undefined
799802
? srcFrame[axisPID[axis][3]]
803+
: 0) +
804+
(axisPID[axis][4] !== undefined
805+
? srcFrame[axisPID[axis][4]]
800806
: 0);
801807

802808
// Limit the PID sum by the limits defined in the header

0 commit comments

Comments
 (0)