Skip to content

Remove VesselState MovingAverage values#2240

Merged
lamont-granquist merged 1 commit into
devfrom
lcg/remove-moving-averages
Jun 15, 2026
Merged

Remove VesselState MovingAverage values#2240
lamont-granquist merged 1 commit into
devfrom
lcg/remove-moving-averages

Conversation

@lamont-granquist

Copy link
Copy Markdown
Collaborator

I suspect that these are MovingAverages either due to very old 2012-era KSP having more single precision floats than doubles and this was a workaround to precision jittering, or else it was just premature optimization.

There's other places where the moving averages are deliberately being used to smooth out behavior.

I might be wrong and that the low pass input filter is necessary for some control theory reasons, but I'd rather find that by breaking it and push that requirement for smoothing explicitly down into the consumers.

I suspect that this might actually fix some bugs.

I suspect that these are MovingAverages either due to very old
2012-era KSP having more single precision floats than doubles and
this was a workaround to precision jittering, or else it was just
premature optimization.

There's other places where the moving averages are deliberately
being used to smooth out behavior.

I might be wrong and that the low pass input filter is necessary
for some control theory reasons, but I'd rather find that by breaking
it and push that requirement for smoothing explicitly down into
the consumers.

I suspect that this might actually fix some bugs.
@lamont-granquist

Copy link
Copy Markdown
Collaborator Author

I think they were introduced back in f85d41f

@lamont-granquist lamont-granquist merged commit 398ba66 into dev Jun 15, 2026
1 check passed
@lamont-granquist lamont-granquist deleted the lcg/remove-moving-averages branch June 15, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant