Questions about integrated motor encoders

My school’s robotics club is making the switch from timers to encoders, but we’ve encountered several problems while trying to use IMEs.

  1. How can I set IMEs to zero? I’ve been hearing that RobotC won’t allow IMEs to be set to zero for some reason.

  2. Is it possible to find motor speed and acceleration using encoders?

  3. Is it normal for encoders to be rather inaccurate without advanced programming (PID controllers)? We’ve sometimes reverted to using time because encoders were not any more accurate with the basic “turn motors on until encoder value reaches x”.

nMotorEncoder motor port ] = 0;

Not true.

Not directly, you need to use change in encoder count for specified delta time to calculate velocity. There is another way to get velocity from the IME but I would’t even try to do that if this is the first time you are using them.

The encoders are 100% accurate, however, many other things affect how accurate your use of the provided data will be.