Imagine snapping a photo of a planet while zipping past it at 17,000 miles per hour. That's basically what NASA accomplished on May 15, when the Psyche spacecraft flew past Mars and used the planet's gravity like a slingshot to push itself toward a distant metal world in our solar system.

The flyby was a major success. Psyche passed Mars at an altitude of 2,864 miles — about the distance from New York City to Cape Town — giving the spacecraft a much-needed speed boost. More importantly, the close pass let scientists test the spacecraft's three main instruments on a planet they already know well, before the real work begins at the asteroid.

The instruments performed beautifully. The spacecraft's gamma-ray and neutron spectrometer, which will eventually help researchers figure out what the asteroid Psyche is made of, picked up neutrons streaming off Mars just as scientists expected. "The neutron spectrometer detected a count-rate enhancement close to what we anticipated. It was very gratifying to see," said David Lawrence, the instrument's science lead at Johns Hopkins University. The magnetometer, meanwhile, measured the magnetic field around Mars for the first time, catching the moment when the solar wind slammed into the planet's invisible magnetic shield. "This flyby calibration effort validated the instrument's performance under dynamic conditions while also revealing the fascinating physics of planetary magnetism," said Ben Weiss from MIT.

But the showstopper was the view. Psyche's twin cameras began photographing Mars in early May, capturing the planet as a thin, glowing crescent lit by sunlight filtering through its atmosphere. As the spacecraft drew closer, the cameras recorded wind-sculpted craters, the icy south pole, and the massive double-ringed Huygens crater. Scientists stitched a full month of images into a time-lapse video showing the approach and departure. "The imager performed brilliantly, delivering some rarely seen views of the Red Planet," said Jim Bell from Arizona State University.

The spacecraft launched in 2023 and won't reach its destination until 2029. When it arrives at asteroid Psyche — a giant chunk of iron and nickel orbiting in the main asteroid belt between Mars and Jupiter — it will spend about two years mapping the surface and probing its structure. Scientists believe the asteroid might be the exposed core of an ancient planet that never fully formed, making it a time capsule from the early solar system.

For now, though, the Mars flyby has given the team confidence that the instruments are ready for the real mission ahead.