Class IMUCorrector.Parameters
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.processors.IMUCorrector.Parameters
- Enclosing class:
- IMUCorrector
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble
Proximity to the target (in degrees) that counts as hitting the targetdouble
Minimum actionable heading error (in degrees)final FriendlyIMU
You already set this in the constructor and cannot set it again.double
Maximum correction power that can be appliedfinal TunablePID
You already set this in the constructor and cannot set it again.double
Minimum absolute value of the turn axis that is considered an intentional turn (which will pause correction) -
Constructor Summary
ConstructorsConstructorDescriptionParameters
(FriendlyIMU imu, TunablePID pid) Create a new IMUCorrector.Parameters object and supply non-optional parameters. -
Method Summary
-
Field Details
-
imu
You already set this in the constructor and cannot set it again. -
pid
You already set this in the constructor and cannot set it again. -
maxCorrectionPower
public double maxCorrectionPowerMaximum correction power that can be applied -
turnPowerThreshold
public double turnPowerThresholdMinimum absolute value of the turn axis that is considered an intentional turn (which will pause correction) -
hdgErrToleranceDegrees
public double hdgErrToleranceDegreesMinimum actionable heading error (in degrees) -
haveHitTargetToleranceDegrees
public double haveHitTargetToleranceDegreesProximity to the target (in degrees) that counts as hitting the target
-
-
Constructor Details
-
Parameters
Create a new IMUCorrector.Parameters object and supply non-optional parameters.- Parameters:
imu
- Please pass the Robot's IMU ( robot.imu ) through.pid
- Pass in an object, already instantiated and configured.
-