Sensing gearshift position