Story
- As a mission operator
- I want to change what is the first code file executed on startup
- So that over the air updates can be commanded.
Acceptance Criteria
Technical Details
When we upload new code to the satellite, one of the safer ways to try running that update is to use the built in CircuitPython supervisor module. This module allows you to define what code file will execute after a reset (instead of the default code.py or main.py.
In this feature request, we want to just demo some barebones functionality of using this module, where we add a command to cdh.py that will accept a string augment that is then passed to a supervisor.set_next_code_file() call.
See the API docs at this link:
https://docs.circuitpython.org/en/latest/shared-bindings/supervisor/index.html#supervisor.set_next_code_file
The original PR that introduced this feature to the supervisor module might be helpful as well!
adafruit/circuitpython#3454
Story
Acceptance Criteria
cdh.pycdh.pythat wraps asupervisor.set_next_code_file(str agrs)callTechnical Details
When we upload new code to the satellite, one of the safer ways to try running that update is to use the built in CircuitPython
supervisormodule. This module allows you to define what code file will execute after a reset (instead of the defaultcode.pyormain.py.In this feature request, we want to just demo some barebones functionality of using this module, where we add a command to
cdh.pythat will accept astringaugment that is then passed to asupervisor.set_next_code_file()call.See the API docs at this link:
https://docs.circuitpython.org/en/latest/shared-bindings/supervisor/index.html#supervisor.set_next_code_file
The original PR that introduced this feature to the
supervisormodule might be helpful as well!adafruit/circuitpython#3454