The Mars Science Laboratory had its sights set on the Sun when Phobos passed directly in front of it.