Piston positions of a compressor