Maze_Solver  1.0
A Maze Solver Algorithm for BotnRoll ONE A
NonLinearControl.h
Go to the documentation of this file.
1 // NonLinearControl.h
2 
3 #ifndef _NONLINEARCONTROL_h
4 #define _NONLINEARCONTROL_h
5 
6 #if defined(ARDUINO) && ARDUINO >= 100
7 #include "Arduino.h"
8 #else
9 #include "WProgram.h"
10 #endif
11 
12 #if defined(ARDUINO) && ARDUINO >= 100
13 #include "Arduino.h"
14 #else
15 #include "WProgram.h"
16 #endif
17 
19 {
20  public:
21  int _error;
22 
24  void init();
25 
27 
31  int calculateSpeedDif(int refSpeed);
32 };
33 
34 #endif
35 
int calculateSpeedDif(int refSpeed)
Calculates the speed reduction to be applied.
Definition: NonLinearControl.cpp:9
Definition: NonLinearControl.h:18
void init()
sets the error to 0
Definition: NonLinearControl.cpp:4
int _error
the diference of the detected line to the center of the line sensor
Definition: NonLinearControl.h:21