Skip to main content

OreSat mission configurations

Project description

OreSat Configs

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.

How This Works

  • 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 card specific configs are are named <card_name>.yaml format. They contain all card specific objects and PDOs.
    • NOTE: The cards YAML are similar to CANopen's .eds files; they are for a device type, not a unique device on a CAN network (if you add an object to solar.yaml, all solar cards will have that object).
  • The sw_common.yaml defines all CANopen standard objects, common objects, and common PDOs for all Octavo A8-based cards.
  • The fw_common.yaml defines all CANopen standard objects, common objects, and common PDOs for all STM32-based cards.
  • A standard_object.yaml contains some CANopen standard objects that any <card_name>.yaml or *_common.yaml can flag to include.
  • The beacon.yaml file 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.yaml file also defines what objects have their values periodically saved to the C3's F-RAM chip.

Setup

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-configs

For developers:

sudo apt install libyaml-0-2
pip install -e . --group 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-configs

Fixing 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 pyyaml

Updating a Config

After updating configs for card(s), run the unit tests to validate all the configs.

pytest

If there are no errors, the configs are valid.

Build and install the new version of oresat-configs to build, test, and/or import with. If you have both oresat-configs and the project using it on the same system it can be very useful to install this project as an editable dependency there, then local changes you make here show up immediately.

In the project used for testing:

pip install --editable <path to oresat-configs directory>

Once the change have been tested with firmware/software, open a Pull Request to this repo to get all changes into the next release.

Building a distributable package

$ python -m build

The artifact will be in dist/oresat_configs-*.whl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oresat_configs-1.1.2.tar.gz (130.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oresat_configs-1.1.2-py3-none-any.whl (86.3 kB view details)

Uploaded Python 3

File details

Details for the file oresat_configs-1.1.2.tar.gz.

File metadata

  • Download URL: oresat_configs-1.1.2.tar.gz
  • Upload date:
  • Size: 130.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for oresat_configs-1.1.2.tar.gz
Algorithm Hash digest
SHA256 9920ea3c708ac5036bde5711a8cee545bd79534632d9780dd4c0556f23a0633e
MD5 c79e74eefa0107897c318dbb1fc388ea
BLAKE2b-256 080cddc22595ee2d688fad5871b080f4c9e72574105708d055c0269a0da40157

See more details on using hashes here.

Provenance

The following attestation bundles were made for oresat_configs-1.1.2.tar.gz:

Publisher: pypi.yaml on oresat/oresat-configs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file oresat_configs-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: oresat_configs-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 86.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for oresat_configs-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 233655da06f316ec62f76ea91b682ad9ebd9ccc1286465fcdca1a2b6cdb82c1d
MD5 f2beb9c11c826d2361e3262af42e3de3
BLAKE2b-256 4db3a5b1c05057d9e01911da77c6196543c190e92157b41f727a5896bb1fe324

See more details on using hashes here.

Provenance

The following attestation bundles were made for oresat_configs-1.1.2-py3-none-any.whl:

Publisher: pypi.yaml on oresat/oresat-configs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page