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