Documentation ¶
Overview ¶
package controller implements high-level logic for Ground-Controlled Interception (GCI)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // Run starts the controller's control loops. It should be called exactly once. It blocks until the context is canceled. // The controller publishes responses to the given channel. Run(context.Context, chan<- any) // SetTime updates the mission time used for computing magnetic declination. SetTime(time.Time) // SetBullseye updates the bullseye point. SetBullseye(orb.Point) // HandleAlphaCheck handles an ALPHA CHECK by reporting the position of the requesting aircraft. HandleAlphaCheck(*brevity.AlphaCheckRequest) // HandleBogeyDope handles a BOGEY DOPE by reporting the closest enemy group to the requesting aircraft. HandleBogeyDope(*brevity.BogeyDopeRequest) // HandleDeclare handles a DECLARE by reporting information about the target group. HandleDeclare(*brevity.DeclareRequest) // HandlePicture handles a PICTURE by reporting a tactical air picture. HandlePicture(*brevity.PictureRequest) // HandleRadioCheck handles a RADIO CHECK by responding to the requesting aircraft. HandleRadioCheck(*brevity.RadioCheckRequest) // HandleSnaplock handles a SNAPLOCK by reporting information about the target group. HandleSnaplock(*brevity.SnaplockRequest) // HandleSpiked handles a SPIKED by reporting any enemy groups in the direction of the radar spike. HandleSpiked(*brevity.SpikedRequest) // HandleTripwire handles a TRIPWIRE... by not implementing it LOL HandleTripwire(*brevity.TripwireRequest) // HandleUnableToUnderstand handles requests where the wake word was recognized but the request could not be understood, by asking players on the channel to repeat their message. HandleUnableToUnderstand(*brevity.UnableToUnderstandRequest) }
Controller handles requests for GCI service.
Click to show internal directories.
Click to hide internal directories.