TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Exploring the software that flies SpaceX rockets and starships

259 点作者 dinosaurs将近 4 年前

13 条评论

plq将近 4 年前
The article is a bit light on technical details, but the following is noteworthy:<p>&gt; Flight software for rockets at SpaceX is structured around the concept of a control cycle. “You read all of your inputs: sensors that we read in through an ADC, packets from the network, data from an IMU, updates from a star tracker or guidance sensor, commands from the ground,” explains Gerding. “You do some processing of those to determine your state, like where you are in the world or the status of the life support system. That determines your outputs – you write those, wait until the next tick of the clock, and then do the whole thing over again.”<p>Wow, sounds an awful lot like a typical event loop from a game engine.<p>Of course the main difference from a game engine would be the reliability requirements. The level of verification effort that goes into flight control software can&#x27;t be comparable with the effort that goes into a game engine (assuming it&#x27;s greater than zero :))
评论 #27116881 未加载
评论 #27117636 未加载
评论 #27120414 未加载
评论 #27116189 未加载
评论 #27117352 未加载
评论 #27116344 未加载
评论 #27121536 未加载
评论 #27116094 未加载
评论 #27142207 未加载
评论 #27117836 未加载
评论 #27118348 未加载
评论 #27116511 未加载
评论 #27117185 未加载
评论 #27121510 未加载
评论 #27116541 未加载
评论 #27116709 未加载
GuB-42将近 4 年前
I work in avionics and the principles are exactly the same. And I think it applies to all somewhat critical embedded systems.<p>There are some details that may change, for example, we use mostly C, specialized software and a bit of ADA, no C++ in embedded systems. But the input-output periodic loops, isolation and making sure things continue working in degraded condition principles are the same.<p>Nothing special about SpaceX here, for good reasons. In fact, some of it might be mandatory if you want to fly something that can cause serious damage if you it fails, be it a rocket or a plane.
larrydag将近 4 年前
From article “We invented simple domain specific languages to express those things, such that other engineers in the company who are not software engineers can maybe configure it.”<p>It sounds like they created their own internal API configuration scripts to be highly dynamic and configurable. Similar to many gaming or operating systems config files. Sounds be a highly productive way to test and deploy software changes. Not only for people who are not C++ proficient but also to allow Engineers and Scientist to focus on their own design work and not have to worry about software development.
polishdude20将近 4 年前
On the topic of rocket flight computers, here&#x27;s a link to an FC I built last year for my model rocket. It does thrust vectoring and some rudimentary navigation. The control loops on this thing run at 200hz though. It&#x27;s got a state machine for knowing what to do at each stage of flight as well.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;polishdude20&#x2F;CygnusX1" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;polishdude20&#x2F;CygnusX1</a>
评论 #27124903 未加载
lutorm将近 4 年前
Note that part 2 is also out now: <a href="https:&#x2F;&#x2F;stackoverflow.blog&#x2F;2021&#x2F;05&#x2F;11&#x2F;building-a-space-based-isp&#x2F;" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.blog&#x2F;2021&#x2F;05&#x2F;11&#x2F;building-a-space-based...</a>
theYipster将近 4 年前
Curious if the software on Dragon conforms to aviation safety critical safety assurance standards: i.e. DO178C, ARP4754
throwaway29303将近 4 年前
<p><pre><code> Flight software for rockets at SpaceX is structured around the concept of a control cycle. “You read all of your inputs: sensors that we read in through an ADC, packets from the network, data from an IMU, updates from a star tracker or guidance sensor, commands from the ground,” explains Gerding. “You do some processing of those to determine your state, like where you are in the world or the status of the life support system. That determines your outputs – you write those, wait until the next tick of the clock, and then do the whole thing over again.” </code></pre> I didn&#x27;t know what IMU meant but according to this[0] it&#x27;s an Inertial Measurement Unit, I believe.<p>[0] - <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Inertial_measurement_unit" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Inertial_measurement_unit</a>
sehugg将近 4 年前
FWIW, the NASA Technical Reports Server is a good resource for technical docs from Apollo to Shuttle. Many of them have enough detail to implement the algorithms.<p><a href="https:&#x2F;&#x2F;ntrs.nasa.gov&#x2F;search?q=shuttle%20guidance" rel="nofollow">https:&#x2F;&#x2F;ntrs.nasa.gov&#x2F;search?q=shuttle%20guidance</a>
7373737373将近 4 年前
The 50 Hertz rate surprises me, a lot can happen within 20ms, a lot of distance traveled at high speeds
评论 #27117796 未加载
ehnto将近 4 年前
&gt; This marks the beginning of a new era for SpaceX, one where it will aim to routinely fly astronauts to the ISS<p>Does anyone have much insight into the longevity of the ISS from now? I can see it&#x27;s approved for operation until 2024, so just 3 years, but could potentially continue to operate after that.<p>If the ISS does get decommissioned, how many years does that process take, and once it&#x27;s gone, what purpose does Crew Dragon serve?<p>Not trying to be negative, hopefully by 2028 or even 2024 we will have concrete operations underway for continued space station development that could use Crew Dragon, but it does seem bold calling it a new era, when it&#x27;s so precariously reliant on the ISS existing.
评论 #27116875 未加载
评论 #27119220 未加载
stunt将近 4 年前
If you&#x27;ve watched SNL, you already know that they use Tmux too.
ionwake将近 4 年前
Is it possible for a programmer with the relevant experience to apply for a role at spacex? Maybe as a consultant&#x2F;contractor on non sensitive software ?
评论 #27117579 未加载
评论 #27117942 未加载
评论 #27117443 未加载
评论 #27117196 未加载
sandGorgon将近 4 年前
are the 50hz chips manufactured at 50hz ? or are they downclocked to 50hz.<p>why cant you use higher clocked speeds ? like even 500 mhz, etc ? is there something special about 10 and 50hz ?
评论 #27117606 未加载
评论 #27117564 未加载
评论 #27117619 未加载