Skip to content

Conversation

@Ropes
Copy link

@Ropes Ropes commented Jul 8, 2021

Simple Changes

  • Update to majortom-gateway library version
  • Importing top level Packages will expose the main APIs directly via the init.py files
  • Additions to the example_commands.json for testing new 'boolean' types and legacy boolean fields

Functional Changes

  • Promoted the pkg/test_.py file tests/satellite/test_sat,py to tests/test_sat.py. This makes some testing libraries happier.
    • Started to add tests, however need to revisit to provide deeper data assertions.
  • Handle both proper boolean values and stringified booleans; such as "true", and interpret both as the boolean value.

Note: I have additional example commands for testing boolean types that I haven't committed. Can anyone think of nice satellite commands that would benefit having a boolean field?

@Ropes Ropes requested a review from miketwo July 8, 2021 22:44
Ropes added 6 commits July 16, 2021 12:54
WIP Adding boolean values to CommandDefintion configuration examples and
tests.

Signed-off-by: Josh Roppo <josh@kubos.co>
Tests were picking up the import cycle between Gateway<->satellite
packages. Over-separated functionality into separate packages. WIP

Signed-off-by: Josh Roppo <josh@kubos.co>
The `show_hidden` field is now accepted on the "update_file_list"
command. When True, the files returned will include 'hidden' files using
the unix `.filename` syntax.

Signed-off-by: Josh Roppo <josh@kubos.co>
Code which has value to use as base for further functionality resides in
the `gateway` package. The `satellite` package only contains
demonstration functionality of what a satellite might provide.

Signed-off-by: Josh Roppo <josh@kubos.co>
Signed-off-by: Josh Roppo <josh@kubos.co>
Enables testing the Radio-boolean fields with other options.

Signed-off-by: Josh Roppo <josh@kubos.co>
@Ropes Ropes force-pushed the ropes/boolean-field branch from 6d2c11f to 3bf6185 Compare July 16, 2021 20:03
@Ropes Ropes changed the base branch from overhaul-example to master July 16, 2021 20:45
@miketwo
Copy link
Contributor

miketwo commented Jul 16, 2021

Can anyone think of nice satellite commands that would benefit having a boolean field?

Subsystem Power is typical ON/OFF. So you might have something like a set_power with booleans for each subsystem: reaction_wheels, magnetorquers, sband_radio, xband_radio, iridium_radio, main_cpu, gyros, accels, gps...

@miketwo
Copy link
Contributor

miketwo commented Jul 19, 2021

I'd like to split out the boolean-related changes from the rest and hold onto those until the backend is upgraded and deployed. The rest looks good and can be merged immediately (if it's finished).

Copy link
Contributor

@miketwo miketwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably close this now, yeah?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants