panstephan 发表于 2011-5-7 11:44:34

帮忙看看这个是上面意思

Warning: undefined behavior: the order of volatile accesses is undefined in this statement C:\Users\pan\Desktop\update too\main.c 86
Warning: undefined behavior: the order of volatile accesses is undefined in this statement C:\Users\pan\Desktop\update too\main.c 87
Warning: undefined behavior: the order of volatile accesses is undefined in this statement C:\Users\pan\Desktop\update too\main.c 92

这个警告是什么意思呢?
roll = atan2(sesors_accel_y,sesors_accel_z);
pitch = atan2(-sesors_accel_x, sesors_accel_z);
kalman_output = kalman_update(navigation_roll_rate, roll);
在上面三处出现的!
该怎么解决呢?
页: [1]
查看完整版本: 帮忙看看这个是上面意思