-
Notifications
You must be signed in to change notification settings - Fork 228
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
Fuel Transfer #598
Comments
If I recall, I think the GUI has a fixed transfer rate that varies depending on the sizes of the tanks or something. I know I've seen it where large tanks transfer fast and small tanks transfer slow. But the point is that there is probably a max rate we should support so we don't just instantly teleport fuel immediately around. I'd prefer an interface like this: Return an object representing a particular resource movement, like so:
Then actually control the start/stop of the transfer like so:
And of course you can query the transfer for how much resource it has to go yet.
thisMove would have the following information taken right from its constructor:
And it would have the following values for its current state
I picture the algorithm being that a TRANSFER is an object that responds to Update()s, or FixedUpdate()s, and each update, we have it do this pseudocode:
|
Do you think anyone is going to want to actually configure the rate? I thought about adding it too and then wondered if i was doing what engineers do :) This is going to be a fun bit of code. |
The only reason for allowing a slower rate is when you want to do the fiddly job of balancing two tanks and making them equal. Trying to do that via the user GUI is such a PITA because it moves too far in each little click. I imagine a script would have an easier time of it if it could slow the rate down and thus catch it exactly at the right moment. Wait, no that's not a problem - because we can tell the transfer to only transfer the desired amount of fuel and just run it until it's done. |
I, for one, would definitely use proportional control to set the rate relative to the amount I want to transfer at any given moment. (But, I'm an engineer, and that probably also counts as doing what engineers do.) (The immediate use case I envisioned for this, as Dunbaratu mentioned, would be for balancing of fuel tanks.) |
I think that now that docking is possible I would like to tackle fuel transfers. This would involve two structures
The goal of elements ( one that has never worked becuase i was stubborn ) is to give you access to a list of the docked 'elements' of a craft. Something like
I know that this can work because of an old mod that dissapeared in the Spaceport apocalypse called vfm fuel panel that looked like this
http://imgur.com/a/xbpIu
i saved the code from this mod and i am almost finished getting the element list working in kOS
once you are able to get a handle on some combination of part/part element/element part/element it would be nice to have a function to the effect of.
VFM had other types of transfers for "reserve this amount" and "transfer x%". I think that users can calculate how much to transfer.
There would have to be some kind of transfer rate and because it is not instantaneous there would have to be a way to figure out if you are done
or the craft would have yet another suffix
Anybody have any thoughts?
The text was updated successfully, but these errors were encountered: