encoder_set_tick_count(encoder_index, count)
Tells the robot controller the tick count of the encoder. This function is useful for absolute encoders (e.g. MODBUS).
>>> encoder_set_tick_count(0, 1234)
This example sets the tick count of encoder 0 to 1234. Assumes that the encoder is enabled using encoder_enable_set_tick_count
first.
Parameters
encoder_index:
Index of the encoder to define. Must be either 0 or 1.
count:
The tick count to set. Must be within the range of the encoder.