Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of IEEE_14_Freescale by
Diff: robot.h
- Revision:
- 26:ade7c813538f
- Parent:
- 17:e247d58d9f42
- Child:
- 27:688409727452
diff -r f5b8b0ebdcef -r ade7c813538f robot.h
--- a/robot.h Thu Mar 13 06:25:31 2014 +0000
+++ b/robot.h Fri Mar 14 00:38:51 2014 +0000
@@ -19,6 +19,8 @@
#include "droidBT.h"
class robot{
+private:
+ Timer stepTimer;
public:
SPI spi;
remoteEnc bigenc;
@@ -30,8 +32,7 @@
droidBT BTLink;
robot();
double x,y,rot;
- double pfac,ifac,dfac;
- double angfac;
+ int circleX,circleY,rectX,rectY,rectRot,triX,triY,triRot;
int absDriveForward(double angle, int dist);
int smoothMove(int distance, int rotate, int maxSpeed);
int driveForward(double angle, int dist);
@@ -39,6 +40,7 @@
double turn(double power, double degrees);
int moveTo(double xInches, double yInches);
int turntowards(double xInches, double yInches);
+ int pollForShapes();
};
#endif
