Package-level declarations

Types

Link copied to clipboard

The rated squares of every visible session, shared by the map and the AR view so the two cannot disagree.

Link copied to clipboard
data class SignalSurveyUiState(val recording: Boolean = false, val blocker: SignalSurveyBlocker? = null, val sessions: List<SurveySessionUi> = emptyList(), val heatmap: Boolean = false)
Link copied to clipboard
Link copied to clipboard

What the map and the AR view show of the survey. Outlives both screens, so a choice holds across a tab switch.

Link copied to clipboard
data class SurveyCell(val south: Double, val west: Double, val north: Double, val east: Double, val bestSnr: Float?, val rssi: Int, val samples: Int, val senders: Int, val lastHeardMillis: Long, val direct: Map<Int, SurveyReception> = emptyMap())

One grid square of a survey, standing for the clearest reading taken inside it.

Link copied to clipboard
data class SurveyCellUi(val id: String, val cell: SurveyCell, val quality: Quality, val directQuality: Map<Int, Quality> = emptyMap(), val sessionId: Long = 0)

One square as a map draws it. id is stable across updates, so a tapped square stays selected as it gains readings.

Link copied to clipboard
data class SurveyLink(val nodeNum: Int, val name: String, val fromLatitude: Double, val fromLongitude: Double, val toLatitude: Double, val toLongitude: Double, val quality: Quality, val distanceM: Double)

A line from a survey square to a node heard directly there.

Link copied to clipboard
data class SurveyLinks(val links: List<SurveyLink> = emptyList(), val unplaced: Int = 0)

The lines for one square, and how many direct senders could not get one because they share no position.

Link copied to clipboard
data class SurveyReception(val snr: Float?, val rssi: Int)

One reception's signal, the pair a quality rating is made from.

Link copied to clipboard
data class SurveySessionUi(val session: SignalSurveySession, val visible: Boolean, val recording: Boolean)
Link copied to clipboard
data class SurveySpot(val sessionId: Long, val south: Double, val west: Double, val north: Double, val east: Double)

A tapped square of one session, kept while the squares around it are rebuilt at another size.

Functions

Link copied to clipboard
fun SignalSurveyCellInfo(modifier: Modifier = Modifier, viewModel: SignalSurveyViewModel = koinViewModel())

The tapped square's details, as a card a map mounts at its bottom edge. Not a dialog: the lines to the nodes heard there are drawn on the map behind it, and a scrim would hide them.

Link copied to clipboard
fun SignalSurveySection(modifier: Modifier = Modifier, viewModel: SignalSurveyViewModel = koinViewModel())

The signal survey controls and session history, for a map's layers sheet.

Link copied to clipboard

The survey controls mid-walk: recording into a new session, with an earlier one kept and shown on the map.