#include <LineFollowing.h>
Public Member Functions | |
LFDistanceEstimator (Decimal lineValue=0.0, Decimal lineSlope=1.0) | |
Decimal | estimate (Decimal _leftReading, Decimal _rightReading) |
Estimates the distance from the center of the line from the reading of two ground sensors. |
MipTasks::LFDistanceEstimator::LFDistanceEstimator | ( | Decimal | lineValue = 0.0 , |
|
Decimal | lineSlope = 1.0 | |||
) | [inline] |
Decimal MipTasks::LFDistanceEstimator::estimate | ( | Decimal | _leftReading, | |
Decimal | _rightReading | |||
) | [inline] |
Estimates the distance from the center of the line from the reading of two ground sensors.
leftReading | Reading of the left ground sensor. | |
rightReading | Reading of the right ground sensor. |