15 lines
252 B
C++
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;
|
|
}
|