This repository was archived by the owner on Jun 13, 2023. It is now read-only.
Set up FSW to be plugged into the Sim #174
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR is another step towards integrating flight software and the sim. It allows for flight software to be completely (all files included) compiled into a
.tar.gzfile. This will allow for the.tar.gzfile to be pip installed into the sim and for testing to be done between the two systems. Installing FSW into the sim like this will reveal any last holes for successfully integrating the FSW into the sim.The latter half of Section 5 of my final report gives some more context to this change: https://cornell.box.com/s/d4qeksk9u0yf6tncf7p9uzw2w8dsuflm
Changes made:
main.pyinto a module, fsw_main so that it can be picked up and packaged by setuptools. Every file that we want setuptools to pick up must be in a module.__init__.pyfiles to modules that were previously missing them (setuptools does not pick up on modules that do not have an__init__.pyfile).Testing
Successfully pip installed
.tar.gzfile into sim. The "hardware errors" that appear are consistent between running flight software by itself and running it alongside the sim. So, I conclude that there aren't any major integration issues at this point.Here are some instructions on how to test this:
Reference this tutorial as well: https://packaging.python.org/en/latest/tutorials/packaging-projects/
In FSW:
python3 -m pip install --upgrade buildto install the package needed to package the python project.python3 -m buildto compile the.tar.gzfile you will install into the sim.dist/directory. You will need the one with extension.tar.gz.In sim:
.tar.gzfile in some directory within the sim.pip install <file_name>.tar.gz(yes, no -e flag). For example, if you placed the file within the parent directory, you can just runpip install CislunarExplorers-0.1.tar.gz.Notes
Comments