TeamCode / org.firstinspires.ftc.teamcode.sensing / Vision / Location

Location

open class Location

A class representing where a robot is on the field. The origin is the center of the field.

Properties

heading

val heading: Double

The heading of the robot.

isStale

val isStale: Boolean

Whether this location is stale (cached as opposed to newly calculated).

pitch

val pitch: Double

The pitch of the robot.

roll

val roll: Double

The roll of the robot.

visibleTarget

val visibleTarget: String

Which target is currently visible and being used to calculate the robot's location. Can be `Blue-Rover`, `Red-Footprint`, `Front-Crater`, or `Back-Space`.

x

val x: Double

The x-coordinate of this location. Runs from audience side to opposite side.

y

val y: Double

The y-coordinate of this location. Runs from Red Alliance Station to Blue Alliance Station.

z

val z: Double

The z-coordinate of this location. Runs from bottom to top.