Package ftclib.sensor
Class FtcSparkFunOtos.Config
java.lang.Object
ftclib.sensor.FtcSparkFunOtos.Config
- Enclosing class:
- FtcSparkFunOtos
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate double
private double
private org.firstinspires.ftc.robotcore.external.navigation.AngleUnit
private double
private org.firstinspires.ftc.robotcore.external.navigation.DistanceUnit
private double
private double
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetOffset
(double xOffset, double yOffset, double angleOffset) This method sets the offset of the OTOS form the robot center.setScale
(double linearScale, double angularScale) This methods sets the linear and angular scales used by the OTOS for compensating scaling issues with sensor measurements.setUnits
(org.firstinspires.ftc.robotcore.external.navigation.DistanceUnit linearUnit, org.firstinspires.ftc.robotcore.external.navigation.AngleUnit angularUnit) This method sets distance and angular units being reported.toString()
This method returns the string format of the Params info.
-
Field Details
-
linearUnit
private org.firstinspires.ftc.robotcore.external.navigation.DistanceUnit linearUnit -
angularUnit
private org.firstinspires.ftc.robotcore.external.navigation.AngleUnit angularUnit -
xOffset
private double xOffset -
yOffset
private double yOffset -
angleOffset
private double angleOffset -
linearScale
private double linearScale -
angularScale
private double angularScale
-
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
toString
This method returns the string format of the Params info. -
setOffset
This method sets the offset of the OTOS form the robot center.- Parameters:
xOffset
- specifies the xOffset from robot center, right positive.yOffset
- specifies the yOffset from robot center, forward positive.angleOffset
- specifes the angular offset from robot forward, clockwise positive.- Returns:
- this object for chaining.
-
setScale
This methods sets the linear and angular scales used by the OTOS for compensating scaling issues with sensor measurements.- Parameters:
linearScale
- specifies linear scale, must be between 0.872 and 1.127.angularScale
- specifies angular scale.- Returns:
- this object for chaining.
-