removed gridSize from the template arguments

- not needed and code much cleaner
some minor changes
new test-cases
This commit is contained in:
2016-01-25 15:53:12 +01:00
parent 9947dced15
commit 5aedce47f1
16 changed files with 167 additions and 66 deletions

View File

@@ -45,7 +45,7 @@ private:
public:
template <int gridSize_cm> State getDestination(Grid<gridSize_cm, T>& grid, State start, float distance_m) {
template <int gridSize_cm> State getDestination(Grid<T>& grid, State start, float distance_m) {
int retries = 2;
State res;
@@ -73,7 +73,7 @@ private:
return Heading(from.x_cm, from.y_cm, to.x_cm, to.y_cm);
}
template <int gridSize_cm> State walk(Grid<gridSize_cm, T>& grid, State cur, float distRest_m) {
State walk(Grid<T>& grid, State cur, float distRest_m) {
drawer.reset();;