getEncoderResolutionBits(increments: number): number
Computes the encoder resolution in bits from the total number of increments per revolution.
The resolution in bits is calculated as the ceiling of the base-2 logarithm
of the number of increments, which represents the minimum number of bits
needed to uniquely represent each encoder position.
Returns
The encoder resolution in bits.
Parameters
increments: number
Total number of increments (counts) per revolution.
Computes the encoder resolution in bits from the total number of increments per revolution.
The resolution in bits is calculated as the ceiling of the base-2 logarithm of the number of increments, which represents the minimum number of bits needed to uniquely represent each encoder position.
Returns
The encoder resolution in bits.