EE149
/
FinalProject
Final Project files for mBed development.
Diff: main.h
- Revision:
- 9:3a0433c391cb
- Parent:
- 8:12d780f7443e
- Child:
- 10:94b068b2ce1d
diff -r 12d780f7443e -r 3a0433c391cb main.h --- a/main.h Thu Nov 13 07:12:31 2014 +0000 +++ b/main.h Sat Nov 15 05:07:24 2014 +0000 @@ -8,32 +8,32 @@ #ifndef _PROJECT_H #define _PROJECT_H -#include <stdio.h> #include "mbed.h" #include "m3pi.h" -#define TURN_SPEED 0.25 +#include <string.h> +#include <stdarg.h> +#include <stdio.h> +#define TURN_SPEED 0.25 #define DRIVE_SPEED 0.5 #define ERR_SUCCESS 0 #define ERR_FAILURE 1 - +#define DRIVE_RATE 1/50 /** * @brief Driver forward. * - * @param[in] amt Amount to drive forward. - * @param[in] spd Drive speed. + * @param[in] amt Amount to drive forward. In centimeters. * @return Success or failure. */ -int forward(float amt, float spd); +int forward(int amt); /** * @brief Drive backward. * - * @param[in] amt Amount to drive backward. - * @param[in] spd Drive speed. + * @param[in] amt Amount to drive backward. In centimeters. * @return Success or failure. */ -int backward(float amt, float spd); +int backward(int amt); /** * @brief Turn right. @@ -57,15 +57,6 @@ * @brief Controller decision logic. * * Decide what to do next based on the status of the drawing so far. - * */ void next_action(); - -/** - * @brief Print a formatted message to the LCD - */ -void pretty_print(char* msg); - - - #endif