;短gy;
;短啊;
short Axyz;浮动angleX; float angleY; float angleZ;
MPU_Get_Gyroscope(&gx, &gy, &gz);
MPU_Get_Accelerometer(&ax, &ay, &az);
Axyz = ax * ax + ay * ay + az * az;
angleX = acos((double)(ax/sqrt(Axyz))) * 57.295780f;
angleY = acos((double)(ay/sqrt(Axyz))) * 57.295780f;
angleZ = acos((double)(az/sqrt(Axyz))) * 57.295780f;
arch_printf("%f, %f, %f\r\n", angleX, angleY , angleZ );
when the sensor run, the console output : "FATAL: unsupported printf character: f., FATAL: unsupported printf character: f., FATAL: unsupported printf character: f."
i check the arch_printf(), find that arch_printf() does not support formart float & double.
so how can i debug the float data with arch_printf()?
pls help me, ths.