Class MotorInfo

java.lang.Object
frc.team_8840_lib.utils.controllers.MotorInfo

public class MotorInfo extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final double
     
    final double
     
    final double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    MotorInfo(double temperature, double voltage, double current)
    Creates a storage struct for the tempature, voltage, and current of a controller
  • Method Summary

    Modifier and Type
    Method
    Description
    static MotorInfo
    fromController(com.revrobotics.CANSparkMax controller)
    Returns the motor info of a CANSparkMax controller.

    Methods inherited from class java.lang.Object

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

    • temperature

      public final double temperature
    • voltage

      public final double voltage
    • current

      public final double current
  • Constructor Details

    • MotorInfo

      public MotorInfo(double temperature, double voltage, double current)
      Creates a storage struct for the tempature, voltage, and current of a controller
      Parameters:
      temperature - Tempature of controller
      voltage - Voltage of controller
      current - Current of controller
  • Method Details

    • fromController

      public static MotorInfo fromController(com.revrobotics.CANSparkMax controller)
      Returns the motor info of a CANSparkMax controller.
      Parameters:
      controller - CANSparkMax controller
      Returns:
      MotorInfo of controller.