RoboidControl-cpp/Motor.cpp
2024-01-03 11:50:40 +01:00

16 lines
253 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;
}