Reads a calibration recording and computes calibration values. Spin the ball a known number of times in one direction while recording.
Value
A list with two elements:
counts_per_rotation: Sensor counts per full rotation (forball_calibrationinread_trackball).calibration_factor: Distance per sensor count (forset_unit_space).
Examples
# Roll the ball a known number of turns, then convert sensor counts to cm
path <- system.file("extdata", "trackball_sensor_1.csv", package = "aniread")
calibrate_trackball(path, ball_diameter = 5, ball_rotations = 10)
#> $counts_per_rotation
#> [1] 2.2
#>
#> $calibration_factor
#> [1] 7.139983
#>