Dev.MockBridge (BB.TUI v0.1.0)

Copy Markdown View Source

Development-only BB.Bridge implementation that exposes a small set of pretend remote parameters with in-memory writes.

Useful for exercising bb_tui's Bridge tab UI end-to-end without connecting to a real flight controller or GCS:

iex> {:ok, params} = BB.Parameter.list_remote(Dev.TestRobot, :mavlink)
iex> BB.Parameter.set_remote(Dev.TestRobot, :mavlink, "PITCH_P", 0.42)
:ok

Storage is per-process and resets on bridge restart. Param shape mirrors bb_liveview's expected map keys (:id, :value, :type, :min, :max, :doc) so both dashboards consume the same payload.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.