MipTasks::LFDistanceEstimator Class Reference
[Line Following]

Estimates the distance from the center of the line from the reading of two ground sensors. More...

#include <LineFollowing.h>

List of all members.

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.


Detailed Description

Estimates the distance from the center of the line from the reading of two ground sensors.

Constructor & Destructor Documentation

MipTasks::LFDistanceEstimator::LFDistanceEstimator ( Decimal  lineValue = 0.0,
Decimal  lineSlope = 1.0 
) [inline]


Member Function Documentation

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.

Returns:
Estimated distance.
Parameters:
leftReading Reading of the left ground sensor.
rightReading Reading of the right ground sensor.


The documentation for this class was generated from the following file:

Generated on Mon Feb 20 07:01:13 2017 for MIP by  doxygen 1.5.6