Maze_Solver
1.0
A Maze Solver Algorithm for BotnRoll ONE A
Main Page
Classes
Files
File List
File Members
Path.h
Go to the documentation of this file.
1
#ifndef PATH_H
2
#define PATH_H
3
4
#if defined(ARDUINO) && ARDUINO >= 100
5
#include "Arduino.h"
6
#else
7
#include "WProgram.h"
8
#endif
9
11
enum
MoveType
{
MOVE_STOP
,
MOVE_STRAIGHT
,
MOVE_NORMAL
,
MOVE_RIGHT
,
MOVE_FORWARD
,
MOVE_LEFT
,
MOVE_TURN_ARROUND
};
12
13
class
Path
14
{
15
public
:
17
String
getPath
();
18
20
void
setPath
(String newPath);
21
23
void
updatePath
(
MoveType
newMove);
24
26
void
getShortestPath
(
Path
& exploredPath);
27
28
private
:
29
String _path;
30
};
31
32
#endif
MOVE_FORWARD
Definition:
Path.h:11
MOVE_RIGHT
Definition:
Path.h:11
MOVE_TURN_ARROUND
Definition:
Path.h:11
MOVE_STRAIGHT
Definition:
Path.h:11
Path
Definition:
Path.h:13
MoveType
MoveType
Admissible movements.
Definition:
Path.h:11
MOVE_STOP
Definition:
Path.h:11
Path::setPath
void setPath(String newPath)
sets the path
Definition:
Path.cpp:8
Path::getShortestPath
void getShortestPath(Path &exploredPath)
calculates and retrieves the shortest path from the given exploredPath
Definition:
Path.cpp:42
MOVE_NORMAL
Definition:
Path.h:11
Path::updatePath
void updatePath(MoveType newMove)
inserts a newMove to the path
Definition:
Path.cpp:13
MOVE_LEFT
Definition:
Path.h:11
Path::getPath
String getPath()
retrieves the path
Definition:
Path.cpp:3
source_code
MazeSolver
Path.h
Generated on Sun Mar 1 2015 01:03:31 for Maze_Solver by
1.8.9.1