Apollo On Board Computer Emulator
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."
I'm amazed with some of the stuff people come up with. Not very practical of course, but I spend half my time doing stupid stuff - I spent most of today playing Super Mario 64!
In three two one... Huston, we have a problem.
"It is a miracle that curiosity survives formal education." - Albert Einstein
Forget Linux. Forget overclocking/unconventional CPU cooling. This is cool shit.
That made me feel good seeing as how this is the first week I've tried linux.
Open Source Sushi
Took a quick scan at the architecture of the machine, and I'm suprised that it's so simple.
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.
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... ;-)
Should invading one's peaceful neighbours be opposed, or rewarded with trade deals?
A quick inspection of the instruction set reveals why they only made 157 of these and made 6 million PDP8s.
Sent from my ASR33 using ASCII
What I would like to see is a complete Apollo computing system simulator, consisting of the hardware simulator, where you could realistically simulate the effects of increased core voltage, heat, power surges, fluctuations, etc. coupled with the hardware emulator capable of running native Apollo code, just like vAGC.
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).
...without having a "Start" button? ;)
I tried to use this to run games. It didn't work at first, there just wasn't enough power. Then I used the gravitational pull of my neighbor's house as a slingshot and was running Doom 3 in no time.
......how long it will take someone to try and load it up with pr0n. "Huston, we have a REALLY BIG problem......"
ASCII pr0n. Coming to a Lunar Lander near you!
> They put Internet Explorer in the Startup folder.
Where do you want to go today?
Does someone have a copy of that old favourite: "Lunar Lander" which runs on this emulator? :-)
Hell, even my Texas Instruments card-programmable calculator played that game!
"then integrate the whole thing into Orbiter."
e r_ agc.jpg
Already being worked on:
http://mysite.wanadoo-members.co.uk/marui/orbit
MOD parent UP - see next post by Orbiter about work being done as referenced in parent post!
Well, at least you can build your own astronaut suit using this http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&cate gory=416&item=3927005923&rd=1
I feel sorry for the guys who have been spending a lot of time on tis yaAGC.. cool but is there a good reason for a light green on light grey simulated lcd display? I can barely make out what the figures are supposed to me and it would seem to cause fatigue. On the heels of the Siemens story.
An engineer I work with at JSC has an actual - legally obtained Space Shuttle flight computer. The government declared it surplus, and he bought it from the surplus section, so he has the paperwork documenting that he is the legal owner. His box is an actual flight unit, which was in space, not a ground test unit or engineering sample. He has the paperwork documenting its complete history.
Every once in a while you can find some incredible things in government surplus.
Darn. another platform to port linux to! Just when we thought we had most architectures covered :-)
But seriously: would it, theoretically (!), be possible to write a x86 emulator on something like that?
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.
Panurge has posted for the last time. Thanks for the positive moderations.
I'm sure somebody out there with more time than I have is working on it ... :)
I had occasion to look at the plans for the oxygen tank that blew up on Apollo 13. There is no great mystery why it blew up, the mystery is why they didn't all blow up.
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.
When you fly it?
The most recent version of the apollo spacecraft add-on (NASSP 5) has a partial working AGC built into the navigation system.
Does anyone else have a sudden urge to run this on the touch-screen of their car-pc? I can't wait...
~Lake
Also, I beleive that they left the rendevous docking radar switch in the on position during decent (a no no) also contributed to the 1201's. Even though it was listed in the Flight manual as being in the on postion. A mistake i believe that wasnt tested in the simulators but was found by 2 engineers during a passing conversation in a hall.
*--- Sometimes a majority only means that all the fools are on the same side. ---*
Humorous snippet from the landing module code...
...
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
> Note it only keeps mission time so after 24 hours you have reset the time
Yeah. 24 hours ought to be enough for everybody.
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.
-WolfWithoutAClause
"Gravity is only a theory, not a fact!"In addition, the incorrect voltages during testing were the result of failed communication between the contractor and NASA, a spectacular example of why the paperwork is important.
Does anyone have the specs on the mainframes NASA used for orbit calculations, mission planning and so on? I was wondering when personal computers reached the equivalent power level, and whether my Prius has more computing power on board.
Should your friend ever decide that he needs to give that computer a new home, send it here.
www.eFax.com are spammers
If we have a Beowulf cluster of these, do we have a space invasion on our hands ?
If so: who is invading who ?
I would just like to point out that Draper Labs in Cambridge, MA (the company I work for) built the AGC. An exact replica of the real AGC sits in our Simulation Lab.
Some people complain that the Linux CLI is too user-unfriendly. Have they tried using this thing?
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.
________________________________________________
suwain_2
"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."
The design of the gates in the apollo computers is fascinating. They used *only* NOR gates, and these were designed with multiple redundancy - each one effectively contained three copies of all the components required for it to function!
I didn't immediately succeed with the author's instructions. Here's what worked for me:
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?
I just bought The Sky Moves Sideways, 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.
Show me on the doll where his noodly appendage touched you.
You're right, the 1201 and 1202 occured because the rendez-vous radar was activated.
Steve Bales who was in charge of the DSKY in the control center pondered and decided to continue the final approach of the landing.
"Darn. another platform to port linux to! Just when we thought we had most architectures covered :-)"
Ask not what Linux can do for your platform. Ask your platform what it can do for Linux!
Thanks to everyone who posted on this thread. I really enjoyed learning everything here.
This is my sig.
Just think in your car there is a 12 volt DC motor submerged in gasoline with air and fuel vapor filling the void space in the tannk.
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...