Package frc.lib.util
Class WebController
java.lang.Object
frc.lib.util.WebController
Controller via HTTP.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Webcontroller inputs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet available algae at same positionvoid
crossOut
(ScoringLocation.Height height) Cross out item on at given heightchar
feeder()
Which feeder to go toGet elevator height for scoring locationGet coral scoring locationGet if fully defined reef location is availablevoid
periodic()
Run once per cycle.char
Where to score algae (or drop)
-
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
Get if fully defined reef location is available -
getDesiredHeight
Get elevator height for scoring location -
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
Cross out item on at given height -
additionalAlgaeHeight
Get available algae at same position
-