Changing the piston stroke by changing the position of the swash plate