A method of detecting a position of an axial cam shifting assembly configured to selectively open and close engine valves associated with a valvetrain assembly, the axial cam shifting assembly comprising a camshaft, a first cam assembly received on the camshaft and having two distinct cam profiles including a first cam profile, and a second cam profile, an actuator having a first pin and a second pin, a carriage arranged on the camshaft and defining a track that selectively receives the first pin and the second pin, wherein the axial cam shifting assembly is movable between a first position, and a second position corresponding to alignment of the respective two distinct cam profiles;
- and a position sensor that communicates a signal indicative of a position of the carriage, the method comprising:
- receiving, at a controller, the signal over a predetermined time representative of a crankshaft angle;
- determining, at the controller, whether an edge of the track in the carriage has been detected;
- determining, at the controller, whether the edge is a rising edge;
- determining, at the controller, whether the carriage is in one of the first position or the second position based on determining whether the edge is a rising edge.