Package com.marswars.mechanisms
Class TurretMech
java.lang.Object
com.marswars.mechanisms.MechBase
com.marswars.mechanisms.RollerMech
com.marswars.mechanisms.TurretMech
- All Implemented Interfaces:
SubsystemIoBase
Roller-based mechanism configured for turret control.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.marswars.mechanisms.RollerMech
RollerMech.ControlModeNested classes/interfaces inherited from class com.marswars.mechanisms.MechBase
MechBase.ConstructedMotors -
Field Summary
Fields inherited from class com.marswars.mechanisms.RollerMech
current_target_, current_target_FF_, duty_cycle_target_, filtered_torque_current_, inputs_, motion_magic_position_request_, motion_magic_velocity_request_, motor_conn_debouncers_, motor_disconnected_alerts_, motor_temp_alerts_, position_target_, signals_, velocity_target_ -
Constructor Summary
ConstructorsConstructorDescriptionTurretMech(String logging_prefix, String mech_name, List<MotorConfig> motor_configs, double gear_ratio, double moi) Constructs a new TurretMechTurretMech(String logging_prefix, List<MotorConfig> motor_configs, double gear_ratio, double moi) Constructs a new TurretMech -
Method Summary
Methods inherited from class com.marswars.mechanisms.RollerMech
applyLoadTorque, configSlot, getCurrentPosition, getCurrentVelocity, getLeaderStatorCurrent, getLeaderSupplyCurrent, logData, readInputs, setCurrentLimits, setCurrentPosition, setTargetCurrent, setTargetCurrentWithFF, setTargetDutyCycle, setTargetPosition, setTargetPositionMotionProfile, setTargetPositionMotionProfileWithFF, setTargetPositionWithFF, setTargetVelocity, setTargetVelocityMotionProfile, writeOutputsMethods inherited from class com.marswars.mechanisms.MechBase
configMotors, configMotors, getLoggingKey, getMechName, setMotorCurrentLimit
-
Constructor Details
-
TurretMech
public TurretMech(String logging_prefix, List<MotorConfig> motor_configs, double gear_ratio, double moi) Constructs a new TurretMech- Parameters:
logging_prefix- String prefix for loggingmotor_configs- Configuration for the turret motorgear_ratio- Gear ratio as motor rotations / mechanism rotationsmoi- Moment of inertia of the turret in kg*m^2 (Simulation only)
-
TurretMech
public TurretMech(String logging_prefix, String mech_name, List<MotorConfig> motor_configs, double gear_ratio, double moi) Constructs a new TurretMech- Parameters:
logging_prefix- String prefix for loggingmech_name- Name of the mechanismmotor_configs- Configuration for the turret motorgear_ratio- Gear ratio as motor rotations / mechanism rotationsmoi- Moment of inertia of the turret in kg*m^2 (Simulation only)
-