Package frc.spectrumLib.sim
Class ArmConfig
java.lang.Object
frc.spectrumLib.sim.ArmConfig
-
Constructor Summary
ConstructorsConstructorDescriptionArmConfig
(double initialX, double initialY, double ratio, double length, double minAngleDegrees, double maxAngleDegrees, double startingAngleDegrees) -
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.wpilibj.util.Color8Bit
getColor()
double
double
double
double
double
double
double
double
getMount()
int
double
double
double
getRatio()
double
double
double
boolean
boolean
boolean
setColor
(edu.wpi.first.wpilibj.util.Color8Bit color) setInitialX
(double initialX) setInitialY
(double initialY) setLength
(double length) setMaxAngle
(double maxAngle) setMinAngle
(double minAngle) setNumMotors
(int numMotors) setPivotX
(double pivotX) setPivotY
(double pivotY) setRatio
(double ratio) setSimCGLength
(double simCGLength) setSimMOI
(double simMOI) setSimulateGravity
(boolean simulateGravity) setStartingAngle
(double startingAngle)
-
Constructor Details
-
ArmConfig
public ArmConfig(double initialX, double initialY, double ratio, double length, double minAngleDegrees, double maxAngleDegrees, double startingAngleDegrees)
-
-
Method Details
-
setColor
-
setMount
-
setMount
-
getNumMotors
public int getNumMotors() -
setNumMotors
- Returns:
this
.
-
getInitialX
public double getInitialX() -
setInitialX
- Returns:
this
.
-
getInitialY
public double getInitialY() -
setInitialY
- Returns:
this
.
-
getPivotX
public double getPivotX() -
setPivotX
- Returns:
this
.
-
getPivotY
public double getPivotY() -
setPivotY
- Returns:
this
.
-
getRatio
public double getRatio() -
setRatio
- Returns:
this
.
-
getLength
public double getLength() -
setLength
- Returns:
this
.
-
getSimMOI
public double getSimMOI() -
setSimMOI
- Returns:
this
.
-
getSimCGLength
public double getSimCGLength() -
setSimCGLength
- Returns:
this
.
-
getMinAngle
public double getMinAngle() -
setMinAngle
- Returns:
this
.
-
getMaxAngle
public double getMaxAngle() -
setMaxAngle
- Returns:
this
.
-
getStartingAngle
public double getStartingAngle() -
setStartingAngle
- Returns:
this
.
-
isSimulateGravity
public boolean isSimulateGravity() -
setSimulateGravity
- Returns:
this
.
-
isMounted
public boolean isMounted() -
getMount
-
getInitMountX
public double getInitMountX() -
getInitMountY
public double getInitMountY() -
getInitMountAngle
public double getInitMountAngle() -
isAbsAngle
public boolean isAbsAngle() -
getColor
public edu.wpi.first.wpilibj.util.Color8Bit getColor()
-