Smartcar Shield
|
#include <Control.hpp>
Public Member Functions | |
virtual | ~Control ()=default |
virtual void | setAngle (int angle)=0 |
Sets the driving angle in degrees [-90, 90]. More... | |
virtual void | setSpeed (int speed)=0 |
Sets the driving speed as percentage of the total motor speed where the sign represents the direction of movement [-100, 100]. More... | |
virtual void | overrideMotorSpeed (int firstMotorSpeed, int secondMotorSpeed)=0 |
Set the motor speed individually as a percentage of the motors` total power. More... | |
Interface to generalize all classes that can provide a way to control a Car
Definition at line 23 of file Control.hpp.
|
virtualdefault |
|
pure virtual |
Set the motor speed individually as a percentage of the motors` total power.
Use this with caution.
firstMotorSpeed | The first motor speed [-100, 100] |
secondMotorSpeed | The second motor speed [-100, 100] |
Example:
Implemented in AckermanControl, and DifferentialControl.
|
pure virtual |
Sets the driving angle in degrees [-90, 90].
angle | The driving angle |
Example:
Implemented in AckermanControl, and DifferentialControl.
|
pure virtual |
Sets the driving speed as percentage of the total motor speed where the sign represents the direction of movement [-100, 100].
speed | The driving speed |
Example:
Implemented in AckermanControl, and DifferentialControl.