Maze_Solver  1.0
A Maze Solver Algorithm for BotnRoll ONE A
NonLinearControl Class Reference

#include <NonLinearControl.h>

Public Member Functions

void init ()
 sets the error to 0 More...
 
int calculateSpeedDif (int refSpeed)
 Calculates the speed reduction to be applied. More...
 

Public Attributes

int _error
 the diference of the detected line to the center of the line sensor More...
 

Member Function Documentation

int NonLinearControl::calculateSpeedDif ( int  refSpeed)

Calculates the speed reduction to be applied.

Parameters
refSpeedthe reference speed of the robot
Returns
the speed to be added/subtracted to each motor
void NonLinearControl::init ( )

sets the error to 0

Member Data Documentation

int NonLinearControl::_error

the diference of the detected line to the center of the line sensor


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