Anyone building precision weapons has gotten fairly good at this.
If you've seen some of the Lunar or Martian landing videos, you'll notice that it's very hard to tell the scale. Especially on the Moon, the lack of atmosphere to disturb the surface makes it fractal-like, which probably really messes with the CV algorithm. It'd work fine when high up, but as you approach for landing, it would probably struggle, especially for, say, estimating how far away the surface is.
https://en.wikipedia.org/wiki/Kalman_filter
For distance during landing I would be thinking a spatially maximally distributed array of quartz-shielded, thermally-supported laser TOF sensors along nominal extremities, but that's just because they're familiar to me, small, power-efficient, highly linear, relatively accurate, and cheap. Unsure if the IC physics assumptions work in non-atmospheric conditions. Perhaps the output can be re-scaled to obtain cheap and accurate enough readings.
A non-dilettante with an actual physics degree would clearly be desirable ;)
The second sounds like bad process leading to bad input, at which point it becomes garbage in, garbage out. The workaround was untested and insufficient.
While you are of course correct the filter will not fix these, none of these are the fault of the filter, they are all human process issues that are firmly out of scope.
This one seem to use scaled down Soyuz capsule as reentry vehicle. They must have reused a lot of proven hardware and software unlike those.
Apparently cameras also have issues because the lack of atmosphere means everything is high contrast.
So basically, you don't actually know your altitude, and your visual systems may not be reliable.
https://robotics.jpl.nasa.gov/media/documents/DIMES-ai-space...
Martian winds make this more important there than on the Moon. The DIMES system integrates radar, visual images, and IMUs. They did not have a dedicated Doppler radar for horizontal velocity, for technical and cost reasons it was not workable.
From the introduction:
> Some of the challenges were subtler — and one in particular was subtle enough that it wasn’t fully appreciated until mission development was well underway.
> This was the challenge of martian winds. How to detect and compensate for them? In the worst-case scenario, they could tip the vehicle over in the final stages of descent such that the powered thrust intended to eliminate downward velocity might actually drive the platform sideways and down into the surface beyond the safety envelope of the airbag cushions.
> This article tells the story of how this late-understood challenge was addressed successfully — and, as it turned out, critically, for Spirit.
The system was improved and re-fielded for the successor missions - I think it goes under the name LVS now. One reference appears to be here: https://www-robotics.jpl.nasa.gov/what-we-do/applications/la...
https://youtu.be/wUju9-cckKA?si=nZFOCga10mnCA_vs
The other component is the autonomous docking of the return probe in lunar orbit.
Soviets have done a lunar sample return, but they had a probe that would lift off directly into a earth return trajectory, but that seems to have limited both the liftoff mass and the possible zones in moon from which it can lift off. This seems a much more complex mission than that.
Also some animated videos of the misson show a skip re-entry back to earth, don't know if it is the case during this particular flight.