Historically , accurate knowledge of the positions of the Sun , Moon , planets and stars has been essential in celestial navigation ( the use of celestial objects to guide navigation ) and in the making of calendars .