Skip to content

Streaming Simulated Sensors/Outputs #334

@cowsed

Description

@cowsed

Is your feature request related to a problem? Please describe.

Current simulation infrastructure is static, relies on pre-baked sims.
As well, we're limited by the size & fidelity of sims that we can fit on the board, not necessarily the size & fidelity of sims that we're able to run (with matlab and such)

As well, we can make sims react to hardware decisions if the link is bidirectional.

Describe the solution you'd like

Streaming sensors from a host computer to the target board would allow for larger scale and reactive simulations with hardware in the loop.

          ..--->--> Accel, Barom data --------..
Computer<                                        > Board
(matlab)  ''---<--< Servo position    --------''

Example for airbrakes

Additional context
Add any other context or screenshots about the feature request here.

Probably uart cuz we almost always have debug uart and its bidirectional
Would have to define a protocol for it

Backend could be something like openrocket sensors where theres a shared handler+resource at the bottom

Bubbles up to those sensors then to applications through sensor interface

Could maybe make it reactive?

  • Sensor: Firmware requests, Computer responds,
  • Actuator: Firmware states it

might fit the zephyr sensor model better than constantly streaming and may have preferable performance characteristcs tho latency could be an issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions