добавлена структура данных, хранящяя информацию необходимую для расчета ряда показателей, таких как манера вождения (количество резких ускорений и торможений)
This commit is contained in:
parent
4453fc0441
commit
bdc778c85c
|
|
@ -21,6 +21,8 @@
|
|||
#include "EraGlonassUveos_Dumper.h"
|
||||
#include "EgtsTelesataTypes.h"
|
||||
#include "GpioPinInterface.h"
|
||||
#include "SerialPortFrameIO.h"
|
||||
#include "CanMain.h"
|
||||
|
||||
|
||||
#define AURUS_CHECK_CONNECT 15000
|
||||
|
|
@ -341,6 +343,11 @@ typedef struct {
|
|||
|
||||
} carEventPosition;
|
||||
|
||||
struct {
|
||||
uint32_t trip_braking;
|
||||
uint32_t trip_acceleration;
|
||||
} state_get;
|
||||
|
||||
tStaticThreadBlock(512) T_processing_Network;
|
||||
// tStaticThreadBlock(1024) T_processing_ebu;
|
||||
tStaticThreadBlock(512) T_processing_input_command;
|
||||
|
|
@ -400,7 +407,7 @@ typedef struct {
|
|||
uint32_t firmwareOffset;
|
||||
*/
|
||||
tDeviceTeledataStorageData *deviceTeledataStorageData;
|
||||
|
||||
tCanMainAdditional *canMainAdditional;
|
||||
tDeviceStorage *store;
|
||||
|
||||
bool rebootFirmware;
|
||||
|
|
@ -419,10 +426,10 @@ typedef struct {
|
|||
uint8_t count_shot;
|
||||
uint8_t count_free;
|
||||
uint32_t timeAccelUpdate;
|
||||
|
||||
tCanData *canData;
|
||||
|
||||
uint32_t timeOutCheckNetworkStatus;
|
||||
|
||||
uint32_t timeAbsSpeedOnSecond;
|
||||
} tEgtsProcessing;
|
||||
|
||||
|
||||
|
|
@ -434,7 +441,9 @@ void EgtsProcessing_Init(
|
|||
tGpioPin *ignition,
|
||||
tGsmWithGnss *gsm,
|
||||
tRtcIO *rtcIO,
|
||||
tLoggerToSerialPort *slog
|
||||
tLoggerToSerialPort *slog,
|
||||
tCanData *canData,
|
||||
tCanMainAdditional *tCanMainAdditional
|
||||
);
|
||||
|
||||
char *sendLogHex(tEgtsProcessing *env, uint8_t *data, size_t size);
|
||||
|
|
|
|||
Loading…
Reference in New Issue