+tested IMU, +tested PCA9685, fail to work together

This commit is contained in:
2026-10-13 13:13:33 +03:00
parent 5d00e3f970
commit 97d089cf90
13 changed files with 484 additions and 10 deletions
+31
View File
@@ -0,0 +1,31 @@
#ifndef IMU_ULIMU_H_
#define IMU_ULIMU_H_
#include <stdbool.h>
#define GRAVITY_MS2 9.81f
typedef enum {
CMD_IDLE = 0,
CMD_CALIB_GYRO = 1,
CMD_CALIB_ACC_Z_POS = 2,
CMD_CALIB_ACC_Z_NEG = 3,
CMD_CALIB_ACC_X_POS = 4,
CMD_CALIB_ACC_X_NEG = 5,
CMD_CALIB_ACC_Y_POS = 6,
CMD_CALIB_ACC_Y_NEG = 7,
CMD_CALIB_APPLY = 8
} ImuCalibCmd_t;
typedef enum {
STATUS_IDLE = 0,
STATUS_IN_PROGRESS = 1,
STATUS_DONE = 2,
STATUS_ERROR = 3
} ImuCalibStatus_t;
bool ulImu_Init(void);
#endif /* IMU_ULIMU_H_ */