Package-level declarations

Types

Link copied to clipboard

A real-size banana, 185 mm tip to stem, stood beside a device's model for scale. The model is bundled with the app, built from a CC0 drawing by scripts/models/banana_for_scale.py: Y up, in meters, standing on y = 0 with its labeled front facing +Z, like the flasher's models.

Link copied to clipboard
data class GlbBounds(val min: FloatArray, val max: FloatArray)

Axis-aligned bounds of a model in its own units (meters for the flasher's models), Y up.

Link copied to clipboard
object GlbMerge

Two GLBs as one, so a renderer that takes a single model can show both. The base file's JSON and binary data are kept as they are, so its indices, extensions and the coordinates read from it stay valid; the added model's are appended after them, under one new root node that carries its translation.

Link copied to clipboard
enum class LogsType : Enum<LogsType>
Link copied to clipboard
data class MetricsState(val isLocal: Boolean = false, val isManaged: Boolean = true, val canRequestNeighborInfo: Boolean = false, val isFahrenheit: Boolean = false, val displayUnits: MeasurementSystem = MeasurementSystem.METRIC, val node: Node? = null, val deviceMetrics: List<Telemetry> = emptyList(), val localStats: List<Telemetry> = emptyList(), val signalMetrics: List<MeshPacket> = emptyList(), val powerMetrics: List<Telemetry> = emptyList(), val hostMetrics: List<Telemetry> = emptyList(), val tracerouteRequests: List<MeshLog> = emptyList(), val tracerouteResults: List<MeshLog> = emptyList(), val tracerouteObserved: List<MeshLog> = emptyList(), val tracerouteTracedBy: List<MeshLog> = emptyList(), val neighborInfoRequests: List<MeshLog> = emptyList(), val neighborInfoResults: List<MeshLog> = emptyList(), val positionLogs: List<Position> = emptyList(), val deviceHardware: DeviceHardware? = null, val deviceLinks: List<DeviceLink> = emptyList(), val hasDeviceModel: Boolean = false, val firmwareEdition: FirmwareEdition? = null, val latestStableFirmware: FirmwareRelease = FirmwareRelease(), val latestAlphaFirmware: FirmwareRelease = FirmwareRelease(), val paxMetrics: List<MeshLog> = emptyList(), val airQualityMetrics: List<Telemetry> = emptyList(), val reportedTarget: String? = null)
Link copied to clipboard
sealed interface NeighborInfoEntry

One row of the neighbor-info log.

Link copied to clipboard
sealed interface NodeDetailAction
Link copied to clipboard
enum class RestPose : Enum<RestPose>

Which face of a model rests on the surface it is placed on. The flasher's models are authored Y up with the front facing +Z, so a pitch about X lays the device on its back or front and a roll about Z on a side.

Link copied to clipboard
class StagedModel(val glb: ByteArray, val bounds: GlbBounds, val copyright: String?)

A model file ready to show, with the bounds to frame it by and the notice to show with it.

Link copied to clipboard
enum class TimeFrame : Enum<TimeFrame>

Properties

Link copied to clipboard

Whether a direct message to this node can actually be delivered.

Functions

Link copied to clipboard

The turn about +Y, in degrees, that points a model's front (+Z) at a point (x, z) on its surface's plane.

Link copied to clipboard

Every request with the reply that answered it, plus neighbor info the node sent on its own - a broadcast, or the connected radio's periodic report to the app - newest first.

Link copied to clipboard

Whether to offer the direct-message action for this node.