Table of Contents

Class Data_WheelMotor

Namespace
KSP.Modules
Assembly
Assembly-CSharp.dll
public sealed class Data_WheelMotor : ModuleData
Inheritance
Data_WheelMotor
Inherited Members
Extension Methods

Constructors

Data_WheelMotor()

public Data_WheelMotor()

Fields

DriveInput

[KSPState]
public float DriveInput

Field Value

float

MaxDriveTorque

[KSPState]
public float MaxDriveTorque

Field Value

float

MaxTorque

[KSPState]
public float MaxTorque

Field Value

float

MotorDriveState

[KSPState]
public Data_WheelMotor.MotorState MotorDriveState

Field Value

Data_WheelMotor.MotorState

MotorOperative

[KSPState]
public bool MotorOperative

Field Value

bool

MotorPhysXActive

[KSPState]
public bool MotorPhysXActive

Field Value

bool

RequestConfig

public ResourceFlowRequestCommandConfig RequestConfig

Field Value

ResourceFlowRequestCommandConfig

ResourceFractionOutput

[KSPState]
public double ResourceFractionOutput

Field Value

double

autoTorque

[KSPState(CopyToSymmetrySet = true)]
[PAMDisplayControl(SortIndex = 6)]
[LocalizedField("PartModules/Wheels/TractionControlMode")]
public ModuleProperty<bool> autoTorque

Field Value

ModuleProperty<bool>

driveLimiter

[PAMDisplayControl(SortIndex = 8)]
[SteppedRange(0, 100, 1)]
[KSPState(CopyToSymmetrySet = true)]
[LocalizedField("PartModules/Wheels/MotorLimiter")]
public ModuleProperty<float> driveLimiter

Field Value

ModuleProperty<float>

driveOutput

[SteppedRange(0, 100, 1)]
[LocalizedField("PartModules/Wheels/DriveOutput")]
[KSPState]
[PAMDisplayControl(ExcludeFromContext = true)]
public ModuleProperty<float> driveOutput

Field Value

ModuleProperty<float>

driveResponse

[KSPDefinition]
public float driveResponse

Field Value

float

idleDrain

[KSPDefinition]
public double idleDrain

Field Value

double

motorEnabled

[LocalizedField("PartModules/Wheels/MotorEnabled")]
[KSPState(CopyToSymmetrySet = true)]
[PAMDisplayControl(SortIndex = 3)]
public ModuleProperty<bool> motorEnabled

Field Value

ModuleProperty<bool>

motorInverted

[LocalizedField("PartModules/Wheels/MotorInverted")]
[PAMDisplayControl(SortIndex = 5)]
[KSPState(CopyToSymmetrySet = true)]
public ModuleProperty<bool> motorInverted

Field Value

ModuleProperty<bool>

motorStateString

[KSPState]
[PAMDisplayControl(SortIndex = 4)]
[LocalizedField("PartModules/Wheels/MotorState")]
public ModuleProperty<string> motorStateString

Field Value

ModuleProperty<string>

requiredResource

[KSPDefinition]
public PartModuleResourceSetting requiredResource

Field Value

PartModuleResourceSetting

torqueCurve

[KSPDefinition]
public FloatCurve torqueCurve

Field Value

FloatCurve

tractionControlScale

[LocalizedField("PartModules/Wheels/TractionControl")]
[PAMDisplayControl(SortIndex = 7)]
[KSPState(CopyToSymmetrySet = true)]
[SteppedRange(0, 5, 0.1)]
public ModuleProperty<float> tractionControlScale

Field Value

ModuleProperty<float>

useResources

[KSPDefinition]
public bool useResources

Field Value

bool

wheelSpeedMax

[KSPDefinition]
public float wheelSpeedMax

Field Value

float

Properties

ModuleType

public override Type ModuleType { get; }

Property Value

Type

Methods

GetAutoTorqueString(object)

public static string GetAutoTorqueString(object valueObj)

Parameters

valueObj object

Returns

string

GetDriveLimiterString(object)

public static string GetDriveLimiterString(object valueObj)

Parameters

valueObj object

Returns

string

GetDriveOutputString(object)

public static string GetDriveOutputString(object valueObj)

Parameters

valueObj object

Returns

string

GetEnabledString(object)

public static string GetEnabledString(object valueObj)

Parameters

valueObj object

Returns

string

GetInvertedString(object)

public static string GetInvertedString(object valueObj)

Parameters

valueObj object

Returns

string

GetTractionControlString(object)

public static string GetTractionControlString(object valueObj)

Parameters

valueObj object

Returns

string

SetupResourceRequest(ResourceFlowRequestBroker)

public override void SetupResourceRequest(ResourceFlowRequestBroker resourceFlowRequestBroker)

Parameters

resourceFlowRequestBroker ResourceFlowRequestBroker