37 Motor(EPort port,EDirection direction = EDirection::CLOCKWISE,
bool reset_count =
true) : mHasError(false) {
38 mMotor = pup_motor_get_device(
static_cast<pbio_port_id_t
>(port));
43 pbio_error_t ret = pup_motor_setup(mMotor,
static_cast<pup_direction_t
>(direction), reset_count);
44 if ( ret != PBIO_SUCCESS ) {