-
Notifications
You must be signed in to change notification settings - Fork 736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix gforce avg on switching to aircraft #4955
Conversation
@@ -14,6 +14,7 @@ | |||
|
|||
//Reset forces array | |||
GVAR(GForces) = []; | |||
for "_i" from 1 to 30 do {GVAR(GForces) pushBack 1}; // init array to full array of neutral g-forces |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't that be better by just writing the array out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't feel like counting out 30 zeros.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😆 is fine either way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GVAR(GForces) = [];
GVAR(GForces) resize 30;
GVAR(GForces) = GVAR(GForces) apply {1};
* Fix gforce avg on switching to aircraft * Dont use for-loop for neutral g-forces array
Fix #4952
gforces averages the last 6 seconds
on zeus RC it would only use the last 0.2 seconds, so it could spike high