Position

data class Position(val latitude: Double, val longitude: Double, val altitude: Int, val time: Int = currentTime(), val satellitesInView: Int = 0, val groundSpeed: Int = 0, val groundTrack: Int = 0, val precisionBits: Int = 0) : <ERROR CLASS> ERROR CLASS: Symbol not found for CommonParcelable(source)

Constructors

Link copied to clipboard
constructor(latitude: Double, longitude: Double, altitude: Int, time: Int = currentTime(), satellitesInView: Int = 0, groundSpeed: Int = 0, groundTrack: Int = 0, precisionBits: Int = 0)
constructor(position: ERROR CLASS: Symbol not found for org.meshtastic.proto.Position, defaultTime: Int = currentTime())

Create our model object from a protobuf. If time is unspecified in the protobuf, the provided default time will be used.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val time: Int

Functions

Link copied to clipboard
fun bearing(o: Position): ERROR CLASS: Recursive implicit type
Link copied to clipboard
fun distance(o: Position): ERROR CLASS: Unresolved name: latLongToMeter
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String