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 class
Used to configure and start the odometer. -
Constructor Summary
ConstructorsConstructorDescriptionThreeWheeled
(ThreeWheeled.Builder builder) Constructor used to setup all variables from builder. -
Method Summary
Modifier and TypeMethodDescriptiondouble
getX()
Returns estimated X (lateral) coordinate.double
getY()
Returns estimated Y (axial) coordinate.double
getZ()
Returns estimated Z (yaw) coordinate.void
resetTo
(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:
getX
in interfaceTweetyBird.Odometer
- Returns:
- Unit of measurement
-
getY
public double getY()Returns estimated Y (axial) coordinate.- Specified by:
getY
in interfaceTweetyBird.Odometer
- Returns:
- Unit of measurement
-
getZ
public double getZ()Returns estimated Z (yaw) coordinate.- Specified by:
getZ
in 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:
resetTo
in interfaceTweetyBird.Odometer
- Parameters:
x
- Lateral unit of measurementy
- Axial unit of measurementz
- Yaw unit of measurement
-