RangeAndBearing

data class RangeAndBearing(val anchorLatI: Int = 0, val anchorLonI: Int = 0, val anchorUid: String = "", val rangeCm: Int = 0, val bearingCdeg: Int = 0, val strokeColor: Int = 0, val strokeArgb: Int = 0, val strokeWeightX10: Int = 0) : TakPacketV2Data.Payload(source)

Range and bearing measurement line. Maps to RangeAndBearing proto at payload_variant tag 36. Anchor endpoint is absolute lat/lon, not a delta from the event point.

Constructors

Link copied to clipboard
constructor(anchorLatI: Int = 0, anchorLonI: Int = 0, anchorUid: String = "", rangeCm: Int = 0, bearingCdeg: Int = 0, strokeColor: Int = 0, strokeArgb: Int = 0, strokeWeightX10: Int = 0)

Properties

Link copied to clipboard

Anchor endpoint latitude in degrees × 1e7 (absolute, not a delta).

Link copied to clipboard

Anchor endpoint longitude in degrees × 1e7 (absolute, not a delta).

Link copied to clipboard

UID of the anchor map item, if the line is anchored to one.

Link copied to clipboard

Bearing in degrees * 100 (0..36000).

Link copied to clipboard

Range in centimeters.

Link copied to clipboard

Exact 32-bit ARGB stroke bit pattern.

Link copied to clipboard

Team palette enum value, or AtakPalette.UNSPECIFIED for a custom color.

Link copied to clipboard

Stroke weight × 10 (e.g. 3.0 px → 30).