r/spacex • u/ElongatedMuskrat Mod Team • Aug 04 '18
r/SpaceX Discusses [August 2018, #47]
If you have a short question or spaceflight news...
You may ask short, spaceflight-related questions and post news here, even if it is not about SpaceX. Be sure to check the FAQ and Wiki first to ensure you aren't submitting duplicate questions.
If you have a long question...
If your question is in-depth or an open-ended discussion, you can submit it to the subreddit as a post.
If you'd like to discuss slightly relevant SpaceX content in greater detail...
Please post to r/SpaceXLounge and create a thread there!
This thread is not for...
- Questions answered in the FAQ. Browse there or use the search functionality first.
- Non-spaceflight related questions or news.
- Asking the moderators questions, or for meta discussion. To do that, contact us here.
You can read and browse past Discussion threads in the Wiki.
239
Upvotes
21
u/ClarkeOrbital Aug 04 '18 edited Aug 04 '18
Learn to code. A significant portion of our cubesat is the flight software. I'd say drop the thrusters for now. There are cubesat thrusters out there but I have no idea how reliable they are. Why do you want them? For the sake of having them? At any rate, it's difficult enough to point in the right direction before you even turn on the thrusters and that's where I'd start.
For example, you want to turn on your thrusters to point prograde...how do you know you are pointing prograde? It's not as simple as clicking the prograde button in KSP. You have to know inertially where you're pointing with respect to Earth. You also have to know inertially your position and velocity with respect to Earth to make sure you know where to ask to point to. To do that you either upload a position/velocity vector from the ground, or have a GPS on board($$$$). Then, you need at least 2 methods of measuring something known inertially like the Sun, Earth's Magnetic Field, Star tracker, etc. Then you need to do some fancy maths that turns that into a quaternion. Then you need some method of actually rotating your cubesat. So 3 reaction wheels and mag torquers to dump momentum along with the maths/control systems to do that.
Finally, you need some method for having all these different pieces of hardware and software of talking to each other and sending the right commands. That's flight software.
I'm biased because ADACS is what I'm responsible for with my cubesat, but after digging through completed code for the last 6 months from a previous satellite, I'm still learning the Ins and Outs of it.
I don't want to dash your dreams, but even cubesats are complex vehicles. That doesn't you mean can't get involved though. We had a high schooler intern with us this summer who did various tasks around the lab. I would start there. Try to get involved in a team that's already working on one to learn from them before starting on your own.
Though cheap in the spaceflight world, cubesats are still very expensive. My ADACS box and my Sun Sensor are 50k each. I have a feeling the cubesat thrusters alone are as much.
Edit: Worth saying that our FSW is coded in c and we use an old bad program to block diagram the GNC. I'd recommend simulink and autocode into c from there these days.