r/javascript • u/Apone_A • Mar 19 '21
NASA's next generation mission control system is written in JavaScript, and it's open source.
https://github.com/nasa/openmct60
u/IronDicideth Mar 19 '21
This should really be changed to correctly let us know that it is the system UI that is being written in JS. When I first opened the repo with the initial impression of the full mission control system and started looking for a test folder I did not find one and became concerned. I am now wondering if I was missing something.
28
u/Apone_A Mar 19 '21
That's a fair point. Open MCT is the user facing part of a system of software components that collectively are used to operate spacecraft. Open MCT is designed to work with a number of different telemetry backends which have been implemented in various languages including Java, Python, and, yes, Node JS.
We do in fact have test specs, they sit alongside the code rather than in a separate test directory.
4
u/kizerkizer Mar 19 '21
LOL. I was thinking how crazy it would be to write the actual system in not even TS but JS.
What’s the safest language in existence? They would need to test and analyze the actual machine code for safety and correctness.
1
u/snejk47 Mar 19 '21
Webb telescope afaik runs (will run) JavaScript on suitable engine. In automotive, mruby.
1
u/IronDicideth Mar 20 '21
I need to check this out. Will love to dive into the code as soon as I get the chance. Thanks!
12
u/HeavyMessing Mar 19 '21 edited Mar 19 '21
Mission Control UI... so if I'm understanding correctly... not the code controlling the rockets, but the code controlling the transmission and display of the information about the rocket to the people controlling the code that controls the rocket...?
Would this be a good project to watch for examples of best-practices, as someone learning Js and front-end development in general?
18
u/Apone_A Mar 19 '21
Correct, we're not talking about "control" as in PID controllers and so on. We tend to use "mission control" as shorthand for people sitting in a room looking at computer displays that are showing telemetry values from a spacecraft.
3
u/monsto Mar 19 '21
AH OK
So the title is correct, but the terminology is misunderstood by a lot of these readers. It literally is Mission Control, but not systems control onboard.
That makes perfect sense.
4
u/Chef619 Mar 19 '21
From what I understood on the space x ama, rocket code is in C, feeding info to a web app running on the touch screens inside crew dragon.
1
6
u/everestimated Mar 19 '21
Thanks for sharing. Was thinking that it would be cool to contribute but I see pull requests created last summer that are still unmerged. Might want to put getting those resolved one way or the another into everyday team responsibilities. Long standing PRs are a nightmare for everyone involved and seeing them up will discourages people from contributing in the first place.
6
u/Apone_A Mar 19 '21
Totally fair criticism. That's something we need to get better at. We are not actually funded to support an open source community, the team do this in our spare time.
2
u/everestimated Mar 19 '21
Been in a similar situation at one point, and can absolutely sympathize. Our team would maintain a project used by multiple others but we had to also do it "on the side" while also executing on our primary roadmap, which was the one thing that would be considered when looking at how our team executes and performs. Very hard to find team for all the extra items that aren't really must haves.
Things have changed once we've put some effort into evangelizing the importance of that project and had people external to our give positive feedback about what were doing to our leadership. Once we managed to get the attention and buy in from higher management, we got resourcing and headcount to focus more and eventually full time on it. It's a long way, but definitely very gratifying.
If you want to chat some time to exchange experiences and learnings, let me know.
334
u/cantindajobinus Mar 19 '21
Mission control system UI is written in javascript.
141
u/int122 Mar 19 '21
You have just reached an undefined galaxy.
132
u/feketegy Mar 19 '21
Your speed is NaN.
57
u/superAL1394 Mar 19 '21 edited Mar 19 '21
Your target orbit is [object Object]
Edit: Fixed. I’ve been writing Java for awhile. Funny enough it’s nothing like JavaScript.
3
2
14
10
67
u/dmethvin Mar 19 '21
They tried writing the flight software in Javascript but the node_modules folder was too heavy.
2
49
-39
Mar 19 '21
It seems like you degrading it into something like “its just UI”. To the people like you who are emotional about the programming languages. UI system is also very important or as important as any other system. Because thats where the input is given to run the program.
54
u/Relentless_Sarcasm Mar 19 '21
Not really he suggested an edit to make it more specific and avoid ambiguity there is no emotive "just" at all. Without specifically mentioning UI a natural reading of the statement implies that the entire thing is written in javascript which is simply not true.
11
u/--xra Mar 19 '21
Who's being emotional here...? They just clarified. Probably wouldn't want serious control logic in JavaScript anyway.
4
1
2
u/Majache Mar 19 '21 edited Mar 19 '21
Thanks for making this post! I've been wanting to contribute to OpenMCT for a long time. Especially as a way to interview at nasa with leverage. I've been busy as a contractor but this post has been a great reminder. I've presented this repo to multiple companies as well looking for a mixture of implementation and open source contributing as my day to day role.
One of my proposals was based on IoT devices, and oil pipelines. They collected data on oil leaks, and used ML for predicting leaks so there was a need for creating a robust graph UI to display all their telemetry.
At some point I planned on using this UI to consume data from a particle board/chip with cellular data for model rocket telemetry. Getting that data in real time for trying to do VTVL would be fantastic, and quickly editing widgets to navigate that telemetry while on the field is invaluable.
Is there any plans to upgrade angular version?
How will that affect creating plugins?
4
u/Apone_A Mar 19 '21
Angular is being removed from our codebase, we use Vue instead. We also removed Angular from our API (so as not to push a dependency on plugin developers), so the API is all vanilla JS now. You can build plugins using whatever framework you like.
3
u/DavvenCarter Mar 19 '21
Thanks for the share! Would love to work on an open source project like this 😀
1
3
u/TheDownmodSpiral Mar 19 '21
As a former console operator and launch operations engineer I hope you guys have all the success in the world! Very cool project to be a part of!
5
u/CommandLineDesign Mar 19 '21
Is there a specific reason you don't commit package-lock.json to the repo?
0
2
2
1
1
1
1
1
1
u/Admirable-Tart-9032 Mar 19 '21
JavaScript is a very power full language in the field of development. I'm also working on a project using javascript. Here, my dream organization is using javascript.
-2
u/vexii Mar 19 '21
why angular?
1
u/mrkepe Mar 19 '21
why not
4
u/vexii Mar 19 '21
you just don't see alot of new angular projects so it's an interesting question? also Google dropped it in 2018ish with official depreciation on 31. December 2021.
2
u/Apone_A Mar 19 '21
A lot of our legacy code was written in Angular 1.x. All of our newer code is Vue and vanilla JS. We are refactoring our remaining Angular code over the next couple of months.
-41
Mar 19 '21 edited Mar 20 '21
Good decision. ııIı_
6
u/Apone_A Mar 19 '21
Happy to take feedback. That's one of the reasons we're open source!
-20
Mar 19 '21 edited Mar 20 '21
.
2
2
u/monsto Mar 19 '21
It's Mission Control
From another comment here...
we're not talking about "control" as in PID controllers and so on. We tend to use "mission control" as shorthand for people sitting in a room looking at computer displays that are showing telemetry values from a spacecraft.
In the context of this workplace, the terminiology of mission control means UI/interface. which is exactly what JS is good at.
0
-4
u/skullshatter0123 Mar 19 '21
Error: Cannot access property 'wheels' on undefined. marsRover is undefined
-4
u/Necessary-Leading-14 Mar 19 '21
I think we have to reach the ends of the earth before we try to go anywhere .
0
Mar 19 '21
[deleted]
-52
u/hcabbos70 Mar 19 '21
Exactly. I hate to be Debbie Downer but c’mon people. We don’t want the same tech that spawns those annoying web ads also being responsible for missions that take years to plan, 8-9 months to get to their destination, and hundreds of millions of dollars to finance. Let’s leave the adult stuff to adults.
3
u/FrankNitty_Enforcer Mar 19 '21
I understand your sentiment, it does downplay the enormous efforts of the engineers who have to deal with actual flight control software code, and it is nothing like JS.
Maybe the “adults” comment was harshly worded, but people also need to understand how much the world has been subjected to JS enthusiasts claiming their tools can do anything better than other languages.
3
u/hcabbos70 Mar 19 '21
I have to admit, my comment was ignorant. Keep the negatives coming. Rightly deserved. And yes, the Internet never forgets.
3
u/monsto Mar 19 '21
In a more abstract POV, JS is just a tool.
It just also happens to be the ubiqutous, cheapest, well documented, well supported, simplest tool for ad makers to use.
Generally speaking, people forget the idioms "use the best tool for the job" and "measure twice, cut once", and then they (not you specfically) complain when things don't go swimmingly.
Then you shouldn't have used RoR for data manipulation and c++ for your front end.
1
u/snejk47 Mar 19 '21
Do you know exactly this (ok, not exactly, forked version at particular time) was used for Mars2020 and it is this system, different theme and layout you can see in landing videos? Do you know SpaceX dragon 2 is web?
18
Mar 19 '21
[removed] — view removed comment
1
u/FrankNitty_Enforcer Mar 19 '21
I wouldn’t call it gatekeeping to remark on the real limitations of javascript, and to call out the obviously overstated role of JS in this particular project conveyed by the post title.
There is a tendency of developers who strctly use python, JS, Ruby to get excited when those languages are used in more “serious, mission-critical” systems, and i agree it is very exciting. But here the OP has misrepresented the role of JS in this system.
1
u/kenman Mar 20 '21
Hi u/DefiantBidet, please refrain from personal attacks. Thanks.
1
u/DefiantBidet Mar 20 '21
Out if curiosity, which of my statements is a personal attack? The arrogant developer opinion, or the use of the op's phrasing of being adults?
1
u/kenman Mar 20 '21
All of it that was intended to insult OP.
OP was level-headed about it, thankfully.
0
Mar 19 '21
[deleted]
10
u/TheScapeQuest Mar 19 '21
There are two types of programming languages: those that people complain about, and those that are never used.
0
-4
u/FrankNitty_Enforcer Mar 19 '21
IMO it’s mostly because the OP wrote a misleading title. JS is just being used for the UI but their title implies that JS is the language used for the whole system.
Mission critical real-time systems need execution control down to the microsecond. Javascripts event loop mode is absolutely great for a lot of use cases, this is not one of them.
It’s just anti-BS, not anti-JS
1
Mar 23 '21
op, who is on the project, wrote a misleading title, based on the name of the app they developed.
i'd love to see the logic in your code.
1
u/FrankNitty_Enforcer Mar 23 '21
Hm.. I’m not insinuating that the OP is intentionally misleading people. Roughly half of the comments in this thread (at least when I read it) were confused by the idea of a runtime-interpreted language being used for real-time device controls in a space system, and others having to clarify that it’s strictly for data viz.
That was the context for my comment, and their confusion is completely understandable. Javascript can do many things well, but it’s not the right tool for everything.
173
u/Apone_A Mar 19 '21
I work on this project, so if you have any questions I'd be happy to answer them. Also, we're hiring right now for JavaScript developers!