pylabrobot.formulatrix.mantis.driver.arm_kinematics.compute_corrected_encoder_reading#

pylabrobot.formulatrix.mantis.driver.arm_kinematics.compute_corrected_encoder_reading(*, reading: float, correction: Sequence[Tuple[float, float]]) → float#

An absolute encoder reading made linear by its one-revolution table.

Between two measured samples the ideal values are interpolated; past the last sample the table continues into the first, one span on.

Parameters:
  • reading (float) – the raw reading.

  • correction (Sequence[Tuple[float, float]]) – the table’s (ideal, measured) rows, measured ascending.

Return type:

float