SCRC v0.5.1 Scrc.DriverBehaviour behaviour View Source

DriverBehaviour defines the functions to be implemented for custom drivers

Link to this section Summary

Link to this section Callbacks

Link to this callback scrc_drive(%{}) View Source
scrc_drive(%{sensor_data: Scrc.SensorData.t(), actor_data: Scrc.ActorData.t()}) ::
  {:ok, %{actor_data: Scrc.ActorData.t()}}
Link to this callback scrc_init(map) View Source
scrc_init(map()) :: {:ok, map(), Scrc.Driver.name(), [float()]}