NASA Mars Exploration Rover Opportunity used its panoramic camera to snap pictures of Mars moon Deimos. Three frames were taken with long exposures to measure Deimos position with respect to the background stars.
http://photojournal.jpl.nasa.gov/catalog/PIA12290