Package com.marswars.mechanisms
Class MotorConfig
java.lang.Object
com.marswars.mechanisms.MotorConfig
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(TalonFXConfiguration fxConfig) Applies a TalonFXConfiguration to this motor config.voidapply(TalonFXSConfiguration fxsConfig) Applies a TalonFXSConfiguration to this motor config.Gets the config as TalonFXConfiguration.Gets the config as TalonFXSConfiguration.booleanisFXS()Returns true if this motor uses TalonFXS configuration (MINION, NEO_550)voidloadFromConfig(String... base_steps)
-
Field Details
-
loader
-
canbus_name
-
can_id
public int can_id -
motor_type
-
-
Constructor Details
-
MotorConfig
-
MotorConfig
public MotorConfig()
-
-
Method Details
-
isFXS
public boolean isFXS()Returns true if this motor uses TalonFXS configuration (MINION, NEO_550) -
apply
Applies a TalonFXConfiguration to this motor config. Throws exception if motor uses FXS config.- Parameters:
fxConfig- The TalonFXConfiguration to apply
-
apply
Applies a TalonFXSConfiguration to this motor config. Throws exception if motor uses FX config.- Parameters:
fxsConfig- The TalonFXSConfiguration to apply
-
getAsFXConfig
Gets the config as TalonFXConfiguration. Throws exception if motor uses FXS config. If config is null, creates a default TalonFXConfiguration. -
getAsFXSConfig
Gets the config as TalonFXSConfiguration. Throws exception if motor uses FX config. If config is null, creates a default TalonFXSConfiguration. -
loadFromConfig
-