Class MotorInfo
java.lang.Object
frc.team_8840_lib.utils.controllers.MotorInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doublefinal doublefinal double -
Constructor Summary
ConstructorsConstructorDescriptionMotorInfo(double temperature, double voltage, double current) Creates a storage struct for the tempature, voltage, and current of a controller -
Method Summary
Modifier and TypeMethodDescriptionstatic MotorInfofromController(com.revrobotics.CANSparkMax controller) Returns the motor info of a CANSparkMax controller.
-
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 controllervoltage- Voltage of controllercurrent- Current of controller
-
-
Method Details
-
fromController
Returns the motor info of a CANSparkMax controller.- Parameters:
controller- CANSparkMax controller- Returns:
- MotorInfo of controller.
-