#include <linefollower.h>
◆ linefollower_id_t
◆ linefollower_result_t
◆ Linefollower()
| Device::Linefollower::Linefollower |
( |
Robot & | robot | ) |
|
|
explicit |
◆ ~Linefollower()
| Device::Linefollower::~Linefollower |
( |
| ) |
|
◆ get_left_sensor_color()
Get the last measured color from the left sensor.
- Returns
- The color last measured by the right sensor
◆ get_right_sensor_color()
Get the last measured color from the right sensor.
- Returns
- The color last measured by the right sensor
◆ initialize()
| void Device::Linefollower::initialize |
( |
| ) |
|
Sets up the necessary GPIO pin and ADC channel.
◆ measure()
| void Device::Linefollower::measure |
( |
| ) |
|
Measures the currently seen color from both sensors.
◆ REFLECTIVITY_THRESHOLD
| uint16_t Device::Linefollower::REFLECTIVITY_THRESHOLD = 2300 |
|
staticconstexpr |
The documentation for this class was generated from the following files: