fix: remove attitude_t, unify with INS_t

- Delete attitude_t struct from ins_task.h
- INS_Init() returns INS_t* directly instead of casting from INS.Gyro offset
- Change Gimbal_Upload_Data_s.gimbal_imu_data to INS_t* pointer
- Update gimbal.c and robot_cmd.c accordingly
This commit is contained in:
2026-05-30 00:27:39 +08:00
parent 9b52a9ec64
commit ea493af11f
6 changed files with 18 additions and 28 deletions
+1
View File
@@ -3,6 +3,7 @@
#include "controller.h"
#include "stdint.h"
#include "bsp_can.h"
#define LIMIT_MIN_MAX(x, min, max) (x) = (((x) <= (min)) ? (min) : (((x) >= (max)) ? (max) : (x)))