Measuring Ultra-High-Energy Cosmic Rays from Earth Orbit: From the TUS Project to K-EUSO and Beyond