Carried aboard Mars 2020, Terrain-Relative Navigation (TRN) is an autopilot that during landing can quickly figure out the spacecraft’s location over — and more importantly, calculate its future location on — the Martian surface.
https://scitechdaily.com/a-neil-armstrong-for-mars-landing-the-mars-2020-perseverance-rover/

