From 026f1607a94d530c72e1aaa447cf0bb191758fca Mon Sep 17 00:00:00 2001 From: James Rich <2199651+jamesarich@users.noreply.github.com> Date: Thu, 4 Sep 2025 07:27:50 -0500 Subject: [PATCH 1/2] chore: Scheduled updates (Firmware, Hardware) (#2957) Co-authored-by: github-merge-queue <118344674+github-merge-queue@users.noreply.github.com> --- app/src/main/assets/firmware_releases.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/assets/firmware_releases.json b/app/src/main/assets/firmware_releases.json index a7d6e8002..6193440df 100644 --- a/app/src/main/assets/firmware_releases.json +++ b/app/src/main/assets/firmware_releases.json @@ -193,6 +193,12 @@ "title": "the original ZPS module from https://github.com/a-f-G-U-C/Meshtastic-ZPS", "page_url": "https://github.com/meshtastic/firmware/pull/7658", "zip_url": "https://github.com/meshtastic/firmware/actions/runs/17074730483" + }, + { + "id": "7583", + "title": "chore(deps): update meshtastic/web to v2.6.6", + "page_url": "https://github.com/meshtastic/firmware/pull/7583", + "zip_url": "https://github.com/meshtastic/firmware/actions/runs/17070663764" } ] } \ No newline at end of file From d6b8f07c57bb6a39935d6f9dc421d9cb8ca06415 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Thu, 4 Sep 2025 08:16:55 -0500 Subject: [PATCH 2/2] Fix compass / orient north button (#2958) --- .../java/com/geeksville/mesh/ui/map/MapView.kt | 15 +++++++++++++++ .../mesh/ui/map/components/MapControlsOverlay.kt | 13 +++++++++++++ app/src/main/res/values/strings.xml | 1 + 3 files changed, 29 insertions(+) diff --git a/app/src/google/java/com/geeksville/mesh/ui/map/MapView.kt b/app/src/google/java/com/geeksville/mesh/ui/map/MapView.kt index 763d3357a..b5d54ba0a 100644 --- a/app/src/google/java/com/geeksville/mesh/ui/map/MapView.kt +++ b/app/src/google/java/com/geeksville/mesh/ui/map/MapView.kt @@ -642,6 +642,21 @@ fun MapView( isLocationTrackingEnabled = !isLocationTrackingEnabled } }, + onOrientNorth = { + coroutineScope.launch { + try { + val currentPosition = cameraPositionState.position + val newCameraPosition = + CameraPosition.Builder(currentPosition) + .bearing(0f) // Orient to north + .build() + cameraPositionState.animate(CameraUpdateFactory.newCameraPosition(newCameraPosition)) + debug("Oriented map to north") + } catch (e: IllegalStateException) { + debug("Error orienting map to north: ${e.message}") + } + } + }, ) } if (showLayersBottomSheet) { diff --git a/app/src/google/java/com/geeksville/mesh/ui/map/components/MapControlsOverlay.kt b/app/src/google/java/com/geeksville/mesh/ui/map/components/MapControlsOverlay.kt index ec811d753..e1f75f2ec 100644 --- a/app/src/google/java/com/geeksville/mesh/ui/map/components/MapControlsOverlay.kt +++ b/app/src/google/java/com/geeksville/mesh/ui/map/components/MapControlsOverlay.kt @@ -20,6 +20,7 @@ package com.geeksville.mesh.ui.map.components import androidx.compose.foundation.layout.Box import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.LocationDisabled +import androidx.compose.material.icons.outlined.Explore import androidx.compose.material.icons.outlined.Layers import androidx.compose.material.icons.outlined.Map import androidx.compose.material.icons.outlined.MyLocation @@ -52,6 +53,7 @@ fun MapControlsOverlay( hasLocationPermission: Boolean = false, isLocationTrackingEnabled: Boolean = false, onToggleLocationTracking: () -> Unit = {}, + onOrientNorth: () -> Unit = {}, ) { VerticalFloatingToolbar( modifier = modifier, @@ -95,6 +97,8 @@ fun MapControlsOverlay( onClick = onManageLayersClicked, ) + CompassButton(onOrientNorth = onOrientNorth) + // Location tracking button if (hasLocationPermission) { MapButton( @@ -111,3 +115,12 @@ fun MapControlsOverlay( }, ) } + +@Composable +private fun CompassButton(onOrientNorth: () -> Unit) { + MapButton( + icon = Icons.Outlined.Explore, + contentDescription = stringResource(id = R.string.orient_north), + onClick = onOrientNorth, + ) +} diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c830f5d33..bd65b2ca9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -331,6 +331,7 @@ UDP Config Last heard: %2$s
Last position: %3$s
Battery: %4$s]]>
Toggle my position + Orient north User Channels Device