Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# SFHS_mmSim
Micro-mouse sim software for SFHS robotics team.
See https://github.com/Saint-Francis-Robotics-Team2367/SFHS_mmSim instead.
8 changes: 5 additions & 3 deletions microMouseServer/microMouseServer/microMouseServer.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ TEMPLATE = app
SOURCES += mazegui.cpp\
main.cpp \
micromouseserver.cpp \
mazeBase.cpp
mazeBase.cpp \
studentAi.cpp


HEADERS += micromouseserver.h \
HEADERS += \
mazeConst.h \
mazeBase.h \
mazegui.h
mazegui.h \
micromouseserver.h

FORMS += micromouseserver.ui
23 changes: 0 additions & 23 deletions microMouseServer/microMouseServer/micromouseserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,26 +501,3 @@ void microMouseServer::turnRight()
break;
}
}

void microMouseServer::studentAI()
{
/*
* The following are the eight functions that you can call. Feel free to create your own fuctions as well.
* Remember that any solution that calls moveForward more than once per call of studentAI() will have points deducted.
*
*The following functions return if there is a wall in their respective directions
*bool isWallLeft();
*bool isWallRight();
*bool isWallForward();
*
*The following functions move the mouse. Move forward returns if the mouse was able to move forward and can be used for error checking
*bool moveForward();
*void turnLeft();
*void turnRight();
*
* The following functions are called when you need to output something to the UI or when you have finished the maze
* void foundFinish();
* void printUI(const char *mesg);
*/

}
4 changes: 2 additions & 2 deletions microMouseServer/microMouseServer/micromouseserver.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef MICROMOUSESERVER_H
#define MICROMOUSESERVER_H
#define MICROMOUSESERVER_HPP
#include "mazeConst.h"
#include "mazeBase.h"
#include "mazegui.h"
Expand All @@ -15,7 +15,7 @@


namespace Ui {
class microMouseServer;
class microMouseServer;
}

class microMouseServer : public QMainWindow
Expand Down
30 changes: 30 additions & 0 deletions microMouseServer/microMouseServer/studentAi.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#ifndef STUDENT_AI_CPP
#define STUDENT_AI_CPP

#include "micromouseserver.h"
#include "ui_micromouseserver.h"

void microMouseServer::studentAI()
{
/*
* The following are the eight functions that you can call. Feel free to create your own fuctions as well.
* Remember that any solution that calls moveForward more than once per call of studentAI() will have points deducted.
*
*The following functions return if there is a wall in their respective directions
*bool isWallLeft();
*bool isWallRight();
*bool isWallForward();
*
*The following functions move the mouse. Move forward returns if the mouse was able to move forward and can be used for error checking
*bool moveForward();
*void turnLeft();
*void turnRight();
*
* The following functions are called when you need to output something to the UI or when you have finished the maze
* void foundFinish();
* void printUI(const char *mesg);
*/


}
#endif