‘Gyro compassing’ is the term used to describe a system which uses a gyro to detect the direction of rotation of the Earth in order to measure true directions relative to the Earth.  

This is how the inertial system knows which way the aircraft is pointing (heading) and which way it is travelling (track).