first commit

This commit is contained in:
2023-12-18 14:36:22 +08:00
commit 0f3cf0952c
184 changed files with 91562 additions and 0 deletions

20
Gambal/APP/as5600.h Normal file
View File

@ -0,0 +1,20 @@
#ifndef _AS5600_H
#define _AS5600_H
#include "system.h"
#include "foc_math.h"
extern long cpr;
extern float full_rotation_offset;
extern long angle_data_prev;
extern unsigned long velocity_calc_timestamp;
extern float angle_prev;
void I2C_Init_(void);
unsigned short I2C_getRawCount(I2C_TypeDef* I2Cx);
void MagneticSensor_Init(void);
float getAngle(void);
float getVelocity(void);
#endif