Peekerpoke
0.1 beta
|
#include <Motor.h>
Public Member Functions | |
Motor () | |
Default constructor of class Motor. More... | |
~Motor () | |
bool | isWork () |
Check if the motor can work. More... | |
void | turn180 () |
Control function for Motor. More... | |
void | turnLeft () |
Control function for Motor. More... | |
void | turnRight () |
Control function for Motor. More... | |
void | goStraight () |
Control function for Motor. More... | |
void | stop () |
Control function for Motor. More... | |
Private Member Functions | |
void | initial () |
call by constructor More... | |
bool | callSystem (const string &s) |
Exec system command and return result. More... | |
Private Attributes | |
bool | work |
Motor::~Motor | ( | ) |
|
private |
Exec system command and return result.
void Motor::goStraight | ( | ) |
Control function for Motor.
|
private |
call by constructor
bool Motor::isWork | ( | ) |
Check if the motor can work.
void Motor::stop | ( | ) |
Control function for Motor.
void Motor::turn180 | ( | ) |
Control function for Motor.
void Motor::turnLeft | ( | ) |
Control function for Motor.
void Motor::turnRight | ( | ) |
Control function for Motor.
|
private |