Skip to content

[FEATURE] CDH accept infinitely expandable list of commands #265

@nateinaction

Description

@nateinaction

Story

  • As a Satellite developer
  • I want to add my own commands to a pysquared based satellite without needing to contribute directly to pysquared
  • So that I can build my own functionality!

Acceptance Criteria

  • Able to accept commands that don't live in pysquared
  • Able to run functions for hardware that pysquared doesn't know how to interact with

Technical Details

Imagine that I'm a university that has developed a camera payload for pysquared. Camera functionality is not in built into pysquared. Instead of building all the functionality into pysquared.

Maybe something modifying __init__() to accept functions as arguments:

cdh(existing args, ("my_special_command", function), ...)

I wonder if we should have a protocol that defines what a command looks like?

class command:
  def get_name(): ...
  def run(args): ...

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions