RoboidControl-cpp/Motor.cpp
2023-12-05 12:25:27 +01:00

15 lines
252 B
C++

#include "Motor.h"
#include <time.h>
Motor::Motor() {
type = (int)Thing::UncontrolledMotorType;
}
float Motor::GetSpeed() {
return this->currentTargetSpeed;
}
void Motor::SetSpeed(float targetSpeed) {
this->currentTargetSpeed = targetSpeed;
}