17 lines
444 B
C++
17 lines
444 B
C++
#include "Motor.h"
|
|
|
|
namespace RoboidControl {
|
|
|
|
RoboidControl::Motor::Motor(Participant* owner)
|
|
: Thing(owner, Type::UncontrolledMotor) {}
|
|
|
|
// RoboidControl::Motor::Motor(Thing* parent)
|
|
// : Thing(parent, Type::UncontrolledMotor) {}
|
|
|
|
Motor::Motor(Thing& parent) : Thing(Type::UncontrolledMotor, parent) {}
|
|
|
|
void RoboidControl::Motor::SetTargetSpeed(float targetSpeed) {
|
|
this->targetSpeed = targetSpeed;
|
|
}
|
|
|
|
} // namespace RoboidControl
|