Apollo On Board Computer Emulator 166
frankk74 writes "For those of you interested in Historical Computing and the Apollo manned spaceflights Ron Burkey has created a open source emulation of the Apollo Guidance Computer called vAGC. I use it as my desktop clock of choice. Note it only keeps mission time so after 24 hours you have reset the time :-). P.S. Another cool Apollo toy free and payware can be found here."
Slashdotted (Score:5, Funny)
Re:Slashdotted (Score:4, Insightful)
Re:Slashdotted (Score:3, Funny)
Not the least of which is that he's dead [imdb.com].
The coolest project I've ever seen (Score:3, Insightful)
Warning (Score:4, Interesting)
That made me feel good seeing as how this is the first week I've tried linux.
very simple processor (Score:5, Interesting)
People say over and over again that simple handheld calculators are more powerful than that thing, and it seems that the oft-parroted line is more accurate than they realize.
Add to that: RTL (before TTL) and magnetic core memory bring up the nostalgic value.
Re:very simple processor (Score:5, Interesting)
"though much faster, my pentium can barely run [insert 3d shooter here] at good FPS. how could it fly to the moon? so they never did."
logic?
clavius explanations [clavius.org].
Re:very simple processor (Score:5, Interesting)
So they took the PDP8 and squeezed it down into the size of a early 80's era Kaypro portable (now that's saying something about my age) and managed to get it to draw as much power as your coffeemaker.
THEORETICALLY, they could have done it with a sextant and a good clock, BUT! Their navigation skills had to be dead-bang on every time to the fraction of a minute.
So it was easier to shoehorn this colossus into the spacecraft and let it do the driving.
Re:very simple processor (Score:5, Insightful)
Re:very simple processor (Score:3, Insightful)
Re:very simple processor (Score:2)
Wasn't the actual landing manual ?
Re:very simple processor (Score:3, Informative)
While indeed there was actual piloting and people were clearly in the loop to run the spacecraft (and needed!), some of the critical timing issues for orbit insertion and lanuch windows simply have to be run with computers. There is no other way to ensure that you can
Re:very simple processor (Score:3, Informative)
OI isn't really that critical timewise unless you have to hit *precisely* the orbit you want; a few seconds either way (and there often was during the lunar missions even with the computer running things) meant merely that your orbit would have a few miles or tens of miles discrepancy in perigee/apogee, correctable with a sho
Re:very simple processor (Score:5, Insightful)
It is of course completely irrelevant that their pentium is a heap of crap, as you imply. These are the kind of idiots that don't believe that you could have a 3d game on a 20 year old 8bit micro - showing them Elite blows their minds.
They think that because a computer is slow it's worthless. Well, that's what Microsoft and Intel keep telling us so it must be true. Also their 3d shooter is damn slow. That's gotta be proof.
Conversely those of us with brains, real software development knowledge, and an appreciation of physics realise that you hardly need any computing power at all for an Apollo space craft. Indeed it's arguable that the computer they did have was overkill - a computer-less solution could have been engineered.
Re:very simple processor (Score:2)
Who am I kidding, if I had a chance to go to the moon, I'd go almost no matter what...
Re:very simple processor (Score:5, Insightful)
Re:very simple processor (Score:5, Interesting)
Re:very simple processor (Score:2, Informative)
Re:very simple processor (Score:3, Informative)
Gene Kranz's book Failure Is Not An Option talks about simulating the moon landing, and seeing 1201 alarms coming up and the controllers unable to deal with them. Kranz ordered an abort after a 1201 alarm...but it turned out that was the wrong thing to do. Dick Koos, the simulation supervisor, told him, "This was not an abort. You should have continued the landi
Re:very simple processor 1201 (Score:3, Informative)
Re:very simple processor (Score:5, Funny)
That's because when the LM was being designed some engineer decided "640 Bytes should be enough for anyone."
Re:very simple processor (Score:2)
The web page says program words, but those were equivalent to bytes. Tokenizing the BASIC keywords helped save memory, but line numbers were stored as ASCII, so "GOTO 5" took half the memory of "GOTO 500"
Re:very simple processor (Score:3, Funny)
Ahh, it's the Missing Piece! (Score:4, Funny)
Like Deng Xiao Ping's 50-year plan towards (real) World Domination by using the capitalists' greed against their own long-term interests, this space-conquering plan began over 50 years ago when the "People's Liberation" Army invaded their peaceful neighbour Tibet, to be used as a back-up landing area. Well, Tibet can also be looted for their natural resources (oil, gas, uranium) and subjugation the hapless Tibetan people has been used as a great propaganda victory for Party jingoism, but clearly one of the main reasons to invade was to use the Tibetan territory as a back-up landing site.
Apollo On Board Emulator, running on Red Flag Linux and locally-built Dragon CPU... even Evil Invading Dictatorships can be pretty geeky when it suits their World Domination Plans... ;-)
12-bit Instruction set (Score:4, Insightful)
Re:12-bit Instruction set (Score:5, Insightful)
Re:12-bit Instruction set (Score:5, Informative)
Re:12-bit Instruction set (Score:3, Informative)
Re:12-bit Instruction set (Score:2)
Re:12-bit Instruction set (Score:2)
I remember seeing a documentary abou
Re:12-bit Instruction set (Score:5, Funny)
Think of three fat guys trying to move one of those things in a Mini Cooper.
KFG
Re:12-bit Instruction set (Score:5, Funny)
Re:12-bit Instruction set (Score:2)
Re:12-bit Instruction set (Score:2)
A Mini Cooper is about the same size as a Mini but with a much better engine (note, we aren't talking the BMW version here). A friend had the hobby of rebuilding Minis, so I got to know them well and I'm old enough to remember the PDP-8a in the lab at Uni.
Simulation - emulation environment (Score:5, Interesting)
Do they have this at NASA? For them it must be easier and more reliable to just use an identical environment for testing purposes, but some Apollo enthusiasts would enjoy tinkering with such a combined simulation-emulation environment (SEE).
Re:Simulation - emulation environment (Score:2, Interesting)
this would be incredible. not just simulating the whole spacecraft in such detail, but actually doing the whole flight.
i wasnt my fault. i they tell me to stir the tanks, i stir the tanks.
Orbiter (Score:5, Informative)
Already being worked on:
http://mysite.wanadoo-members.co.uk/marui/orbit
Re:Orbiter (Score:3, Informative)
Re:Orbiter (Score:3, Informative)
Source is here [wanadoo-members.co.uk].
Re:Simulation - emulation environment (Score:2)
Re:Simulation - emulation environment (Score:2)
Astronaut suit? You mean space suit? Apart from the fact that the astronauts have never owned them, I doubt you could pay the million bucks one would cost, much less the hyperinflated auction price.
Re:Simulation - emulation environment (Score:2)
Re:Simulation - emulation environment (Score:2)
Re:Simulation - emulation environment (Score:2)
See http://www.cr.nps.gov/nr/travel/aviation/sat.htm
How do they get to the moon... (Score:5, Funny)
Re:How do they get to the moon... (Score:3, Funny)
Re:How do they get to the moon... (Score:2)
Re:Duh... (Score:2, Funny)
Slingshot (Score:5, Funny)
I wonder...... (Score:2, Funny)
Re:I wonder...... (Score:2, Funny)
Bah. Apollo computers only has a numneric display. The hottest pr0n that it can display is number "69" in all fields.
Re:I wonder...... (Score:2)
Game anyone? (Score:5, Funny)
Hell, even my Texas Instruments card-programmable calculator played that game!
ouch my eyes (Score:2)
Space Shuttle computers (Score:5, Interesting)
Every once in a while you can find some incredible things in government surplus.
Re:Space Shuttle computers (Score:2)
Re:Space Shuttle computers (Score:3, Interesting)
Should it ever need a new home (Score:2)
Linux (Score:2, Funny)
But seriously: would it, theoretically (!), be possible to write a x86 emulator on something like that?
Re:Linux (Score:3, Funny)
Not comparable in any way to calculators (Score:5, Interesting)
Calculators have absolutely minimal I/O and need hardly any interrupt handling capability, and general purpose CPUs like the PDP-8 require a great deal of external hardware to give efficient programmed I/O. It was only really with integrated electronics that general purpose CPUs became appropriate for real time instrumentation and control.
It's also important that in a space environment, every added gate is a hazard because it can get flipped by radiation. The ideal is to have the minimum gate count, minimum memory cell count, and the shortest possible path between phyical I/O and computing. The computers used in the Apollo meet this requirement.
Sorry to restate what may be obvious to some people, but a lot of people here will never have had to implement a rad-hard design, and will not understand why simplicity and directness are such virtues in design for space use.
Next step: hardware (Score:2, Funny)
I'm sure somebody out there with more time than I have is working on it ... :)
Disaster waiting to happen (Score:5, Insightful)
Trying to figure out how much is left in a liquid oxygen tank in outer space is not an easy task. If you wanted to know that answer here on earth you would weigh the tank - which obviously won't work in free fall.
The idea they came up with was to have a sensor in the tank that could measure the level by resistive means. In order to have a 'level' to measure they had to create an artificial gravity inside the tank by swirling the contents with an internal electric motor and a blade. In the movie "Apollo 13" one of the astronauts talks about "stirring the O2 tank", that is what he is talking about.
Consider what this all means: you have a tank full of liquid Oxygen, you have several pounds of highly combustible aluminum and graphite parts which are soaked in liquid Oxygen, and you have a DC motor with brushes sparking up a storm inside the tank. Another name for such a combination is a "bomb".
NASA's - management driven - engineering has long been full of "Whir click, whir click - OK, Russian Roulette is flight certified as safe" thinking. Nobody does a "how could this all go wrong" analysis.
Re:Disaster waiting to happen (Score:2, Interesting)
Re:Disaster waiting to happen (Score:3, Insightful)
Measuring how long the stirrer takes to come up to speed tells you the mass of what you are accelerating.
Re:Disaster waiting to happen (Score:3, Interesting)
Re:Disaster waiting to happen (Score:3, Insightful)
Or another alternative...sonar...sound reflected off the contents of the tank.
wbs.
Re:Disaster waiting to happen (Score:2)
I think I would use a small Gamma emitter with a radiation sensor to measure absorbtion instead of sonar, since bubbles could affect the sonar.
nope Re:Disaster waiting to happen (Score:5, Informative)
They didn't use artificial gravity to seperate the LOX; quite the opposite.
In fact, in zero gravity LOX tends to divide up into regions of gas and liquid. If the gas happens to float past the sensor, then they get an incorrect reading of the density, and hence they don't know how much is in there. This was a big problem on previous flights. Stirring the tank mixes it all up and makes it the same density; allowing a reliable reading to be taken.
you have several pounds of highly combustible aluminum and graphite parts
Aluminum, particularly bulk aluminum is *not* combustible in LOX. It's used on the Space Shuttle main tank fer heavens sake!
Graphite can't really burn either; for it to burn it needs to reach ~3000K, and the LOX is pretty keen on it not reaching that temperature.
LOX only really explodes in contact with greases- it's soluble in them, and they form a contact explosive.
and you have a DC motor with brushes sparking up a storm
Provided the brushes are carefully chosen, this need not be a problem.
That's not actually what caused the explosion anyway.
During testing a relay welded itself shut due to incorrect voltages. In flight, the wiring overheated- and the insulation burnt in the LOX. That caused the LOX tank to overpressure, and it blew away half the side of the vehicle.
Parent is informative, deserves upmod (Score:5, Informative)
Re:nope Re:Disaster waiting to happen (Score:5, Interesting)
In fact, in zero gravity LOX tends to divide up into regions of gas and liquid. If the gas happens to float past the sensor, then they get an incorrect reading of the density, and hence they don't know how much is in there. This was a big problem on previous flights. Stirring the tank mixes it all up and makes it the same density; allowing a reliable reading to be taken.
Yes and no. In zero g the bubbles and liquid have no reason to separate. In a gravity field the bubbles float just like the do in water - so you get a liquid without voids in it - which you can measure.
Aluminum, particularly bulk aluminum is *not* combustible in LOX. It's used on the Space Shuttle main tank fer heavens sake!
Aluminum will burn in air if there is enough energy to break through the surface layer of aluminum oxide which builds up on the surface. In fact aluminum is so reactive with oxygen that this layer forms instantly when the metal is exposed to oxygen. Anything which will burn in air will really burn in LOX.
Graphite can't really burn either; for it to burn it needs to reach ~3000K, and the LOX is pretty keen on it not reaching that temperature.
There was an experiment where a scientist used LOX and charcoal to see how fast it would burn - it esentially flashed in less than a second. DO NOT ATTEMPT THIS. IT IS RIDICULOUSLY DANGEROUS. Your statement is like saying Nitro Glycerin is safe to have in your house. NOTE FOR THE YOUNG AND INEXPERIENCED: DO NOT STORE NITRO GLYCERIN IN YOUR HOUSE. IT WILL BLOW UP AND KILL YOU!!!
Provided the brushes are carefully chosen, this need not be a problem.
This is exactly the sort of thinking which resulted in the original disaster. Brushes are mechanical devices - there is inductance in a motor - when the brush connection is broken the inductance of the motor will cause a spark. We have studied the ignition properties of such sparks in LOX in my group. There is a statistical probability of a given spark igniting the brush material.
That's not actually what caused the explosion anyway.
During testing a relay welded itself shut due to incorrect voltages. In flight, the wiring overheated- and the insulation burnt in the LOX. That caused the LOX tank to overpressure, and it blew away half the side of the vehicle
That is the official theory which was reached by people who knew nothing about the spark ignition problem. The voltage in the GFE power supply used in the test was not enough to weld contacts - the LOX would have cooled the wires so that they wouldn't have reached ignition temperature. The explosion didn't happen until the tank was stirred. The thinking behind reaching that official theory was "Well none of the other tanks blew up so the design was OK so it must have been someing which was done to that particular tank that caused the problem."
Thanks for demonstrating the "Whirr click, whirr click " mind set to everyone.
Re:nope Re:Disaster waiting to happen (Score:2)
No, the wiring overheated on the ground, as the test conductors ran the internal tank heater for hours to boil off the LOX inside. The tank contents did not empty as quickly as usual because the tank fill pipe had been dislodged when the tank was dropped two inches during installation some months before. Because the tank heater was built for 28V and the older ground test equipment delivered 65V, the heater thermostat failed, and the tank heater stayed on 100% of the time
Re:nope Re:Disaster waiting to happen (Score:2)
In LOX the wires themselves in the precense of a spark can ignite. This is dependant upon the size of the spark and the size of the wires; does the wire lose heat to the LOX bath faster than the combustion can provide it? If so there is no ignition of the wire - if not then the wire can ignite.
Breaking a wire which is carrying a current is one of the best ways we have found of causing a fire.
Regardless, the design
Re:nope Re:Disaster waiting to happen (Score:2)
Where the LOX tank was fabricated they used 24 volt power to test the tanks. At the Cape, they used 48 or 72 volts DC at the pad. When they did the forced LOX purge, the limit switches fused shut the instant they were subjected to the higher voltages, hence the temperature inside the tank rose to a nice 400 degrees F. The interior temperature gauges were not calibrated to detect the oven-like heat that occurred. The tef
Re:nope Re:Disaster waiting to happen (Score:3, Interesting)
It may have been. There is currently a discussion between various groups at NASA on this very subject - is there some minimum value of spark energy which is safe in a pure oxygen athmosphere? We say no, others say there is.
This entire thread is highly instructive of how memory and the human brain work in the real world: When I read the original reports about a year and a half ago I knew and understood the cause of the
Re:nope Re:Disaster waiting to happen (Score:3, Funny)
Experiment? More like "let's see how fast we can light a barbecue grill [llnl.gov]!"
p
Re:nope Re:Disaster waiting to happen (Score:2)
Look, I am not interested in arguing - why? An argument is the intellectual equivalent of a fight. Fights do NOT go to the person who is right or wrong - they go to the person who is the best fighter.
This is the root of the basic intellectual falacy which pervades the academic world - that the winner of an argument is the person who is right.
I really understand fighti
Re:nope Re:Disaster waiting to happen (Score:2)
On the other hand, combustion chamb
Re:nope Re:Disaster waiting to happen (Score:2)
As to the managment think problems at the root of shuttle disasters, the Columbia is another classic example of it. The shuttle was getting foam impacts since the very first flight (whirr click). This was NEVER safe - it needed to be corrected - instead it was accepted as 'normal' and ignored.Then for politically correct reasons the formulation of the foam was changed which roughly trippled the number of foam impact incidents
Absolutely a super thread (Score:2)
Re:nope Re:Disaster waiting to happen (Score:2)
The british navy used to think this as well, so they built some ships from aluminum, and sent them down to the Falkland Islands to stem off an invasion. They discovered the hard way, if you heat a piece of aluminum to the correct temperature (achieved thru the ignition of an exocet missle) then the aluminum superstructure indeed will burn, and continue to burn, in a gas mix that's only 16% oxygen, with the rest relatively inert gasses (ai
Re:nope Re:Disaster waiting to happen (Score:2)
In a LOX tank or pipe, the LOX continuously cools the aluminum, and *cooled* aluminum is incredibly hard to melt, let alone ignite.
Re:Disaster waiting to happen - slightly OT (Score:2)
This is an even nastier mix than LOX in an AL tank
and we all drive around with it every day.
At least on apollo only the oxidizer was in the tank...
Why look at the apollo flight computer (Score:4, Informative)
The most recent version of the apollo spacecraft add-on (NASSP 5) has a partial working AGC built into the navigation system.
Re:Why look at the apollo flight computer (Score:3, Informative)
Car-PC (Score:2, Funny)
~Lake
Re:Car-PC (Score:3, Funny)
Anyone get a good look at the code yet? (Score:5, Funny)
P63SPOT3 CA BIT6 # IS THE LR ANTENNA IN POSITION 1 YET
EXTEND
RAND CHAN33
EXTEND
BZF P63SPOT4 # BRANCH IF ANTENNA ALREADY IN POSITION 1
CAF CODE500 # ASTRONAUT: PLEASE CRANK THE
TC BANKCALL # SILLY THING AROUND
CADR GOPERF1
TCF GOTOP00H # TERMINATE
TCF P63SPOT3 # PROCEED SEE IF HE'S LYING
P63SPOT4 TC BANKCALL # ENTER INITIALIZE LANDING RADAR
CADR SETPOS1
TC POSTJUMP # OFF TO SEE THE WIZARD
CADR BURNBABY
Re:Anyone get a good look at the code yet? (Score:2, Interesting)
Interesting time limit (Score:3, Funny)
Yeah. 24 hours ought to be enough for everybody.
Re:Interesting time limit (Score:2)
It will do this to ~31 days, at which point the timers overflow.
Curious about the computers back on the ground (Score:2)
Re:Curious about the computers back on the ground (Score:3, Informative)
I have no idea what the Prius has as a processor, but a modern laptop would substantially exceed the processing power of the ground installation. Perhaps only if programmed in FORTRAN though (the NASA language of choice at the time).
Beowulf comment ... (Score:5, Funny)
If so: who is invading who ?
Draper Labs built the AGC (Score:4, Informative)
Intuitive (Score:3, Funny)
Setting the time:
Press Verb 2 5 Noun 3 6 Entr. Then enter a + to indicate you're entering the time in decimal, not octal. Be sure to enter all 5 digits of the hour. Then press Entr, and enter minutes, and then repeat for seconds. And make sure you remember that the seconds are in 100ths.
V25N36E+00012E+00002E+04400E
Totally intuitive.
Notes on compiling (Score:5, Informative)
cd yaAGC
./configure
make
sudo make install
cd yaDSKY
./configure
make
sudo make install
yaAGC --core=Validation.bin --debug
In another window, still in the yaDSKY directory: yadsky --cfg=src/LM.ini
(Note lowercase yadsky)
Congratulations, Ronald. Pretty cool. Does the contrast on the LED display have to be so low? The background is very light.
Am I the only one here who actually tried the program?
Re:Notes on compiling (Score:2)
Thanks, your instructions worked here while the original ones didn't. Lots of warning during compilation, but I have some weird lib versions on the box I compiled it on, gotta take it down for a few days to update libs (Gentoo is nice but time consuming
and now that I've blown the better part of two hours playing with this, it'll probabl
Re:Notes on compiling (Score:2)
Agreed about Gentoo. I run it at work, with much help from a nearby Gentoo expert, and frequently have to put too much time into fixing it. The benefit is that I can run recent Mozilla, etc.
I added apt-get to Red Hat and it gives me some of the functionality, but most applications I want aren't available. It is much faster than emerge, of course.
I don't know Orbiter - I'll take a look.
Weird Coincidence (Score:2)
I just bought The Sky Moves Sideways [cduniverse.com], and I was listening to it while reading Slashdot.
By the time I had read through the articles on the home page, most of the album had played out. Then I read the AGC article and downloaded the code.
The weird part is that when I started reading the Luminary source code, the track playing was, "Moonloop", and hit the part at 13:18 where an excerpt of the Apollo landing broadcast is mixed it.
I am totally freaked out right now.