добавлена структура данных, хранящяя информацию необходимую для расчета ряда показателей, таких как манера вождения (количество резких ускорений и торможений)

This commit is contained in:
parent 4453fc0441
commit bdc778c85c
1 changed files with 13 additions and 4 deletions

View File

@ -21,6 +21,8 @@
#include "EraGlonassUveos_Dumper.h" #include "EraGlonassUveos_Dumper.h"
#include "EgtsTelesataTypes.h" #include "EgtsTelesataTypes.h"
#include "GpioPinInterface.h" #include "GpioPinInterface.h"
#include "SerialPortFrameIO.h"
#include "CanMain.h"
#define AURUS_CHECK_CONNECT 15000 #define AURUS_CHECK_CONNECT 15000
@ -341,6 +343,11 @@ typedef struct {
} carEventPosition; } carEventPosition;
struct {
uint32_t trip_braking;
uint32_t trip_acceleration;
} state_get;
tStaticThreadBlock(512) T_processing_Network; tStaticThreadBlock(512) T_processing_Network;
// tStaticThreadBlock(1024) T_processing_ebu; // tStaticThreadBlock(1024) T_processing_ebu;
tStaticThreadBlock(512) T_processing_input_command; tStaticThreadBlock(512) T_processing_input_command;
@ -400,7 +407,7 @@ typedef struct {
uint32_t firmwareOffset; uint32_t firmwareOffset;
*/ */
tDeviceTeledataStorageData *deviceTeledataStorageData; tDeviceTeledataStorageData *deviceTeledataStorageData;
tCanMainAdditional *canMainAdditional;
tDeviceStorage *store; tDeviceStorage *store;
bool rebootFirmware; bool rebootFirmware;
@ -419,10 +426,10 @@ typedef struct {
uint8_t count_shot; uint8_t count_shot;
uint8_t count_free; uint8_t count_free;
uint32_t timeAccelUpdate; uint32_t timeAccelUpdate;
tCanData *canData;
uint32_t timeOutCheckNetworkStatus; uint32_t timeOutCheckNetworkStatus;
uint32_t timeAbsSpeedOnSecond;
} tEgtsProcessing; } tEgtsProcessing;
@ -434,7 +441,9 @@ void EgtsProcessing_Init(
tGpioPin *ignition, tGpioPin *ignition,
tGsmWithGnss *gsm, tGsmWithGnss *gsm,
tRtcIO *rtcIO, tRtcIO *rtcIO,
tLoggerToSerialPort *slog tLoggerToSerialPort *slog,
tCanData *canData,
tCanMainAdditional *tCanMainAdditional
); );
char *sendLogHex(tEgtsProcessing *env, uint8_t *data, size_t size); char *sendLogHex(tEgtsProcessing *env, uint8_t *data, size_t size);