EE149
/
FinalProject
Final Project files for mBed development.
Diff: main.h
- Revision:
- 21:0c80a5d89ea3
- Parent:
- 18:eab7b0e89398
- Child:
- 22:46b9d9b2e35c
--- a/main.h Tue Dec 02 03:42:32 2014 +0000 +++ b/main.h Sat Dec 06 22:04:53 2014 +0000 @@ -13,11 +13,15 @@ #include <string.h> #include <stdarg.h> #include <stdio.h> -#define TURN_SPEED 0.25 -#define DRIVE_SPEED 0.1 +#include <math.h> +#define TURN_SPEED 0.15 +#define DRIVE_SPEED 0.2 #define ERR_SUCCESS 0 #define ERR_FAILURE 1 #define DRIVE_RATE 1/50 +#define TIME_FACT 1820 +#define CAL_SPEED .1 +#define CLOSE_ENOUGH .02 /** @@ -92,4 +96,12 @@ * Decide what to do next based on the status of the drawing so far. */ void next_action(); + +/** + * @brief Wait for a number of seconds, possibly fractional. + * + * This is because mBed wait() function SUCKS + */ +void timerWait(float); + #endif