Spring 2014, ECE 4180 project, Georgia Institute of Technolgoy. This is the autonomous driver program for the Robotics Cat and Mouse program.
Dependencies: IMUfilter ADXL345_I2C mbed ITG3200 USBHost mbed-rtos
Diff: GameCode.h
- Revision:
- 3:0a6e4d139b86
- Parent:
- 1:dacf7db790f6
--- a/GameCode.h Wed Apr 30 05:55:41 2014 +0000 +++ b/GameCode.h Wed Apr 30 12:25:47 2014 +0000 @@ -2,6 +2,8 @@ Serial pc(USBTX, USBRX); +void stop(); + bool gameOver = false; bool isGameOver(short x_hum, short y_hum, short x_cpu, short y_cpu) @@ -16,5 +18,6 @@ void endGame() { pc.printf("GAME OVER\n\r"); + stop(); exit(1); } \ No newline at end of file