Package dev.narlyx.tweetybird.Odometers
Class ThreeWheeled
java.lang.Object
dev.narlyx.tweetybird.Odometers.ThreeWheeled
- All Implemented Interfaces:
TweetyBird.Odometer
This is an example odometer for the common three wheel odometer setup.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classUsed to configure and start the odometer. -
Constructor Summary
ConstructorsConstructorDescriptionThreeWheeled(ThreeWheeled.Builder builder) Constructor used to setup all variables from builder. -
Method Summary
Modifier and TypeMethodDescriptiondoublegetX()Returns estimated X (lateral) coordinate.doublegetY()Returns estimated Y (axial) coordinate.doublegetZ()Returns estimated Z (yaw) coordinate.voidresetTo(double x, double y, double z) Will reset the estimated position based on imputed values.
-
Constructor Details
-
ThreeWheeled
Constructor used to setup all variables from builder.- Parameters:
builder- Passed builder
-
-
Method Details
-
getX
public double getX()Returns estimated X (lateral) coordinate.- Specified by:
getXin interfaceTweetyBird.Odometer- Returns:
- Unit of measurement
-
getY
public double getY()Returns estimated Y (axial) coordinate.- Specified by:
getYin interfaceTweetyBird.Odometer- Returns:
- Unit of measurement
-
getZ
public double getZ()Returns estimated Z (yaw) coordinate.- Specified by:
getZin interfaceTweetyBird.Odometer- Returns:
- Unit of measurement
-
resetTo
public void resetTo(double x, double y, double z) Will reset the estimated position based on imputed values.- Specified by:
resetToin interfaceTweetyBird.Odometer- Parameters:
x- Lateral unit of measurementy- Axial unit of measurementz- Yaw unit of measurement
-