Class Flag

java.lang.Object
org.teamvan.robot.mechanisms.flag.Flag
All Implemented Interfaces:
Mechanism

public class Flag extends Object implements Mechanism
Flag that raises while its command is running and lowers when that command is canceled.
  • Constructor Details

    • Flag

      public Flag()
  • Method Details

    • isRaised

      public boolean isRaised()
    • raise

      public Command raise()
      Holds the flag up until canceled, then schedules lower().
    • lower

      public Command lower()
      Drops the flag.
    • updateOutputs

      public void updateOutputs()
      Publishes the flag Mechanism2d. Call after the scheduler so the pose matches the commands.