13 :mPort(static_cast<motor_port_t>(port)),
19 ev3_motor_config(
getPort(), type);
26 ev3_motor_stop(mPort,
true);
35 if (mBrake ==
true && pwm == 0)
37 ev3_motor_stop(mPort,
true);
41 ev3_motor_set_power(mPort, mPWM);
void setBrake(bool brake)
motor_port_t getPort(void) const
Motor(ePortM port, bool brake=true, motor_type_t type=LARGE_MOTOR)