Skip to content
Johan Vandegriff edited this page Dec 16, 2016 · 1 revision

The StateName interface is meant to be implemented by an enum which contains the names of all the states you want to set up.

ftc/electronvolts/statemachine/StateName.java

package ftc.electronvolts.statemachine;

/**
 * This file was made by the electronVolts, FTC team 7393
 *
 * This class is meant to be implemented with an enum containing the list of
 * state names.
 */
public interface StateName {
    /**
     * @return Returns the name for telemetry purposes.
     */
    String name();
}

Home | Features

This guide will walk you through the basics of creating state machines using the state-machine-framework.

  1. Importing Into Your Project
  2. The State Interface
  3. Simple State Machine
  4. Custom States
  5. Custom StateMachineBuilder
  6. Custom EndConditions

Clone this wiki locally