DexterInd / GoPiGo3

The GoPiGo3 is a Raspberry Pi Robot!
https://gopigo.io
Other
96 stars 85 forks source link

Line follower improvements #200

Closed CleoQc closed 6 years ago

CleoQc commented 6 years ago

Two improvements:

  1. 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.

  2. 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.