Class PARTsCandle

java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
org.parts3492.partslib.command.PARTsSubsystem
org.parts3492.partslib.PARTsCandle
All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable, edu.wpi.first.wpilibj2.command.Subsystem, IPARTsSubsystem

public abstract class PARTsCandle extends PARTsSubsystem
  • Constructor Details

    • PARTsCandle

      public PARTsCandle(String className, int canID, int ledLength)
      Create a new PARTsCANdle.
      Parameters:
      className - The class name. E.g. PARTsCANdle
      canID - The ID of the CANdle hardware.
      ledLength - The length of LEDs attached to the CANdle.
  • Method Details

    • setColor

      protected void setColor(PARTsCandle.Color color)
    • setNoColor

      protected void setNoColor()
    • setColorGreenCommand

      protected edu.wpi.first.wpilibj2.command.Command setColorGreenCommand()
    • setNoColorCommand

      protected edu.wpi.first.wpilibj2.command.Command setNoColorCommand()
    • runBurnyBurnAnimation

      protected void runBurnyBurnAnimation()
    • runRainbowAnimation

      protected void runRainbowAnimation()
    • runStrobeAnimation

      protected void runStrobeAnimation(PARTsCandle.Color color)
    • runStrobeAnimation

      protected void runStrobeAnimation(PARTsCandle.Color color, double speed)
    • runLarsonAnimation

      protected void runLarsonAnimation(PARTsCandle.Color color)
    • runLarsonAnimation

      protected void runLarsonAnimation(PARTsCandle.Color color, double speed, int size)
    • runTwinkleAnimation

      protected void runTwinkleAnimation(PARTsCandle.Color color)
    • runColorFlowAnimation

      protected void runColorFlowAnimation(PARTsCandle.Color color)
    • runColorFlowAnimation

      protected void runColorFlowAnimation(PARTsCandle.Color color, double speed, com.ctre.phoenix6.signals.AnimationDirectionValue direction)
    • runFireAnimation

      protected void runFireAnimation()
    • runFireAnimation

      protected void runFireAnimation(double brightness, double speed, double sparking, double cooling)
    • runTwinkleAnimation

      protected void runTwinkleAnimation(PARTsCandle.Color color, double speed)
    • runFadeAnimation

      protected void runFadeAnimation(PARTsCandle.Color color, double speed)
    • getVbat

      public double getVbat()
    • get5V

      public double get5V()
    • getCurrent

      public double getCurrent()
    • getTemperature

      public double getTemperature()
    • configBrightness

      public void configBrightness(double percent)
    • configLos

      public void configLos(com.ctre.phoenix6.signals.LossOfSignalBehaviorValue disableWhenLos)
    • configLedType

      public void configLedType(com.ctre.phoenix6.signals.StripTypeValue type)
    • configStatusLedBehavior

      public void configStatusLedBehavior(com.ctre.phoenix6.signals.StatusLedWhenActiveValue offWhenActive)
    • periodic

      public void periodic()
    • outputTelemetry

      public void outputTelemetry()
    • stop

      public void stop()
    • reset

      public void reset()
    • log

      public void log()