Class PwmThruster
Inheritance
System.Object
PwmThruster
Assembly: cs.temp.dll.dll
Syntax
public class PwmThruster : MonoBehaviour
Fields
forceLatchTime
Declaration
public float forceLatchTime
Field Value
Type |
Description |
System.Single |
|
voltage
Declaration
public PwmThruster.AllowedVoltages voltage
Field Value
Methods
ApplyPwm(Single)
Apply force to the thruster location from datasheet and standardized pwm input
Declaration
public Vector3 ApplyPwm(float pwmIn)
Parameters
Type |
Name |
Description |
System.Single |
pwmIn |
-1 - 1 value
|
Returns
BinarySearch(Single[], Single)
Declaration
public static int BinarySearch(float[] a, float item)
Parameters
Type |
Name |
Description |
System.Single[] |
a |
|
System.Single |
item |
|
Returns
Type |
Description |
System.Int32 |
|
GetPwmForForce(Single)
Declaration
public float GetPwmForForce(float force)
Parameters
Type |
Name |
Description |
System.Single |
force |
|
Returns
Type |
Description |
System.Single |
|