return sensor readings so that the left reading corresponds to the left sensor, in line follower.read()
read_raw_sensors() was left alone, as it clearly says it's raw readings.
accelerate the read() method by not reading three files of the disk each time. Rather, remember the white and black calibrations as class members, and calculate threshold only when this calibration changes.
Two improvements:
return sensor readings so that the left reading corresponds to the left sensor, in line follower.read() read_raw_sensors() was left alone, as it clearly says it's raw readings.
accelerate the read() method by not reading three files of the disk each time. Rather, remember the white and black calibrations as class members, and calculate threshold only when this calibration changes.
DexterOS PR: https://github.com/DexterInd/Sam_Dev/pull/621 is dependent on this one.