I am not entirely sure how much the pyramids had to do with solar observations or sun worship but many of the pyramids lie along the path of solar eclipses. One of the most powerful Egyptian gods was Ra the Sun god, of course, so the Sun was very important to them. Horus and Atum were also different names for the Sun the first associated with sunrise and the other with the evening Sun.
David