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
Mousr.h
- Committer:
- mfillinois
- Date:
- 2014-09-08
- Revision:
- 0:78e2af20cbf3
- Child:
- 2:e9042e88abf1
File content as of revision 0:78e2af20cbf3:
#pragma once
#include "mbed.h"
class Mousr
{
public:
Mousr();
void stop();
void straight(float speed);
void backwards(float speed);
void left(float speed);
void right(float speed);
void flipLeft();
void flipRight();
float getStraightSpeed();
float getRotateSlowSpeed();
float getRotateSpeed();
float getRotateFastSpeed();
private:
PwmOut m1a;
PwmOut m1b;
PwmOut m2a;
PwmOut m2b;
float straightSpeed;
float rotateSlowSpeed;
float rotateSpeed ;
float rotateFastSpeed;
float flipStraightSpeed;
float flipStraightWait;
float flipRotateSpeed;
float flipRotateWait;
};
