47 lines
1.0 KiB
C
47 lines
1.0 KiB
C
//
|
|
// Created by zemon on 24.11.22.
|
|
//
|
|
|
|
#ifndef UVEOS_ON_NATION_FLIPSETTING_H
|
|
#define UVEOS_ON_NATION_FLIPSETTING_H
|
|
|
|
#include "CliCmd.h"
|
|
#include "CarFlipDetection.h"
|
|
#include "ComIntCmd/Vars.h"
|
|
#include "Accel_QMA6100P.h"
|
|
#include "CarCrashDetection.h"
|
|
|
|
typedef struct {
|
|
tVariablesTable *externTable;
|
|
tCarFlipDetection *flipDetect;
|
|
tAccelCoor *accelCoor;
|
|
tCarCrashDetection *carCrashDetection;
|
|
float isDetectValue;
|
|
|
|
float val_x;
|
|
float val_y;
|
|
float val_z;
|
|
|
|
int32_t valGraviti_x;
|
|
int32_t valGraviti_y;
|
|
int32_t valGraviti_z;
|
|
|
|
float asi15This;
|
|
float asi15Limit;
|
|
float angleCos;
|
|
} tFlipSetting;
|
|
|
|
void CliCmd_FlipSettingInit(
|
|
tFlipSetting *tFlipSet,
|
|
tCarFlipDetection *tFlipBase,
|
|
tVariablesTable *externTable,
|
|
tAccelCoor *tAccelCoor,
|
|
tCarCrashDetection *carCrashDetection
|
|
);
|
|
|
|
uint8_t CliCmd_FlipSetting(tFlipSetting *tFlipSet, tCliCmd *cli);
|
|
|
|
void CliCmd_flipModedHelp(void *env, tCliCmd *cli);
|
|
|
|
#endif //UVEOS_ON_NATION_FLIPSETTING_H
|