Merge pull request #119 from tresabhi/main

This commit is contained in:
TrèsAbhi authored and GitHub committed 2024-05-22 13:06:10 -05:00
commit fda4f76be3
9 files changed
+118 -66

No files matched your search

+4 -3
View File
@@ -19,9 +19,10 @@ export function applyPitchYawLimits(
);
}
const pitchBuff = verticalStabilizer ? degToRad(3) : 0;
let lowerPitch = -degToRad(pitchLimits.max) - pitchBuff;
let upperPitch = -degToRad(pitchLimits.min) + pitchBuff;
const depressionBuff = verticalStabilizer ? degToRad(4) : 0;
const elevationBuff = verticalStabilizer ? degToRad(3) : 0;
let lowerPitch = -degToRad(pitchLimits.max) - depressionBuff;
let upperPitch = -degToRad(pitchLimits.min) + elevationBuff;
const transition = degToRad(pitchLimits.transition ?? 10);
if (pitchLimits.back) {