seeing i robot - with all the file systems and complete code
Dependencies: mbed SRF05 Servo CMPS03
Serializer Class Reference
Serializer Class to communicate with Robotics Connection Serializer(tm) board. More...
#include <Serializer.h>
Public Member Functions | |
Serializer () | |
Constructor. | |
~Serializer () | |
Destructor. | |
void | ClearCountLeft () |
Clears left motor encoder count. | |
void | ClearCountRight () |
Clears right motor encoder count. | |
void | ClearCount () |
Clears motors encoder counts. | |
void | SetSpeedLeft (int inPsec) |
Sets left motor speed. | |
void | SetSpeedRight (int inPsec) |
Sets right motor speed. | |
void | SetSpeed (int inPsec) |
Sets speed for both motors. | |
void | SetVPID (int, int, int, int) |
Sets VPID. | |
void | SetDPID (int, int, int, int) |
Sets DPID. | |
void | DiGoLeft (int inches, int inPsec) |
Sets left motor distance and speed. | |
void | DiGoRight (int inches, int inPsec) |
Sets right motor distance and speed. | |
void | DiGo (int inches, int inPsec) |
Sets both motors distance and speed. | |
void | Stop () |
Stops both motors. |
Detailed Description
Serializer Class to communicate with Robotics Connection Serializer(tm) board.
Definition at line 26 of file Serializer.h.
Constructor & Destructor Documentation
Serializer | ( | ) |
~Serializer | ( | ) |
Destructor.
Definition at line 58 of file Serializer.cpp.
Member Function Documentation
void ClearCount | ( | ) |
Clears motors encoder counts.
Definition at line 78 of file Serializer.cpp.
void ClearCountLeft | ( | ) |
Clears left motor encoder count.
Definition at line 69 of file Serializer.cpp.
void ClearCountRight | ( | ) |
Clears right motor encoder count.
Definition at line 73 of file Serializer.cpp.
void DiGo | ( | int | inches, |
int | inPsec | ||
) |
Sets both motors distance and speed.
- Parameters:
-
inches Distance in ticks inPsec Motor Speed
Definition at line 133 of file Serializer.cpp.
void DiGoLeft | ( | int | inches, |
int | inPsec | ||
) |
Sets left motor distance and speed.
- Parameters:
-
inches Distance in ticks inPsec Motor Speed
Definition at line 117 of file Serializer.cpp.
void DiGoRight | ( | int | inches, |
int | inPsec | ||
) |
Sets right motor distance and speed.
- Parameters:
-
inches Distance in ticks inPsec Motor Speed
Definition at line 125 of file Serializer.cpp.
void SetDPID | ( | int | p, |
int | i, | ||
int | d, | ||
int | a | ||
) |
void SetSpeed | ( | int | inPsec ) |
Sets speed for both motors.
- Parameters:
-
inPsec Motor Speed in inches per second
Definition at line 98 of file Serializer.cpp.
void SetSpeedLeft | ( | int | inPsec ) |
Sets left motor speed.
- Parameters:
-
inPsec Motor Speed in inches per second
Definition at line 83 of file Serializer.cpp.
void SetSpeedRight | ( | int | inPsec ) |
Sets right motor speed.
- Parameters:
-
inPsec Motor Speed in inches per second
Definition at line 90 of file Serializer.cpp.
void SetVPID | ( | int | p, |
int | i, | ||
int | d, | ||
int | l | ||
) |
void Stop | ( | ) |
Stops both motors.
Definition at line 62 of file Serializer.cpp.
Generated on Sun Jul 24 2022 09:54:37 by 1.7.2