Hub motor used as a middrive on a recumbent trike