On Sep.10,I posted the message regarding rotation-sensor problem. I realized that the first threshold value '0x6fc0' in CURRENT_STATE is too small. Some sensors give raw values around 0x7000. #define CURRENT_STATE (raw<0x6fc0?STATE_0:...STATE_3))) (...) (25 years ago, 17-Oct-99, to lugnet.robotics.rcx.legos)
|