OTOSLocalizer
class OTOSLocalizer @JvmOverloads constructor(val hardwareMap: HardwareMap, val otosName: String = "sensor_otos", var linearScalar: Double = 1.0, var angularScalar: Double = 1.0, var offset: Pose2d = Pose2d.zero, val initialPose: Pose2d = Pose2d.zero) : Localizer
Localizer based on the SparkFun OTOS sensor.
Parameters
hardwareMap
hardware map
otosName
name of the OTOS sensor in the hardware map
linearScalar
scalar for the linear measurements
angularScalar
scalar for the angular measurements
offset
sensor offset
initialPose
initial pose
Properties
Functions
Link copied to clipboard
Updates the localizer and returns the new velocity.
Link copied to clipboard
Returns a new localizer with the given initial pose.
Link copied to clipboard
Returns a new localizer with the given sensor name.
Link copied to clipboard
Returns a new localizer with the given offset.
Link copied to clipboard
Returns a new localizer with the given scalars.