radar
Base circuit for the radar program. The abstract radar doesn't have this, nor this one is associated to it, so make sure to specify the associate_program and circuit_comp_type of subtypes,
Vars | |
selected_by_app | The selected target, from the app |
---|---|
target | The target to track |
x_pos | The result from the output |
Procs | |
can_track | Check if we can track the object. When making different definitions of this proc for subtypes, include typical targets as an exception to this (e.g humans for lifeline) so that even if they're coming from a circuit input they won't get filtered by the maximum distance, because they're "supported entities". |
get_atom | Return the value of the target port. |
input_received | Set the selected ref of the program to the target (if it exists) and update the x/y pos ports (if trackable) when triggered. |
on_selected | When a target is selected by the app, reset the target port, update the x/pos ports (if trackable) and set selected_by_app port to the target atom. |
Var Details
selected_by_app
The selected target, from the app
target
The target to track
x_pos
The result from the output
Proc Details
can_track
Check if we can track the object. When making different definitions of this proc for subtypes, include typical targets as an exception to this (e.g humans for lifeline) so that even if they're coming from a circuit input they won't get filtered by the maximum distance, because they're "supported entities".
get_atom
Return the value of the target port.
input_received
Set the selected ref of the program to the target (if it exists) and update the x/y pos ports (if trackable) when triggered.
on_selected
When a target is selected by the app, reset the target port, update the x/pos ports (if trackable) and set selected_by_app port to the target atom.