Class Feature

java.lang.Object
com.crossbotics.ftchelper.robot.Feature

public final class Feature extends Object
One ready-made thing the library can do for this robot (see RobotDefinition.features()): an autonomous step or action ("Fire 2", "Aim at the goal"), a TeleOp toggle ("aim mode"), or something it does by itself ("the Goal line on the Driver Station"). Ready when the robot has the parts it needs; otherwise missing says what to add. code is the line to use it. Docs: docs/reference/robot-java.md, "What your robot can do"
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Where it is used.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
    The line to use it (Java), "" for AUTOMATIC.
     
    final String
    What is missing now ("" = ready).
    final String
    What it is called: "Fire 2", "Aim at the goal".
    final String
    What it needs, in words: "a launcher", "a camera with goal(...), or odometry + Tunables.Aim goalX, goalY".
    final String
    A short note ("" = none): "with a tank drive: forward and back only".
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    True if the robot has what it needs.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • kind

      public final Feature.Kind kind
    • name

      public final String name
      What it is called: "Fire 2", "Aim at the goal".
    • code

      public final String code
      The line to use it (Java), "" for AUTOMATIC.
    • needs

      public final String needs
      What it needs, in words: "a launcher", "a camera with goal(...), or odometry + Tunables.Aim goalX, goalY".
    • missing

      public final String missing
      What is missing now ("" = ready).
    • note

      public final String note
      A short note ("" = none): "with a tank drive: forward and back only".
  • Method Details

    • ready

      public boolean ready()
      True if the robot has what it needs.
    • toString

      public String toString()
      Overrides:
      toString in class Object