This commit is contained in:
Stefano Calabretti
2022-05-31 10:04:05 +02:00
parent bf81796125
commit 772d87b3db
5 changed files with 145 additions and 8 deletions
+40
View File
@@ -0,0 +1,40 @@
#ifndef MMR_CAN_ECU_MESSAGES_H_
#define MMR_CAN_ECU_MESSAGES_H_
#include <stdint.h>
typedef struct EcuPedalThrottle {
float apsAVoltage;
float apsBVoltage;
float throttleAVoltage;
float throttleBVoltage;
} EcuPedalThrottle;
typedef struct EcuTemperatures {
int16_t oil;
int16_t engine;
int16_t intake;
int16_t ambient;
} EcuTemperatures;
typedef struct EcuEngineFn1 {
float engineRpm;
float gear;
uint16_t vehicleSpeed;
uint16_t throttle;
} EcuEngineFn1;
typedef struct EcuPressures {
float oil;
float fuel;
float intake;
float ambient;
} EcuPressures;
typedef struct EcuEngineFn2 {
float batteryVoltage;
float acceleratorPedal;
float fanControl;
} EcuEngineFn2;
#endif // !MMR_CAN_ECU_MESSAGES_H_