EE149
/
FinalProject
Final Project files for mBed development.
Diff: project.h
- Revision:
- 7:6e5cc24e1ce7
- Parent:
- 6:00b7198f0b51
diff -r 00b7198f0b51 -r 6e5cc24e1ce7 project.h --- a/project.h Thu Nov 13 00:00:14 2014 -0500 +++ b/project.h Thu Nov 13 05:02:37 2014 +0000 @@ -22,16 +22,8 @@ * Note that by default these output pins are hardwired to the 6 LEDs that * stripe the development extension board. */ -typedef struct { - DigitalOut pin15(p15), - DigitalOut pin15(p15), - DigitalOut pin15(p15), - DigitalOut pin15(p16), - DigitalOut pin15(p17), - DigitalOut pin15(p18), - DigitalOut pin15(p19), - DigitalOut pin15(p20) -} digi_out_pins; + + /** * @brief Driver forward. @@ -40,7 +32,7 @@ * @param[in] spd Drive speed. * @return Success or failure. */ -int foward(float amt, float spd); +int forward(float amt, float spd); /** * @brief Drive backward. @@ -49,7 +41,7 @@ * @param[in] spd Drive speed. * @return Success or failure. */ -int backward(float amt); +int backward(float amt, float spd); /** * @brief Turn right.