Modify & transmit params via CAN
This commit is contained in:
@ -5,8 +5,14 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "util.h"
|
||||
|
||||
CountedEnum(ParamType, size_t, PF_BBAL, PF_TC1, PF_TC2, PF_TORQUEMAP, PF_TEST1,
|
||||
PF_TEST2, PF_TEST3, PF_TEST4);
|
||||
|
||||
typedef struct {
|
||||
float bbal;
|
||||
unsigned tc1;
|
||||
@ -17,6 +23,11 @@ typedef struct {
|
||||
|
||||
extern Params params;
|
||||
|
||||
void params_init();
|
||||
void params_inc(ParamType param);
|
||||
void params_dec(ParamType param);
|
||||
void params_broadcast(ParamType param);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user