BB.TUI.State.Safety (BB.TUI v0.1.0)

Copy Markdown View Source

Robot safety status, split out of BB.TUI.State.

state mirrors the robot's safety state machine (:armed/:disarmed/ :disarming/:error), runtime its operational runtime state, and confirm_force_disarm? tracks whether the force-disarm confirmation dialog is open. state/runtime are seeded when BB.TUI.App starts.

Summary

Types

t()

@type t() :: %BB.TUI.State.Safety{
  confirm_force_disarm?: boolean(),
  runtime: atom() | nil,
  state: :armed | :disarmed | :disarming | :error | nil
}