Skip to main content

NASA's Lunar Trailblazer Mission Ends In Disappointment

3 months ago
NASA's Lunar Trailblazer mission ended prematurely after losing contact with the satellite just one day post-launch, the agency announced today. Engadget reports: The NASA satellite was part of the IM-2 mission by Intuitive Machines, which took off from a SpaceX Falcon 9 rocket from Kennedy Space Center on February 26 at 7:16PM ET. The Lunar Trailblazer successfully separated from the rocket as planned about 48 minutes after launch. Operators in Pasadena, CA established communication with the satellite at 8:13PM ET, but two-way communication was lost the next day and the team was unable to recover the connection. From the limited data ground teams received before the satellite went dark, the craft's solar arrays were not correctly positioned toward the sun, which caused its batteries to drain. "While it was not the outcome we had hoped for, mission experiences like Lunar Trailblazer help us to learn and reduce the risk for future, low-cost small satellites to do innovative science as we prepare for a sustained human presence on the Moon," said Nicky Fox, associate administrator at NASA Headquarters' Science Mission Directorate. "Thank you to the Lunar Trailblazer team for their dedication in working on and learning from this mission through to the end."

Read more of this story at Slashdot.

BeauHD

CodeSOD: An Annual Report

3 months ago

Michael has the "fun" task of converting old, mainframe-driven reports into something more modern. This means reading through reams of Intelligent Query code.

Like most of these projects, no one has a precise functional definition of what it's supposed to do. The goal is to replace the system with one that behaves exactly the same, but is more "modern". This means their test cases are "run the two systems in parallel and compare the outputs; if they match, the upgrade is good."

After converting one report, the results did not match. Michael dug in, tracing through the code. The name of the report contained the word "Annual". One of the key variables which drove original the report was named TODAYS-365 (yes, you can put dashes in variables in IQ). Michael verified that the upgraded report was pulling exactly one year's worth of data. Tracing through the original report, Michael found this:

# DIVIDE ISBLCS BY ISB-COST-UOM GIVING ISB-COST-EACH. MULTIPLY ISB-STK-QOH TIMES ISB-COST-EACH GIVING ISB-ON-HAND-COST. # SUBTRACT TODAYS-DATE MINUS 426 GIVING TODAYS-365. # SEARCH FOR ITMMAN = 'USA' AND ITMNMB <> '112-*'

This snippet comes from a report which contains many hundreds of lines of code. So it's very easy to understand how someone could miss the important part of the code. Specifically, it's this line: SUBTRACT TODAYS-DATE MINUS 426 GIVING TODAYS-365..

Subtract 426 from today's date, and store the result in a variable called TODAYS-365. This report isn't for the past year, but for the past year and about two months.

It's impossible to know exactly why, but at a guess, originally the report needed to grab a year. Then, at some point, the requirement changed, probably based on some nonsense around fiscal years or something similar. The least invasive way to make that change was to just change the calculation, leaving the variable name (and the report name) incorrect and misleading. And there it say, working perfectly fine, until poor Michael came along, trying to understand the code.

The fix was easy, but the repeated pattern of oddly name, unclear variables was not. Remember, the hard part about working on old mainframes isn't learning COBOL or IQ or JCL or whatever antique languages they use; I'd argue those languages are in many cases easier to learn (if harder to use) than modern languages. The hard part is the generations of legacy kruft that's accumulated in them. It's grandma's attic, and granny was a pack rat.

[Advertisement] Keep all your packages and Docker containers in one place, scan for vulnerabilities, and control who can access different feeds. ProGet installs in minutes and has a powerful free version with a lot of great features that you can upgrade when ready.Learn more.
Remy Porter