Package frc.lib.util

Class WebController

java.lang.Object
frc.lib.util.WebController

public class WebController extends Object
Controller via HTTP.
  • Constructor Details

    • WebController

      public WebController(int port)
      Create a new WebController
      Parameters:
      port - Port the webserver is exposed on.
  • Method Details

    • periodic

      public void periodic()
      Run once per cycle.
    • hasReefLocation

      public Trigger hasReefLocation()
      Get if fully defined reef location is available
    • getDesiredHeight

      public ScoringLocation.Height getDesiredHeight()
      Get elevator height for scoring location
    • getDesiredLocation

      public ScoringLocation.CoralLocation getDesiredLocation()
      Get coral scoring location
    • feeder

      public char feeder()
      Which feeder to go to
    • whatToDoWithAlgae

      public char whatToDoWithAlgae()
      Where to score algae (or drop)
    • crossOut

      public void crossOut(ScoringLocation.Height height)
      Cross out item on at given height
    • additionalAlgaeHeight

      public Optional<ScoringLocation.Height> additionalAlgaeHeight()
      Get available algae at same position