Add GetTargetSpeed
This commit is contained in:
parent
d5daab436e
commit
8b2f9439ca
@ -10,4 +10,6 @@ void Motor::SetTargetSpeed(float targetSpeed) {
|
|||||||
this->currentTargetSpeed = targetSpeed;
|
this->currentTargetSpeed = targetSpeed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float Motor::GetTargetSpeed() { return (this->currentTargetSpeed); }
|
||||||
|
|
||||||
void Motor::Update(float currentTimeMs) {}
|
void Motor::Update(float currentTimeMs) {}
|
5
Motor.h
5
Motor.h
@ -26,6 +26,11 @@ public:
|
|||||||
/// @brief Get the current target speed of the motor
|
/// @brief Get the current target speed of the motor
|
||||||
/// @return The speed between -1 (full backward), 0 (stop) and 1 (full
|
/// @return The speed between -1 (full backward), 0 (stop) and 1 (full
|
||||||
/// forward)
|
/// forward)
|
||||||
|
virtual float GetTargetSpeed();
|
||||||
|
|
||||||
|
/// @brief Get the current actual speed of the motor
|
||||||
|
/// @return The speed between -1 (full backward), 0 (stop) and 1 (full
|
||||||
|
/// forward)
|
||||||
virtual float GetActualSpeed();
|
virtual float GetActualSpeed();
|
||||||
|
|
||||||
virtual void Update(float currentTimeMs);
|
virtual void Update(float currentTimeMs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user