Add screen for configuring vehicle parameters
This commit is contained in:
24
Core/Inc/params.h
Normal file
24
Core/Inc/params.h
Normal file
@ -0,0 +1,24 @@
|
||||
#ifndef INC_PARAMS_H
|
||||
#define INC_PARAMS_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
float bbal;
|
||||
unsigned tc1;
|
||||
unsigned tc2;
|
||||
unsigned torque_map;
|
||||
unsigned test[4];
|
||||
} Params;
|
||||
|
||||
extern Params params;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // INC_PARAMS_H
|
||||
3
Core/Src/params.c
Normal file
3
Core/Src/params.c
Normal file
@ -0,0 +1,3 @@
|
||||
#include "params.h"
|
||||
|
||||
Params params = {0};
|
||||
Reference in New Issue
Block a user