Maze_Solver  1.0
A Maze Solver Algorithm for BotnRoll ONE A
Line.h
Go to the documentation of this file.
1 #ifndef LINE_H
2 #define LINE_H
3 
4 #if defined(ARDUINO) && ARDUINO >= 100
5 #include "Arduino.h"
6 #else
7 #include "WProgram.h"
8 #endif
9 
10 // N None
11 // B Black
12 // R Right
13 // L Left
14 // T Track
15 
16 class Line
17 {
18  public:
20  unsigned int line[8];
21  unsigned char lineBin[8];
24 
26  Line();
27 
29  void lineADConvert();
30 
32  void setSignature();
33 
35  bool isEqualTo(unsigned char aLineBin[8]);
36 };
37 
38 #endif
char previousLineSignature
Definition: Line.h:23
unsigned int line[8]
class variables
Definition: Line.h:20
unsigned char lineBin[8]
Definition: Line.h:21
char lineSignature
Definition: Line.h:22
void lineADConvert()
converts line analog information to digital bits
Definition: Line.cpp:9
bool isEqualTo(unsigned char aLineBin[8])
retrieves true if lines are exactly equal
Definition: Line.cpp:19
Definition: Line.h:16
Line()
default constructor
Definition: Line.cpp:3
void setSignature()
set the signature based on LineBin
Definition: Line.cpp:28