by ghc · 2y ago · 0 comments
Another interesting thing SpaceX is doing is to use consumer-grade chips in triple redundancy configurations instead of using $100,000+ radiation-hardened aerospace/defense grade chips.
My stepfather worked as a programmer on the Apollo program, and the thing he always talked about as his biggest accomplishment was working on the "slosh problem" -- so yeah, props to the SpaceX team for managing that landing. And props to my stepdad for managing it on hardware that was... a billion times less capable? :-)
This has been known in the high availability and safety systems industry for a while and a good book to learn these reliability engineering techniques is "Reliability Evaluation of Engineering Systems".
The book is available on amazon: https://a.co/d/1nH824K
"Hollman also found that creativity got him a long way. He discovered, for example, that changing the seals on some readily available car wash valves made them good enough to be used with rocket fuel."
"Elon Musk" by Vance pg 123
The Fukushima and Deepwater Horizon disasters show that this knowledge has not penetrated other industries.
But it turns out, it doesn't matter how many redundant backup diesel generators you've got if a 45-foot wave comes along and they're all left underwater.
I think it's a huge problem when re-lighting the engines in orbit, though.
Bug tanks make sense there & they might not be always full. So I can imagine all kind of interesting ways you can work with the fuel in zero go to avoid not only slosh but also the need for ullage thrusters. Eq. some programmable nozzles using in-tank gas to nudge liquid fuel blobs to move in the right direction. Or even some nets or bags that herd in the fuel in the middle of the tank + prevent it from directly touching the side, reducing boil-off or refrigeration requirements. :)
Even a real-time simulation should have some measurements to self correct to some degree. Otherwise it'll diverge.
They used trios of regular consumer grade disks/servers etc as a cluster and it looked like a single node.
They had to replace a LOT of hardware but this was still cheaper than big iron industrial grades servers.
the orbital and planetary mechanics kind of suck. They're meant to provide a decent 'arcade realism' for the sake of player/player interactions and pvp/pve.
if you want to experience fuel slosh/weight during a vertical ascent/descent go with kerbal. It models a lot of that stuff without mods -- and mods can make the model even more accurate.
Algorithms can be faulty as well.
Does anyone know (or have educated speculation on) what kind of hardware is running these algorithms? Like, do they have a linux machine that's running the control loops? Are we talking megabytes, gigabytes of SRAM?
I would think no -- you would definitely need hard real time for something like this. But my only experience with real time systems is in tiny MCUs with kb of SRAM. That's definitely too small for a controller like this.
Really curious about the nuts and bolts of this.
When you build something like this, you're torn between having a big model that represents everything and a smaller model that is easier to validate and reason about. Based on simulation, you might go for a smaller model that "knows" to stay away from operating areas where hidden variables (like really complicated tank slosh) invalidate the small model.
I doubt the actual control loop is too much processing, but it's certainly possible to build controllers with SDRAM, millions of variables of state, and hard realtime processing, though I wouldn't build it on top of preempt-rt. ;)
Well, that makes perfect sense considering that both the spaceport infrastructure, and the booster need to do their calculation on the ground level instead of the highly radiated environment that is space. However, for the rockets themselves, which happen to reach that harsh environment, they may use more resilient and expensive hardware in the future, after passing over the current "let it splash in the Indian Ocean" development and testing phases.
>probably involve some kind of fast numerical fluid simulation
Sometimes even a simple approach can work. On Apollo they developed (at the time cutting-edge) passive RC filter networks, to avoid the control system "exciting" the rocket at frequencies of the slosh/bend/torsion modes.https://ntrs.nasa.gov/api/citations/19700023342/downloads/19... (search for "slosh" or "shaping network")
Surely this isn't necessary with a small enough sensor granularity or whatever the terminology is. You can have very dumb software if it reacts quickly enough to changes in perception.
Instead, it's more common to use gasses injected at the top of the tank to push the liquid to the bottom. Falcon 9 uses helium. Starship uses https://en.wikipedia.org/wiki/Autogenous_pressurization as well as small header tanks for the landing propellants.
I am curious but clueless about these problems, can you expand more?
does anyone have any literature about how the Rocket localized itself with respect to the chopstick arms? It must've been some combination of GPS and Radar pings to the arms?
And then the onboard IMU to make sure it hits it straight.
To speculate more, they could also be using something like ultra-wide band positioning. This relies on the same time-of-flight principle as GPS but instead of using satellites in orbit to provide the precise time information you rely on various nearby ground stations. Would only be useful right at the final approach, the last couple hundred meters, but it's another way they could get very very precise position information. (fun fact: Ultra Wide band positioning is also how iPhones can locate AirTags with centimeter accuracy)
In the wide open sky, I’m guessing it’s pretty reliable.
Vision systems would be pretty useless with the low visibility of the smoke and fire. So I thought maybe it was some kind of radar configuration.
Anyways, I’d pay a lot of money to pick the brain of the GNC team here.
Going by the telemetry of the seconds before the landing burn and noting the speed vs time, it seems drag was around 40 m/s^2 when it was going at around 3000 km/h. Since drag depends on velocity squared though, it had reduced to just above 10 m/s^2 just before the engines lit at 1250 km/h, and so would quickly become negligible once the engines lit.
Going by Wikipedia, the Super Heavy[1] has 3400000 kg of fuel at launch, so 3% of that is about 102000 kg. For the landing burn, it used 13 Raptor v3 engines[2] to scrub speed. Each Raptor flows about 650 kg/s max, so 3% fuel is enough for about 12 seconds for the 13 engines.
The empty mass of the Super Heavy is about 275000 kg, so about 377000 kg before the landing burn with 3% fuel.
Using the sea-level vs vacuum performance of the Raptor v2 engines, one can estimate that each Raptor v3 produces about 2.45 NM of force at sea-level. So 13 of them would produce about 31.85 MN of force.
Using Newton's second law, F=ma, this gives an initial deceleration of about 84 m/s^2 and about 104 m/s^2 when empty. If we do a rough spreadsheet integration, we get that a burn of roughly 4 seconds is needed to scrub the speed assuming no other forces.
Now, comparing this with reality, the full 13 engines were lit for a little over 5 seconds.
In my simplified calculations I was assuming full throttle the whole way, which obviously isn't realistic, and I also assumed 3% fuel. So over all I think that's a pretty decent estimation.
[1]: https://en.wikipedia.org/wiki/SpaceX_Super_Heavy#Engines
So, 34M kg of fuel has to be burned (in this booster alone) to facilitate a flight ... and I see that the propellant is CH4 / LOX[1].
Burning methane is much, much better than simply releasing methane but the release becomes CO2 instead ...
What is the back-of-the-envelope conversion of 34M kg CH4 vs., for instance, 34M kg of kerosene/JP ?
[1] https://en.wikipedia.org/wiki/SpaceX_Super_Heavy#Engines
[1] https://www.engineeringtoolbox.com/co2-emission-fuels-d_1085... [2] https://x.com/elonmusk/status/1298426245991063554?lang=en
Anyway, plugging in the Raptor V2 thrust numbers the approximation increases to 4.25 seconds. This is in line with the thrust I used for the V3 being ~8% higher than the V2 thrust figures.
Long ago though so rusty, $dayjob doesn't involve any advanced math at all.
edit: To expand, the "rough spreadsheet integration" was just the Euler method[1] assuming a constant acceleration. So
v(t+dt) = v(t) + a * dt
The acceleration comes from F=ma as mentioned, where F is the force of the engines (Newtons), m is the mass of the rocket (kg) and a is the acceleration (m/s^2). Solving for a we get a = F/m and we get v(t+dt) = v(t) + F/m(t) * dt
To make things easy I assumed the weight of the rocket was constant at each timestep, but if we take dt to be small enough it's a decent enough approximation. For each timestep I also updated the mass using the estimated mass flow: m(t+dt) = m(t) - 650 * dt
I started with m(0) = 377000 kg, v(0) = 1250 km/h = 347 m/s, and a constant -31850000 N force from the engines.Using dt = 0.1 seconds, I got almost exactly 4 seconds until the velocity reached zero.
Fuel is the vast majority of the vehicle weight at launch, kind of like an empty vs full can of soda.
They ignite a subset of engines just a few seconds before landing for the final slowdown and maneuvering.
Edit: here is a video from further away that shows the rocket gliding in under control of the grid fins before the engines light and execute the final landing maneuver:
Also I don't think the telemetry on the feed is that accurate, so with all of the atmospheric braking, it was probably going a bit slower than the 1200km/h at engine reignition.
Had flashbacks to playing Jupiter Landing on the C64!
https://en.m.wikipedia.org/wiki/Jupiter_Lander
Edit: SpaceX should create a simple 'catch' the rocket game. Play in browser style. Just for kicks and marketing.
They did: https://starshipthegame.spacex.com/
there is, it was discussed in the FAA thread.
lunar.unnecessarymodification.com
The last part of the live stream they showed footage from a different angle and there it didn't look too bad though! For sure controlled.
Scott Manley put out a tweet that they went down towards a non-tower position until they were at three engine controlled burn, and only then did the side shift.
Absolutely impressive accuracy and precision.
Where his vision hit a lot of speed bumps is second stage reusability. Starship is a beautiful second stage to throw in the ocean. They’ll probably get it landing but the heat tiles will require a lot of refurbishment between flights. They’re going to have to figure something else out.
This likely means they are targeting 10 flights in a day at least. They've mentioned 1000 trips to Mars during one transit window, which means ~10000 Earth launches within 3 months, or >100 per day.
But I lump both these together as the *"Wiseass Movable Feast"*
"Is there a word for that - something out of fiction becoming mundane?"
Musking?
Check Steve Brunton youtube channel, he is one of the leaders in this area: https://youtu.be/gb_C9LcjDSI?si=xUjqUZ9-0MIFohX6