fix: default depressoin transition is not 10deg, it's 0

This commit is contained in:
TrèsAbhi committed 2024-10-24 15:35:01 -05:00
1 parent f6cf4a87f9
commit 515791e52f
1 file changed
+1 -1
@@ -26,7 +26,7 @@ export function applyPitchYawLimits(
const elevationBuff = verticalStabilizer ? degToRad(4) : 0; const elevationBuff = verticalStabilizer ? degToRad(4) : 0;
let lowerPitch = -degToRad(pitchLimits.max) - depressionBuff; let lowerPitch = -degToRad(pitchLimits.max) - depressionBuff;
let upperPitch = -degToRad(pitchLimits.min) + elevationBuff; let upperPitch = -degToRad(pitchLimits.min) + elevationBuff;
const transition = degToRad(pitchLimits.transition ?? 10); const transition = degToRad(pitchLimits.transition ?? 0);
if (pitchLimits.back) { if (pitchLimits.back) {
const range = degToRad(pitchLimits.back.range); const range = degToRad(pitchLimits.back.range);