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-10-08
- Revision:
- 4:099453043c63
- Parent:
- 3:b3ec75e9163f
File content as of revision 4:099453043c63:
#pragma once
#include "mbed.h"
class Mousr
{
public:
Mousr();
void stop();
void lefttire(float speed);
void righttire(float speed);
void left(float speed);
void right(float speed);
float getRotateSlowSpeed();
float getRotateSpeed();
float getRotateFastSpeed();
void left90();
void left180();
void right90();
void right180();
private:
DigitalOut mstby;
PwmOut m_a1;
PwmOut m_a2;
PwmOut mpwma;
PwmOut m_b1;
PwmOut m_b2;
PwmOut mpwmb;
float rotateSlowSpeed;
float rotateSpeed;
float rotateFastSpeed;
float flipRotateWait;
float flip90Wait;
float flip180Wait;
};
