mirror of
https://github.com/adrigongv23/G26---Telemetry-Software.git
synced 2026-08-25 11:33:17 +02:00
Nuevas variables a telemetría añadidas
This commit is contained in:
parent
ec5895f827
commit
5738a6c7d7
4 changed files with 79 additions and 33 deletions
|
|
@ -10,19 +10,29 @@ class DataProcessor {
|
|||
public:
|
||||
DataProcessor() = default;
|
||||
|
||||
//Variable publica para el CAN
|
||||
volatile int current_ect_value = 0;
|
||||
//Variables publicas para el CAN
|
||||
//Confirmadas: llegan en la trama 0
|
||||
volatile int current_ect_value = 0;
|
||||
volatile int current_rpm_value = 0;
|
||||
volatile float current_vbatt_value = 0.0;
|
||||
|
||||
volatile float current_tps_value = 0.0;
|
||||
volatile int current_marcha_value = 0;
|
||||
volatile float current_pcomb_value = 0.0; // bar
|
||||
volatile float current_taceite_value = 0.0; // grados C
|
||||
volatile float current_paceite_value = 0.0; // bar
|
||||
volatile float current_map_value = 0.0; // kPa
|
||||
volatile float current_lambda_value = 0.0;
|
||||
volatile float current_lambda_obj_value = 0.0;
|
||||
|
||||
|
||||
//Métodos de recepción de CAN
|
||||
|
||||
|
||||
void send_serial_frame_0(int rpmh, int rpml, int tpsh, int tpsl, int vbatth, int vbattl, int ect);
|
||||
void send_serial_frame_1(int lmbh, int lmbl, int lmbth, int lmbtl, int fuelh, int fuell, int gear);
|
||||
void send_serial_frame_2(int shut, int fan, int lmbch, int lmbcl, int brakeh, int brakel, int aux1);
|
||||
void send_serial_frame_3(int aux3, int aux4, int aux5, int aux6, int aux7, int aux8, int dig1);
|
||||
void send_serial_frame_4(int dig3, int dig4, int dig5, int dig6, int dig7, int dig8, int dig9);
|
||||
|
||||
|
||||
//Métodos extras
|
||||
void send_serial(byte type, unsigned int value);
|
||||
|
|
@ -32,4 +42,4 @@ public:
|
|||
private:
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue