陀螺仪欧拉角的计算

This commit is contained in:
bmy
2023-12-22 22:39:59 +08:00
parent 2dffcf04f0
commit 20666b0c75
5 changed files with 212 additions and 36 deletions

View File

@@ -42,13 +42,12 @@ void by_ips_show(void)
}
// 按钮
ips200_show_string(0, 16, "imu:");
ips200_show_float(46, 16, imu_acc_x, 2, 2);
ips200_show_float(106, 16, imu_acc_y, 2, 2);
ips200_show_float(166, 16, imu_acc_z, 2, 2);
ips200_show_float(46, 32, imu_gyro_x, 2, 2);
ips200_show_float(106, 32, imu_gyro_y, 2, 2);
ips200_show_float(166, 32, imu_gyro_z, 2, 2);
ips200_show_float(46, 48, imu660ra_temperature, 2, 2);
printf("%d,%d,%d\n",(int16_t)(imu_gyro_x*10),(int16_t)(imu_gyro_y*10),(int16_t)(imu_gyro_z*10));
ips200_show_float(46, 32, eulerAngle.pitch, 3, 2);
ips200_show_float(46, 48, eulerAngle.roll, 3, 2);
ips200_show_float(46, 64, eulerAngle.yaw, 3, 2);
// ips200_show_float(46 , 32, icm_data.gyro_x, 2, 2);
// ips200_show_float(106, 32, icm_data.gyro_y, 2, 2);
// ips200_show_float(166, 32, icm_data.gyro_z, 2, 2);
ips200_show_float(46, 80, imu660ra_temperature, 2, 2);
// printf("%d,%d,%d\n", (int16_t)(icm_data.gyro_x * 10), (int16_t)(icm_data.gyro_y * 10), (int16_t)(icm_data.gyro_z * 10));
}