Modified HardwareMotor constructor to use a SpeedController instance