Coding errors are expensive, various institutions are a victim to theses and The National Aeronautics and Space Administration is no acceptation.
Time to go back to 1962 where a simple coding error cost NASA $18.5 million, which amounts to $150 million on present-day estimates.
The Marina 1 was built to conduct the first planetary flyby of Venus, it was launched by an Atlas -Agena rocket from Cape Canaveral. Its mission was to collect data on temperatures and the atmosphere in Venus.
Things didn’t go as planned for NASA and within 4 minutes into its flight the rocket took an unprogrammed turn. This prompted the safety officer to give out self destruct commands of the rocket over the Atlantic ocean.
What Went Wrong?
The Atlas booster rockets use two radar systems to maintain trajectory; a rate system and a track system. The rate system measures the velocity using Doppler shift measurements taken from a ground-based beacon system.
The track system measures the distance and angle relative to the antenna, which is located near the launch site. Shortly into the launch, the rate system failed and now the track system needed to handle the navigation solemnly.
The two systems together formed redundancy in measurement that allowed small margins of error.
The code designed to interpret the distance and angle measurement had a simple error.