Package frc.spectrumLib.sim
Class LinearConfig
java.lang.Object
frc.spectrumLib.sim.LinearConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetAngle()doubleedu.wpi.first.wpilibj.util.Color8BitgetColor()doubledoubledoubledoubledoubledoubledoubledoubledoubledoublegetMount()doubleintdoubledoubledoublebooleansetAngle(double angle) setCarriageMass(double carriageMassKg) setColor(edu.wpi.first.wpilibj.util.Color8Bit color) setLineWidth(double lineWidth) setMaxHeight(double lengthInches) setMovingLength(double lengthInches) setNumMotors(int numMotors) setStaticLength(double lengthInches) setStaticRootX(double staticRootX) setStaticRootY(double staticRootY)
-
Constructor Details
-
LinearConfig
public LinearConfig(double x, double y, double gearing, double drumRadius)
-
-
Method Details
-
setNumMotors
-
setCarriageMass
-
setAngle
-
setColor
-
setLineWidth
-
setStaticLength
-
setMovingLength
-
setMaxHeight
-
setMount
-
setMount
-
getNumMotors
public int getNumMotors() -
getElevatorGearing
public double getElevatorGearing() -
getCarriageMassKg
public double getCarriageMassKg() -
getDrumRadius
public double getDrumRadius() -
getMinHeight
public double getMinHeight() -
getMaxHeight
public double getMaxHeight() -
getAngle
public double getAngle() -
getColor
public edu.wpi.first.wpilibj.util.Color8Bit getColor() -
getLineWidth
public double getLineWidth() -
getInitialX
public double getInitialX() -
getInitialY
public double getInitialY() -
getStaticRootX
public double getStaticRootX() -
setStaticRootX
- Returns:
this.
-
getStaticRootY
public double getStaticRootY() -
setStaticRootY
- Returns:
this.
-
getStaticLength
public double getStaticLength() -
getMovingLength
public double getMovingLength() -
isMounted
public boolean isMounted() -
getMount
-
getInitMountX
public double getInitMountX() -
getInitMountY
public double getInitMountY() -
getInitMountAngle
public double getInitMountAngle()
-