XMAVLink.Util.CacheManager (xmavlink v0.14.0)

Copy Markdown View Source

Populate and keep updated a set of protected ETS tables representing:

  • the visible MAV systems
  • the most recently received messages for each MAV and message type
  • the most recently received set of parameters for each MAV

Using ETS tables allows clients to perform read only API operations directly on the tables, preventing this GenServer from becoming a bottleneck.

Use XMAVLink.Util.Context when utility state should be scoped to a specific router, dialect, or ETS table namespace.

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

mavs(opts \\ [])

msg()

msg(opts)

msg(name, opts)

msg(arg, msg_type, opts)

params()

params(opts)

params(match, opts)

params(arg, match, opts)

router(opts \\ [])

start_link(state, opts \\ [])