![]() |
Smart Minotaur
|
The MotorVelocity class stores the velocities of a robot with differential drive for its left and right wheel. Mehr ...
#include <MotorVelocity.hpp>
Öffentliche Methoden | |
MotorVelocity (const MotorVelocity &p_velocity) | |
MotorVelocity (const float p_leftMPS, const float p_rightMPS) | |
void | set (const float p_leftMPS, const float p_rightMPS) |
void | zero () |
MotorVelocity & | operator+= (MotorVelocity const &motorVel) |
MotorVelocity & | operator-= (MotorVelocity const &motorVel) |
MotorVelocity & | operator*= (const float factor) |
MotorVelocity & | operator/= (const float divisor) |
Öffentliche Attribute | |
float | leftMPS |
float | rightMPS |
The MotorVelocity class stores the velocities of a robot with differential drive for its left and right wheel.
The velocities are stored as meter per second. Mathematical operators provide a simpler usage of its values.