Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在此处输入图像描述
我想使用智能手机的 IMU 传感器加载 x、y、z 数据。
Input_gyro_attitude_eulerAngles = Input.gyro.attitude.eulerAngles - 偏移量;// 陀螺角度
通过上面的代码,虽然有一点点错误,y轴和z轴都加载得很好。
但是对于 x 轴,只记录了 270 到 90 度范围内的值,而没有记录 90 到 270 之间的值,如图所示。
我怎样才能让它正确加载?