Developing Mars lander software
Craig Dillabaugh
cdillaba at cg.scs.carleton.ca
Tue Feb 18 15:56:32 PST 2014
On Tuesday, 18 February 2014 at 23:05:21 UTC, Walter Bright wrote:
> http://cacm.acm.org/magazines/2014/2/171689-mars-code/fulltext
>
> Some interesting tidbits:
>
> "We later revised it to require that the flight software as a
> whole, and each module within it, had to reach a minimal
> assertion density of 2%. There is compelling evidence that
> higher assertion densities correlate with lower residual defect
> densities."
>
> This has been my experience with asserts, too.
>
> "A failing assertion is now tied in with the fault-protection
> system and by default places the spacecraft into a predefined
> safe state where the cause of the failure can be diagnosed
> carefully before normal operation is resumed."
>
> Nice to see confirmation of that.
>
> "Running the same landing software on two CPUs in parallel
> offers little protection against software defects. Two
> different versions of the entry-descent-and-landing code were
> therefore developed, with the version running on the backup CPU
> a simplified version of the primary version running on the main
> CPU. In the case where the main CPU would have unexpectedly
> failed during the landing sequence, the backup CPU was
> programmed to take control and continue the sequence following
> the simplified procedure."
>
> An example of using dual systems for reliability.
I thought you were going to tell us it had been developed using
D. It only seems right that a Mars lander would use Digital Mars
software. Plus isn't D safer than C99?
Maybe when they send the manned mission to Mars they will do the
right thing:o)
More information about the Digitalmars-d
mailing list