Optical Shaft Encoder vs V5 rotation sensor

Are there any major or important differences between these two?

Which one works better with OkapiLib?

We are trying to do odometry and motion profiling.

the v5 rotation sensor gives slightly more precision

Rotation Sensor

The V5 Rotation Sensor measures shaft rotational position, total rotations and rotation speed. The rotational position is measured from 0° to 360° with 0.088 accuracy. The angle is determined absolutely and is not lost when the robot is powered off. The zero position can be set on the dashboard or by code. Rotations is the number of revolutions forward or reverse, and can be reset to zero as needed. Rotation is not stored and restarts at the current angle on each program execution. Shaft speed is measured in degrees per second.

Optical Shaft Encoders

With the Quadrature Encoder’s two output channels you can measure both the position and direction of rotation of a VEX shaft. This will allow you to calculate the speed of the shaft, as well as the distance it has traveled using programming software. Encoders are typically used for “infinite rotation” applications, such as a drive wheel. A Programming Kit is needed to change the program in the VEX Controller to use the Quadrature Encoder.

  • Measure Angular Travel
  • Determine Rotational Direction
  • Calculate Shaft Speed
  • Calculate Distance Traveled
  • Increase Navigational Control
  • More Autonomous Functionality

The encoder wheel in this kit has 90 slots This is ~2° accuracy