
Dr. Davis and Dr. Dyer special studies robotics project
Dependencies: BSP_DISCO_F469NI LCD_DISCO_F469NI TS_DISCO_F469NI mbed Motordriver
Fork of Configurable_Robots by
Diff: Classes/RobotMVC/RobotModel.h
- Revision:
- 18:f2a516ad24eb
- Parent:
- 11:10a7bb4bc714
- Child:
- 19:c44dc6716201
--- a/Classes/RobotMVC/RobotModel.h Wed May 10 04:09:45 2017 +0000 +++ b/Classes/RobotMVC/RobotModel.h Wed May 10 14:10:43 2017 +0000 @@ -3,6 +3,7 @@ //William Bonner #include "mbed.h" +#include "motordriver.h" class RobotModel @@ -15,6 +16,11 @@ int _threshold; int _cds[2]; + Timer sonar_t; + + float speedLeft; + float speedRight; + public: //Constructors/Destructors @@ -36,4 +42,14 @@ int checkLine(int b); //scan the ADC on channel n int scan(int n); + + //Motor Methods + void StopMotors(void); + void TurnRight(); + void TurnLeft(); + void DriveStraight(); + void DriveSquare(); + + float LeftSpeed(); + float RightSpeed(); }; \ No newline at end of file