![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Code to run the microcontrollers on the R5 competition bot
Dependencies: LineSensors mbed
Diff: r5map.cpp
- Revision:
- 22:8f726dc175cd
- Parent:
- 19:9f4510646c9e
diff -r 44d9b42c04a9 -r 8f726dc175cd r5map.cpp --- a/r5map.cpp Sat Apr 18 04:38:53 2015 +0000 +++ b/r5map.cpp Sat Apr 18 04:57:20 2015 +0000 @@ -177,18 +177,6 @@ bool R5Map::getCurVisited() const { return map[pos.x][pos.y].visited; } -vector<char> R5Map::getSymbols(position cell) const -{ - if(cell.x >= 0 && cell.y >= 0 && cell.x <= 6 && cell.y <= 6) - return map[cell.x][cell.y].symbols; - else - { - cerr<<"ERROR: Position selection in R5Map::getSymbols(position) outside of map bounds!"<<endl; - vector<char> empty; - return empty; - } -} - int R5Map::getSize() const { return size; } void R5Map::printMap() const