Firmware/software configurations for OreSat missions.
Includes:
- A centralize "database" for all OreSat card object dictionaries (OD)
- Beacon definition for each OreSat mission
- The C3 F-RAM data definition (object values to be saved to the F-RAM chip)
Having all the OD defined in one place makes it much easier to update OD definitions without having to go to each repo to update each cards OD. Also, the C3 can easily import all the OD definitions to be used for SDO transfers.
- All object dictionaries for a specific OreSat mission are defined by YAML
files.
- All the OD configs are in
oresat_configs/base/ - All the beacon configs (
beacon.yaml)are in their mission directories:oresat_configs/oresat<mission_num>/
- All the OD configs are in
- All card specific configs are are named
<card_name>.yamlformat. They contain all card specific objects and PDOs.- NOTE: The cards YAML are similar to CANopen's
.edsfiles; they are for a device type, not a unique device on a CAN network (if you add an object tosolar.yaml, all solar cards will have that object).
- NOTE: The cards YAML are similar to CANopen's
- The
sw_common.yamldefines all CANopen standard objects, common objects, and common PDOs for all Octavo A8-based cards. - The
fw_common.yamldefines all CANopen standard objects, common objects, and common PDOs for all STM32-based cards. - A
standard_object.yamlcontains some CANopen standard objects that any<card_name>.yamlor*_common.yamlcan flag to include. - The
beacon.yamlfile defines the beacon definition as all the data is pulled strait out the C3's OD, which is mostly build from all other ODs. - The
c3.yamlfile also defines what objects have their values periodically saved to the C3's F-RAM chip.
For regular users: libyaml should be installed by default on
reasonable systems, but it never hurts to make sure.
$ sudo apt install libyaml-0-2
$ pip install oresat-configsFor developers:
$ sudo apt install libyaml-0-2
$ pip install -e .[dev]If installing on ARM (e.g. Octavo cards like the C3) special work is needed to
ensure that pyyaml uses the libyaml C bindings. The binary wheels from PyPI
aren't built with them so we need to install from the source package:
Installing the first time:
$ sudo apt install libyaml-dev
$ pip install --no-binary pyyaml oresat-configsFixing an already installed pyyaml: (see here if you get "ImportError: pyyaml missing/installed without libyaml bindings.")
$ sudo apt install libyaml-dev
$ pip install --force-reinstall --no-cache-dir --no-binary pyyaml pyyamlAfter updating configs for card(s), run the unit tests to validate all the configs.
$ python3 -m unittestIf there are no errors, the configs are valid.
Build and install the new version of oresat-configs to build, test, and/or import with.
Once the change have been tested with firmware/software, open a Pull Request to this repo to get all changes into the next release.
$ python -m buildThe artifact will be in dist/oresat_configs-*.whl