Control of pumps with rotary cylinder block by varying the relative positions of a swash plate and a cylinder block