Closed Alexustas closed 8 years ago
Yes please!!!
No,
I am joking. I think the answer is "maybe". I am studying the modules now, and I will need to do some tests.
I can provide a variable same as the solar panels (retracting, extending, retracted, extended, broken) and I can provide a variable reporting gear position (0 = retracted, 1 = extended, in between is movement).
JSIInternalRPMButtons LandingGearState
, same as solar panels state (-1 = none, 0 = retracted, 1 = deployed, 2 = deploying, 3 = retracting, 4 = inoperable / broken). LandingGearPosition
returns 0 when gear are retracted, 1 when extended, otherwise a number between those indicating gear position.
On DropBox.
JSIInternalRPMButtons LandingGearState,
this variable does not track the rover wheels?
this variable does not track the rover wheels?
It tracks wheels with ModuleWheelDeployment.
I was hoping to use this variable also to keep track of damage rovers wheels
I was hoping to use this variable also to keep track of damage rovers wheels
Needs to be a different variable. ModuleWheelDamage tracks damage (and if it is repairable). I can add variables for it, also.
I can add variables for it, also.
I will be very grateful to you ))
JSIInternalRPMButtons GetWheelsDamaged
- returns true if any wheel is damaged. GetWheelsRepairable
- returns true if any wheel is repairable. GetWheelStress
- returns largest "stress percent" of the wheels. That is the name of the variable in the ModuleWheelDamage - I do not know if it is 0 - 1, or 0 - 100.
PLUGIN_JSIInternalRPMButtons:LandingGearState
always gives "-1"
PLUGIN_JSIInternalRPMButtons:GetWheelsRepairable
always show "1" regardless of whether all the wheels intact or all broken
PLUGIN_JSIInternalRPMButtons:GetWheelStress
works normal
What landing gear / wheels? I tested with one of the aircraft gear (Aeris 3A stock aircraft) and I got correct numbers for LandingGearState. If the wheels can not retract, then LandingGearState returns -1 - it only works with landing gear that can be extended / retracted.
GetWheelsRepairable means "can someone fix the wheels?", not "are wheels broken?". If it returns 1, then a Kerbal is allowed to repair the wheel if the wheel is broken.
What does GetWheelStress return? is it 0-1 or 0-100?
What landing gear / wheels?
this is my test "rover"
If it returns 1, then a Kerbal is allowed to repair...
ok
What does GetWheelStress return? is it 0-1 or 0-100?
in my case it return about 10...14, so "1-100"
Okay. LandingGearState is always -1, because wheels can not retract. Only GetWheelsDamaged is going to work for rover wheels.
PLUGIN_JSIInternalRPMButtons:LandingGearState always gives "-1"
Oh, I made a mistake in that post, SORRY (.
I actually used the variable "PLUGIN_JSIInternalRPMButtons: GetWheelsDamage"
and it always returns "-1"
that's broken wheel at the rover
that's what the display shows (Wheel dam: -1 )
Wheel dam:{0} $&$ PLUGIN_JSIInternalRPMButtons:GetWheelsDamage
Wheel repair:{0} $&$ PLUGIN_JSIInternalRPMButtons:GetWheelsRepairable
Wheel stress:{0} $&$ PLUGIN_JSIInternalRPMButtons:GetWheelStress
I wonder if the wheel damage in that module is inaccurate. I will have to try some more tests.
Oh! try GetWheelsDamaged, not GetWheelsDamage?
Oh! you're right. stupid mistake, I'm sorry. everything works fine now
Could we add the ability to set/get brake force?
Added JSIInternalRPMButtons GetWheelBrakes
and SetWheelBrakes
. Get method returns a number from 0 - 200 that is the averaged setting of the brake tweakable on enabled wheels. Set method takes a number from 0 - 200 and applies it to all enabled wheel brakes.
Thank you!
this is a very cool feature. Can you make the same variable for the landing gear/wheels??