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.
Dependencies: mbed
Fork of RCControlOOP by
Diff: Mousr.h
- Revision:
- 4:099453043c63
- Parent:
- 3:b3ec75e9163f
--- a/Mousr.h Wed Oct 08 19:29:07 2014 +0000
+++ b/Mousr.h Wed Oct 08 19:36:05 2014 +0000
@@ -7,28 +7,17 @@
void stop();
void lefttire(float speed);
void righttire(float speed);
- void backwards(float speed);
void left(float speed);
void right(float speed);
- void flipLeft();
- void flipRight();
- float getStraightSpeed();
- float getStraightSlowSpeed();
float getRotateSlowSpeed();
float getRotateSpeed();
float getRotateFastSpeed();
- float flip90Wait;
- float flip180Wait;
void left90();
void left180();
void right90();
void right180();
private:
- // PwmOut m1a;
- // PwmOut m1b;
- // PwmOut m2a;
- // PwmOut m2b;
DigitalOut mstby;
PwmOut m_a1;
PwmOut m_a2;
@@ -37,15 +26,12 @@
PwmOut m_b2;
PwmOut mpwmb;
- float straightSpeed;
- float straightSlowSpeed;
+
float rotateSlowSpeed;
- float rotateSpeed ;
+ float rotateSpeed;
float rotateFastSpeed;
- float flipStraightSpeed;
- float flipStraightWait;
- float flipStopWait;
- float flipRotateSpeed;
float flipRotateWait;
+ float flip90Wait;
+ float flip180Wait;
};
