Fix packets for FH4 at least
This commit is contained in:
parent
a0b3c48c9f
commit
0ac2488b53
1 changed files with 31 additions and 7 deletions
|
@ -14,6 +14,8 @@ typedef struct _hexagram_telemetry_dash_car {
|
||||||
drivetrain_type,
|
drivetrain_type,
|
||||||
engine_cylinders;
|
engine_cylinders;
|
||||||
|
|
||||||
|
uint8_t padding[12];
|
||||||
|
|
||||||
hexagram_coord position;
|
hexagram_coord position;
|
||||||
|
|
||||||
float speed, power, torque;
|
float speed, power, torque;
|
||||||
|
@ -25,6 +27,27 @@ typedef struct _hexagram_telemetry_dash_car {
|
||||||
odometer;
|
odometer;
|
||||||
} hexagram_telemetry_dash_car;
|
} hexagram_telemetry_dash_car;
|
||||||
|
|
||||||
|
typedef struct _hexagram_telemetry_dash_fh4_race {
|
||||||
|
float lap_best,
|
||||||
|
lap_last,
|
||||||
|
lap_current,
|
||||||
|
race_current;
|
||||||
|
|
||||||
|
uint16_t lap_number;
|
||||||
|
|
||||||
|
/* Payload offset 314 in FH4 */
|
||||||
|
uint8_t race_position,
|
||||||
|
throttle,
|
||||||
|
brake,
|
||||||
|
clutch,
|
||||||
|
handbrake,
|
||||||
|
gear;
|
||||||
|
|
||||||
|
int8_t steer,
|
||||||
|
normalized_driving_line,
|
||||||
|
normalized_ai_brake_difference;
|
||||||
|
} hexagram_telemetry_dash_fh4_race;
|
||||||
|
|
||||||
typedef struct _hexagram_telemetry_dash_race {
|
typedef struct _hexagram_telemetry_dash_race {
|
||||||
float lap_best,
|
float lap_best,
|
||||||
lap_last,
|
lap_last,
|
||||||
|
@ -33,12 +56,13 @@ typedef struct _hexagram_telemetry_dash_race {
|
||||||
|
|
||||||
uint16_t lap_number;
|
uint16_t lap_number;
|
||||||
|
|
||||||
uint8_t race_position,
|
/* Payload offset 314 in FH4 */
|
||||||
throttle,
|
uint8_t race_position,
|
||||||
brake,
|
throttle,
|
||||||
clutch,
|
brake,
|
||||||
handbrake,
|
clutch,
|
||||||
gear;
|
handbrake,
|
||||||
|
gear;
|
||||||
|
|
||||||
int8_t steer,
|
int8_t steer,
|
||||||
normalized_driving_line,
|
normalized_driving_line,
|
||||||
|
@ -78,7 +102,7 @@ typedef struct _hexagram_telemetry_dash_packet {
|
||||||
suspension_travel;
|
suspension_travel;
|
||||||
|
|
||||||
hexagram_telemetry_dash_car car;
|
hexagram_telemetry_dash_car car;
|
||||||
hexagram_telemetry_dash_race race;
|
hexagram_telemetry_dash_fh4_race race;
|
||||||
} hexagram_telemetry_dash_packet;
|
} hexagram_telemetry_dash_packet;
|
||||||
|
|
||||||
#pragma pack(pop)
|
#pragma pack(pop)
|
||||||
|
|
Loading…
Add table
Reference in a new issue