It was NASA's second mission to service the Hubble Space Telescope, during which Discovery's crew repaired and upgraded the telescope's scientific instruments, increasing its research capabilities and achieved the highest altitude ever attained by a STS Orbiter ( 335 nautical miles ). ''