Skip to content
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

Throttling broken in RO #12

Closed
Noiredd opened this issue Sep 21, 2017 · 1 comment
Closed

Throttling broken in RO #12

Noiredd opened this issue Sep 21, 2017 · 1 comment
Labels
Milestone

Comments

@Noiredd
Copy link
Owner

Noiredd commented Sep 21, 2017

Found by @Patrykz94 and posted as a comment in #10:

I noticed that the gLimit doesn't seem to hold the acceleration at the specified value, instead the acceleration is slowed down a bit. I'm guessing that's because Pegas doesn't take in to account the engine throttleability. This isn't a problem in stock as all engines can throttle down to 0 but it is in RO.

The throttle setting and the throttle indicator (by the NavBall) and even the thrust limiter slider in right click menu are not setting/showing the "actual" engine throttle, they control the usable range of the engine (range between minimum throttle and maximum throttle), with the exception that setting it to 0 will cause a shutdown. What I mean by that is if an engine can only be throttled down to a minimum of 50% then when you set the "throttle" via kOS or using the keyboard to 0.5 (slider exactly half way through the scale) then the engine will actually produce 75% of it's max thrust, which is 50% of it's throttle range. You can verify this by looking at the "Current Throttle" field in engine right click menu. You can see it on this video here.

I suggest adding another (optional) parameter to "engines" where users can specify the minimum throttle of an engine and Pegas could calculate what throttle setting it needs to use to acheive the desired result. In the script used in video above, I just made a multiplier (1 / (1 - (minThrottle * 0.01))), minThrottle being a percentage, then I set throttle to (multiplier * desiredThrottle) - (multiplier * minThrottle), desiredThrottle first being clamped between minimum and maximum values.

This essentially breaks constant acceleration mode.

I was convinced that RO clamps throttle setting, in the sense that if an engine throttles in 50-100% range and I set 70% then it goes on 70%, and if I set 30% then it stays at 50%, and 0 causes shutdown. But the scaling logic is just baffling... I have to admit, I can't imagine why is it designed this way 😕

Now I understand why my const-acceleration stages were often a fraction or even a few seconds off (predicted vs actual burn time).

@Noiredd Noiredd added this to the v1.1 milestone Sep 21, 2017
@Noiredd
Copy link
Owner Author

Noiredd commented Oct 8, 2017

Fixed in 0c96c47. Bear in mind that this neccessitated inputting an additional vehicle key, minThrottle, to inform PEGAS of the engine throttle limitations.

@Noiredd Noiredd closed this as completed Oct 8, 2017
@Noiredd Noiredd removed the focus label Oct 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant