Rename forza-dash.h to dash.h
This commit is contained in:
parent
05a45a204d
commit
c248b446af
2 changed files with 13 additions and 13 deletions
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
#include <hexagram/can.h>
|
#include <hexagram/can.h>
|
||||||
#include <hexagram/capture.h>
|
#include <hexagram/capture.h>
|
||||||
#include <hexagram/telemetry/forza-dash.h>
|
#include <hexagram/telemetry/dash.h>
|
||||||
|
|
||||||
#include "dash2can.h"
|
#include "dash2can.h"
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ int hexagram_main_dash2can(int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
hexagram_telemetry_forza_dash_packet packet;
|
hexagram_telemetry_dash_packet packet;
|
||||||
struct can_frame frame;
|
struct can_frame frame;
|
||||||
ssize_t len;
|
ssize_t len;
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
#ifndef _HEXAGRAM_TELEMETRY_FORZA_DASH_H
|
#ifndef _HEXAGRAM_TELEMETRY_DASH_H
|
||||||
#define _HEXAGRAM_TELEMETRY_FORZA_DASH_H
|
#define _HEXAGRAM_TELEMETRY_DASH_H
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <hexagram/types.h>
|
#include <hexagram/types.h>
|
||||||
|
|
||||||
typedef struct _hexagram_telemetry_forza_dash_car {
|
typedef struct _hexagram_telemetry_dash_car {
|
||||||
int32_t id,
|
int32_t id,
|
||||||
class,
|
class,
|
||||||
drivetrain,
|
drivetrain,
|
||||||
|
@ -20,9 +20,9 @@ typedef struct _hexagram_telemetry_forza_dash_car {
|
||||||
fuel,
|
fuel,
|
||||||
odometer;
|
odometer;
|
||||||
|
|
||||||
} hexagram_telemetry_forza_dash_car;
|
} hexagram_telemetry_dash_car;
|
||||||
|
|
||||||
typedef struct _hexagram_telemetry_forza_dash_race {
|
typedef struct _hexagram_telemetry_dash_race {
|
||||||
float lap_best,
|
float lap_best,
|
||||||
lap_last,
|
lap_last,
|
||||||
lap_current,
|
lap_current,
|
||||||
|
@ -42,9 +42,9 @@ typedef struct _hexagram_telemetry_forza_dash_race {
|
||||||
hexagram_corner tire_wear;
|
hexagram_corner tire_wear;
|
||||||
|
|
||||||
int32_t track_id;
|
int32_t track_id;
|
||||||
} hexagram_telemetry_forza_dash_race;
|
} hexagram_telemetry_dash_race;
|
||||||
|
|
||||||
typedef struct _hexagram_telemetry_forza_dash_packet {
|
typedef struct _hexagram_telemetry_dash_packet {
|
||||||
int32_t race_on;
|
int32_t race_on;
|
||||||
uint32_t timestamp_ms;
|
uint32_t timestamp_ms;
|
||||||
|
|
||||||
|
@ -71,8 +71,8 @@ typedef struct _hexagram_telemetry_forza_dash_packet {
|
||||||
tire_combined_slip,
|
tire_combined_slip,
|
||||||
suspension_travel;
|
suspension_travel;
|
||||||
|
|
||||||
hexagram_telemetry_forza_dash_car car;
|
hexagram_telemetry_dash_car car;
|
||||||
hexagram_telemetry_forza_dash_race race;
|
hexagram_telemetry_dash_race race;
|
||||||
} hexagram_telemetry_forza_dash_packet;
|
} hexagram_telemetry_dash_packet;
|
||||||
|
|
||||||
#endif /* _HEXAGRAM_TELEMETRY_FORZA_DASH_H */
|
#endif /* _HEXAGRAM_TELEMETRY_DASH_H */
|
Loading…
Add table
Reference in a new issue