Spring 2014, ECE 4180 project, Georgia Institute of Technolgoy. This is the human driver (RF controller) program for the Robotics Cat and Mouse program.
Dependencies: ADXL345_I2C_NEST HMC6352 IMUfilter ITG3200_NEST USBHost mbed-rtos mbed
Fork of Project by
Diff: GameCode.h
- Revision:
- 6:3fb9f96765f6
- Parent:
- 5:210cd333f770
diff -r 210cd333f770 -r 3fb9f96765f6 GameCode.h --- a/GameCode.h Wed Apr 30 05:53:51 2014 +0000 +++ b/GameCode.h Wed Apr 30 12:23:04 2014 +0000 @@ -1,6 +1,7 @@ -#define THRESHOLD 500 +#define THRESHOLD 1000 Serial pc(USBTX, USBRX); +void stop(); bool gameOver = false; @@ -17,5 +18,6 @@ void endGame() { pc.printf("GAME OVER\n\r"); + stop(); exit(1); } \ No newline at end of file