|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.gamedata.TelemetryData
public class TelemetryData
Our world coordinate system is left-handed, with +y pointing up. The local vehicle coordinate system is as follows: +x points out the left side of the car (from the driver's perspective) +y points out the roof +z points out the back of the car Rotations are as follows: +x pitches up +y yaws to the right +z rolls to the right
Nested Class Summary | |
---|---|
static interface |
TelemetryData.TelemetryDataUpdateListener
|
Method Summary | |
---|---|
float |
getBrakeDiscThickness(Wheel wheel)
Gets the current brake disc thickness. |
float |
getBrakeTemperature(Wheel wheel)
Gets the current brake temperature in the units selected in the PLR. |
float |
getBrakeTemperatureC(Wheel wheel)
Gets the current brake temperature in Celsius. |
float |
getBrakeTemperatureF(Wheel wheel)
Gets the current brake temperature in Fahrenheit. |
float |
getBrakeTemperatureK(Wheel wheel)
Gets the current brake temperature in Kelvin. |
float |
getClutchRPM()
Gets the current clutch RPM. |
short |
getCurrentGear()
Gets the current gear (-1=reverse, 0=neutral, 1+=forward gears). |
float |
getDeltaTime()
Gets the time since last update (seconds). |
long |
getDeltaUpdateTime()
The delta time between the last two TelemetryData updates (using system timing) (in nanos). |
short[] |
getDentSevirity()
Gets dent severity at 8 locations around the car (0=none, 1=some, 2=more). |
int |
getEffectiveEngineBoostMapping()
If temp boost is activated, this returns the maximum (highest valued) boost mapping, otherwise it returns the result of getEngineBoostMapping() . |
float |
getEngineBaseMaxRPM()
Gets the current engine rev limit (base as reported by plugin interface). |
int |
getEngineBoostMapping()
Gets the currently selected engine boost mapping. |
float |
getEngineLifetime()
Gets the currently remaining engine's lifetime in seconds. |
float |
getEngineMaxRPM()
Gets the engine rev limit with max boost. |
float |
getEngineOilTemperature()
Gets the current engine oil temperature in the units selected in the PLR. |
float |
getEngineOilTemperatureC()
Gets the current engine oil temperature in Celsius. |
float |
getEngineOilTemperatureF()
Gets the current engine oil temperature in Fahrenheit. |
float |
getEngineRPM()
Gets the current engine RPM. |
float |
getEngineWaterTemperature()
Gets the current engine water temperature in the units selected in the PLR. |
float |
getEngineWaterTemperatureC()
Gets the current engine water temperature in Celsius. |
float |
getEngineWaterTemperatureF()
Gets the current engine water temperature in Fahrenheit. |
float |
getFuel()
Gets the amount of fuel (units selected in the PLR). |
float |
getFuelGal()
Gets the amount of fuel (galons). |
float |
getFuelL()
Gets the amount of fuel (liters). |
float |
getFuelUsageAverage()
Gets the average fuel usage of all recorded (timed) laps. |
float |
getFuelUsageLastLap()
Gets the fuel usage of the last (timed) lap. |
float |
getGripFraction(Wheel wheel)
Gets an approximation of what fraction of the contact patch is sliding. |
Wheel |
getHottestWheel()
Gets the hottest wheel. |
float |
getLastImpactMagnitude()
Gets the magnitude of last impact. |
TelemVect3 |
getLastImpactPosition(TelemVect3 lastImpactPos)
location of last impact |
float |
getLastImpactTime()
Gets the time of last impact. |
float |
getLateralAcceleration()
Gets the lateral acceleration (meters/sec^2). |
float |
getLateralForce(Wheel wheel)
Gets the current lateral force in Newtons. |
TelemVect3 |
getLocalAcceleration(TelemVect3 localAccel)
Gets the acceleration (meters/sec^2) in local vehicle coordinates. |
TelemVect3 |
getLocalRotation(TelemVect3 localRot)
rotation (radians/sec) in local vehicle coordinates |
TelemVect3 |
getLocalRotationalAcceleration(TelemVect3 localRotAccel)
rotational acceleration (radians/sec^2) in local vehicle coordinates |
TelemVect3 |
getLocalVelocity(TelemVect3 localVel)
velocity (meters/sec) in local vehicle coordinates |
float |
getLongitudinalAcceleration()
Gets longitudinal acceleration (meters/sec^2). |
TelemVect3 |
getOrientationX(TelemVect3 oriX)
top row of orientation matrix (also converts local vehicle vectors into world X using dot product) |
TelemVect3 |
getOrientationY(TelemVect3 oriY)
mid row of orientation matrix (also converts local vehicle vectors into world Y using dot product) |
TelemVect3 |
getOrientationZ(TelemVect3 oriZ)
bot row of orientation matrix (also converts local vehicle vectors into world Z using dot product) |
TelemVect3 |
getPosition(TelemVect3 position)
Gets world position in meters. |
float |
getPositionX()
Gets world position in meters. |
float |
getPositionY()
Gets world position in meters. |
float |
getPositionZ()
Gets world position in meters. |
float |
getRideHeight(Wheel wheel)
Gets the current ride height in meters. |
float |
getScalarVelocity()
Gets the velocity in the units selected in the PLR. |
float |
getScalarVelocityKPH()
Gets the velocity (km/h). |
float |
getScalarVelocityMPH()
Gets the velocity (mph). |
float |
getScalarVelocityMPS()
Gets the velocity (meters/sec). |
float |
getSteeringArmForce()
Gets the force on steering arms. |
SurfaceType |
getSurfaceType(Wheel wheel)
Gets surface type under the tire. |
boolean |
getTemporaryBoostFlag()
Is temporary boost enabled? |
java.lang.String |
getTerrainName(Wheel wheel)
Gets the material prefixes from the TDF file. |
float |
getTireLoad(Wheel wheel)
Gets the current tire load in Newtons. |
float |
getTirePressure(Wheel wheel)
Gets the current tire pressure in kPa. |
float |
getTireTemperature(Wheel wheel)
Gets the current tire temperature in the units selected in the PLR (Celsius or Fahrenheit) : ( (INSIDE + CENTER + OUTSIDE) / 3 ) |
float |
getTireTemperature(Wheel wheel,
WheelPart part)
Gets the current tire temperature in the units selected in the PLR (Celsius or Fahrenheit). |
float |
getTireTemperatureC(Wheel wheel)
Gets the current tire temperature in Celsius : ( (INSIDE + CENTER + OUTSIDE) / 3 ) |
float |
getTireTemperatureC(Wheel wheel,
WheelPart part)
Gets the current tire temperature in Celsius. |
float |
getTireTemperatureF(Wheel wheel)
Gets the current tire temperature in Fahrenheit : ( (INSIDE + CENTER + OUTSIDE) / 3 ) |
float |
getTireTemperatureF(Wheel wheel,
WheelPart part)
Gets the current tire temperature in Fahrenheit. |
float |
getTireWear(Wheel wheel)
Gets current tire wear (0.0-1.0, fraction of maximum) ... this is not necessarily proportional with grip loss. |
float |
getUnfilteredBrake()
Get the current unfiltered brake application [0.0,1.0]. |
float |
getUnfilteredClutch()
Get the current unfiltered clutch application [0.0,1.0]. |
float |
getUnfilteredSteering()
Get the current unfiltered steering application [-1.0,1.0] (left to right). |
float |
getUnfilteredThrottle()
Get the current unfiltered throttle application [0.0,1.0]. |
long |
getUpdateId()
This is incremented every time the info is updated. |
long |
getUpdateTimestamp()
The system timestamp (in nanos) of the last TelemetryData update. |
float |
getWheelRotation(Wheel wheel)
Gets the curent wheel rotation in radians/sec. |
float |
getWheelSuspensionDeflection(Wheel wheel)
Gets the current suspension deflection in meters. |
boolean |
isAnythingDetached()
Gets whether any parts (besides wheels) have been detached. |
boolean |
isOverheating()
Gets whether overheating icon is shown. |
boolean |
isUpdatedInTimeScope()
Gets, whether the last update of these data has been done while in running session resp. realtime mode. |
boolean |
isWheelDetached(Wheel wheel)
Gets whether wheel is detached. |
boolean |
isWheelFlat(Wheel wheel)
Gets whether tire is flat. |
void |
readFromStream(java.io.InputStream in)
|
void |
registerListener(TelemetryData.TelemetryDataUpdateListener l)
|
void |
unregisterListener(TelemetryData.TelemetryDataUpdateListener l)
|
void |
writeToStream(java.io.OutputStream out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void registerListener(TelemetryData.TelemetryDataUpdateListener l)
public void unregisterListener(TelemetryData.TelemetryDataUpdateListener l)
public void readFromStream(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public void writeToStream(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public final long getUpdateTimestamp()
TelemetryData
update.
TelemetryData
update.public final long getDeltaUpdateTime()
TelemetryData
updates (using system timing) (in nanos).
TelemetryData
updates (using system timing).public final boolean isUpdatedInTimeScope()
public final long getUpdateId()
public final boolean getTemporaryBoostFlag()
public final int getEngineBoostMapping()
public final int getEffectiveEngineBoostMapping()
getEngineBoostMapping()
.
public final float getEngineLifetime()
public final float getBrakeDiscThickness(Wheel wheel)
wheel
-
public final float getFuelUsageLastLap()
public final float getFuelUsageAverage()
public final float getDeltaTime()
public final TelemVect3 getPosition(TelemVect3 position)
position
- output buffer
public final float getPositionX()
public final float getPositionY()
public final float getPositionZ()
public final TelemVect3 getLocalVelocity(TelemVect3 localVel)
localVel
- output buffer
public final float getScalarVelocityMPS()
public final float getScalarVelocityMPH()
public final float getScalarVelocityKPH()
public final float getScalarVelocity()
public final TelemVect3 getLocalAcceleration(TelemVect3 localAccel)
localAccel
- output buffer
public final float getLongitudinalAcceleration()
public final float getLateralAcceleration()
public final TelemVect3 getOrientationX(TelemVect3 oriX)
oriX
- output buffer
public final TelemVect3 getOrientationY(TelemVect3 oriY)
oriY
- output buffer
public final TelemVect3 getOrientationZ(TelemVect3 oriZ)
oriZ
- output buffer
public final TelemVect3 getLocalRotation(TelemVect3 localRot)
localRot
- output buffer
public final TelemVect3 getLocalRotationalAcceleration(TelemVect3 localRotAccel)
localRotAccel
- output buffer
public final short getCurrentGear()
public final float getEngineRPM()
public final float getEngineWaterTemperatureC()
public final float getEngineWaterTemperatureF()
public final float getEngineWaterTemperature()
public final float getEngineOilTemperatureC()
public final float getEngineOilTemperatureF()
public final float getEngineOilTemperature()
public final float getClutchRPM()
public final float getUnfilteredThrottle()
public final float getUnfilteredBrake()
public final float getUnfilteredClutch()
public final float getUnfilteredSteering()
public final float getSteeringArmForce()
public final float getFuelL()
public final float getFuelGal()
public final float getFuel()
public final float getEngineBaseMaxRPM()
public final float getEngineMaxRPM()
public final boolean isOverheating()
public final boolean isAnythingDetached()
public final short[] getDentSevirity()
public final float getLastImpactTime()
public final float getLastImpactMagnitude()
public final TelemVect3 getLastImpactPosition(TelemVect3 lastImpactPos)
lastImpactPos
- output buffer
public final float getWheelRotation(Wheel wheel)
wheel
- the queried wheel
public final float getWheelSuspensionDeflection(Wheel wheel)
wheel
- the queried wheel
public final float getRideHeight(Wheel wheel)
wheel
- the queried wheel
public final float getTireLoad(Wheel wheel)
wheel
- the queried wheel
public final float getLateralForce(Wheel wheel)
wheel
- the queried wheel
public final float getGripFraction(Wheel wheel)
wheel
- the queried wheel
public final float getBrakeTemperatureK(Wheel wheel)
wheel
- the queried wheel
public final float getBrakeTemperatureC(Wheel wheel)
wheel
- the queried wheel
public final float getBrakeTemperatureF(Wheel wheel)
wheel
- the queried wheel
public final float getBrakeTemperature(Wheel wheel)
wheel
- the queried wheel
public final float getTirePressure(Wheel wheel)
wheel
- the queried wheel
public final float getTireTemperatureC(Wheel wheel, WheelPart part)
wheel
- the queried wheelpart
- the wheel part
public final float getTireTemperatureF(Wheel wheel, WheelPart part)
wheel
- the queried wheelpart
- the wheel part
public final float getTireTemperature(Wheel wheel, WheelPart part)
wheel
- the queried wheelpart
- the wheel part
public final float getTireTemperatureC(Wheel wheel)
wheel
- the queried wheel
public final float getTireTemperatureF(Wheel wheel)
wheel
- the queried wheel
public final float getTireTemperature(Wheel wheel)
wheel
- the queried wheel
public final Wheel getHottestWheel()
public final float getTireWear(Wheel wheel)
wheel
- the queried wheel
public final java.lang.String getTerrainName(Wheel wheel)
wheel
- the queried wheel
public final SurfaceType getSurfaceType(Wheel wheel)
wheel
- the queried wheel
public final boolean isWheelFlat(Wheel wheel)
wheel
- the queried wheel
public final boolean isWheelDetached(Wheel wheel)
wheel
- the queried wheel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |