Three Wheel Localizer
This is the ThreeWheelLocalizer class. This class extends the Localizer superclass and is a localizer that uses the three wheel odometry set up. The diagram below, which is modified from Road Runner, shows a typical set up. The view is from the top of the robot looking downwards. left on robot is the y positive direction forward on robot is the x positive direction forward (x positive) △ | | /--------------\ | | | | | || || | left (y positive) <--- | || || | | ____ | | ---- | \--------------/
Author
Anyi Lin - 10158 Scott's Bots
Constructors
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public double totalHeading
Link copied to clipboard
Functions
Link copied to clipboard
This returns the multiplier applied to forward movement measurement to convert from encoder ticks to inches.
Link copied to clipboard
This returns the multiplier applied to lateral/strafe movement measurement to convert from encoder ticks to inches.
Link copied to clipboard
This calculates the change in position from the perspective of the robot using information from the Encoders.
Link copied to clipboard
This returns how far the robot has turned in radians, in a number not clamped between 0 and 2 * pi radians.
Link copied to clipboard
This returns the multiplier applied to turning movement measurement to convert from encoder ticks to radians.
Link copied to clipboard
This returns the current velocity estimate.
Link copied to clipboard
This returns the current velocity estimate.
Link copied to clipboard
This resets the Encoders.
Link copied to clipboard
This sets the Matrix that contains the previous pose's heading rotation.
Link copied to clipboard
This sets the start pose.
Link copied to clipboard
This updates the Encoders.