mirror of
https://github.com/italicsjenga/fh5-telemetry-watcher.git
synced 2024-12-23 14:11:33 +11:00
snek
This commit is contained in:
parent
f9294ce6bf
commit
d6a755bb74
142
src/main.rs
142
src/main.rs
|
@ -10,64 +10,64 @@ struct Args {
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
struct Telemetry {
|
struct Telemetry {
|
||||||
isRaceOn: bool,
|
is_race_on: bool,
|
||||||
timeStampMS: u64,
|
time_stamp_ms: u64,
|
||||||
engineMaxRpm: f32,
|
engine_max_rpm: f32,
|
||||||
engineIdleRpm: f32,
|
engine_idle_rpm: f32,
|
||||||
currentEngineRpm: f32,
|
current_engine_rpm: f32,
|
||||||
accelerationX: f32,
|
acceleration_x: f32,
|
||||||
accelerationY: f32,
|
acceleration_y: f32,
|
||||||
accelerationZ: f32,
|
acceleration_z: f32,
|
||||||
velocityX: f32,
|
velocity_x: f32,
|
||||||
velocityY: f32,
|
velocity_y: f32,
|
||||||
velocityZ: f32,
|
velocity_z: f32,
|
||||||
angularVelocityX: f32,
|
angular_velocity_x: f32,
|
||||||
angularVelocityY: f32,
|
angular_velocity_y: f32,
|
||||||
angularVelocityZ: f32,
|
angular_velocity_z: f32,
|
||||||
yaw: f32,
|
yaw: f32,
|
||||||
pitch: f32,
|
pitch: f32,
|
||||||
roll: f32,
|
roll: f32,
|
||||||
normalizedSuspensionTravelFrontLeft: f32,
|
normalized_suspension_travel_front_left: f32,
|
||||||
normalizedSuspensionTravelFrontRight: f32,
|
normalized_suspension_travel_front_right: f32,
|
||||||
normalizedSuspensionTravelRearLeft: f32,
|
normalized_suspension_travel_rear_left: f32,
|
||||||
normalizedSuspensionTravelRearRight: f32,
|
normalized_suspension_travel_rear_right: f32,
|
||||||
tireSlipRatioFrontLeft: f32,
|
tire_slip_ratio_front_left: f32,
|
||||||
tireSlipRatioFrontRight: f32,
|
tire_slip_ratio_front_right: f32,
|
||||||
tireSlipRatioRearLeft: f32,
|
tire_slip_ratio_rear_left: f32,
|
||||||
tireSlipRatioRearRight: f32,
|
tire_slip_ratio_rear_right: f32,
|
||||||
wheelRotationSpeedFrontLeft: f32,
|
wheel_rotation_speed_front_left: f32,
|
||||||
wheelRotationSpeedFrontRight: f32,
|
wheel_rotation_speed_front_right: f32,
|
||||||
wheelRotationSpeedRearLeft: f32,
|
wheel_rotation_speed_rear_left: f32,
|
||||||
wheelRotationSpeedRearRight: f32,
|
wheel_rotation_speed_rear_right: f32,
|
||||||
wheelOnRumbleStripFrontLeft: i32,
|
wheel_on_rumble_strip_front_left: i32,
|
||||||
wheelOnRumbleStripFrontRight: i32,
|
wheel_on_rumble_strip_front_right: i32,
|
||||||
wheelOnRumbleStripRearLeft: i32,
|
wheel_on_rumble_strip_rear_left: i32,
|
||||||
wheelOnRumbleStripRearRight: i32,
|
wheel_on_rumble_strip_rear_right: i32,
|
||||||
wheelInPuddleDepthFrontLeft: f32,
|
wheel_in_puddle_depth_front_left: f32,
|
||||||
wheelInPuddleDepthFrontRight: f32,
|
wheel_in_puddle_depth_front_right: f32,
|
||||||
wheelInPuddleDepthRearLeft: f32,
|
wheel_in_puddle_depth_rear_left: f32,
|
||||||
wheelInPuddleDepthRearRight: f32,
|
wheel_in_puddle_depth_rear_right: f32,
|
||||||
surfaceRumbleFrontLeft: f32,
|
surface_rumble_front_left: f32,
|
||||||
surfaceRumbleFrontRight: f32,
|
surface_rumble_front_right: f32,
|
||||||
surfaceRumbleRearLeft: f32,
|
surface_rumble_rear_left: f32,
|
||||||
surfaceRumbleRearRight: f32,
|
surface_rumble_rear_right: f32,
|
||||||
tireSlipAngleFrontLeft: f32,
|
tire_slip_angle_front_left: f32,
|
||||||
tireSlipAngleFrontRight: f32,
|
tire_slip_angle_front_right: f32,
|
||||||
tireSlipAngleRearLeft: f32,
|
tire_slip_angle_rear_left: f32,
|
||||||
tireSlipAngleRearRight: f32,
|
tire_slip_angle_rear_right: f32,
|
||||||
tireCombinedSlipFrontLeft: f32,
|
tire_combined_slip_front_left: f32,
|
||||||
tireCombinedSlipFrontRight: f32,
|
tire_combined_slip_front_right: f32,
|
||||||
tireCombinedSlipRearLeft: f32,
|
tire_combined_slip_rear_left: f32,
|
||||||
tireCombinedSlipRearRight: f32,
|
tire_combined_slip_rear_right: f32,
|
||||||
suspensionTravelMetersFrontLeft: f32,
|
suspension_travel_meters_front_left: f32,
|
||||||
suspensionTravelMetersFrontRight: f32,
|
suspension_travel_meters_front_right: f32,
|
||||||
suspensionTravelMetersRearLeft: f32,
|
suspension_travel_meters_rear_left: f32,
|
||||||
suspensionTravelMetersRearRight: f32,
|
suspension_travel_meters_rear_right: f32,
|
||||||
carClass: i32,
|
car_class: i32,
|
||||||
carPerformanceIndex: i32,
|
car_performance_index: i32,
|
||||||
drivetrai32ype: i32,
|
drivetrai32ype: i32,
|
||||||
numCylinders: i32,
|
num_cylinders: i32,
|
||||||
carType: i32,
|
car_type: i32,
|
||||||
unknown1: i8,
|
unknown1: i8,
|
||||||
unknown2: i8,
|
unknown2: i8,
|
||||||
unknown3: i8,
|
unknown3: i8,
|
||||||
|
@ -76,34 +76,34 @@ struct Telemetry {
|
||||||
unknown6: i8,
|
unknown6: i8,
|
||||||
unknown7: i8,
|
unknown7: i8,
|
||||||
unknown8: i8,
|
unknown8: i8,
|
||||||
carOrdinal: i32,
|
car_ordinal: i32,
|
||||||
positionX: f32,
|
position_x: f32,
|
||||||
positionY: f32,
|
position_y: f32,
|
||||||
positionZ: f32,
|
position_z: f32,
|
||||||
speed: f32,
|
speed: f32,
|
||||||
power: f32,
|
power: f32,
|
||||||
torque: f32,
|
torque: f32,
|
||||||
tireTempFrontLeft: f32,
|
tire_temp_front_left: f32,
|
||||||
tireTempFrontRight: f32,
|
tire_temp_front_right: f32,
|
||||||
tireTempRearLeft: f32,
|
tire_temp_rear_left: f32,
|
||||||
tireTempRearRight: f32,
|
tire_temp_rear_right: f32,
|
||||||
boost: f32,
|
boost: f32,
|
||||||
fuel: f32,
|
fuel: f32,
|
||||||
distanceTraveled: f32,
|
distance_traveled: f32,
|
||||||
bestLap: f32,
|
best_lap: f32,
|
||||||
lastLap: f32,
|
last_lap: f32,
|
||||||
currentLap: f32,
|
current_lap: f32,
|
||||||
currentRaceTime: f32,
|
current_race_time: f32,
|
||||||
lapNumber: i16,
|
lap_number: i16,
|
||||||
racePosition: i8,
|
race_position: i8,
|
||||||
accel: i8,
|
accel: i8,
|
||||||
brake: i8,
|
brake: i8,
|
||||||
clutch: i8,
|
clutch: i8,
|
||||||
handbrake: i8,
|
handbrake: i8,
|
||||||
gear: i8,
|
gear: i8,
|
||||||
steer: i8,
|
steer: i8,
|
||||||
normalizedDrivingLine: i8,
|
normalized_driving_line: i8,
|
||||||
normalizedAIBrakeDifference: i8,
|
normalized_ai_brake_difference: i8,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
Loading…
Reference in a new issue