Satellite tracker and pass predictor for Android, inspired by Gpredict
Kotlin amsatcelestrakgpsham-radiohamlibhamradiokotlinnasaradiosatellitesatellite-datasatellite-positionsatellite-predictionsatellitessatnogssdrspacespacexstarlink
v4.2.1 - Turkish translation, DeepSpace filter, various tweaks
Arty Bishop99158e74fa15
diff --git a/core/presentation/src/main/res/values/strings.xml b/core/presentation/src/main/res/values/strings.xmlindex f1b5fc4d..800bc812 100644--- a/core/presentation/src/main/res/values/strings.xml+++ b/core/presentation/src/main/res/values/strings.xml@@ -49,11 +49,10 @@\n\nPlease update the database at least weekly to get accurate predictions.</string><string name="pass_whatsnew_title" translatable="false">What\'s new in Look4Sat</string><string name="pass_whatsnew_message" translatable="false">- * Switched to short-form commands in NetworkReporter, by theojalba- \n* Added CAT radio control for full-duplex SAT operation, by jcmerg- \n* Added normalized time for passes AOS/LOS, fixed refresh state bug- \n* Added multiple performance tweaks, improved passes calculation- \n* Fixed UTC pass time problem mentioned in issue #201+ * Added Turkish translation, by Emre Can Akdaş (TA3ECR)+ \n* Added DeepSpace passes filter option to the dialog+ \n* Fixed the radar blip disappearing while eclipsed+ \n* Fixed (hopefully) the refresh indicator being stuck</string><!-- Radar screen -->diff --git a/fastlane/metadata/android/en-US/changelogs/default.txt b/fastlane/metadata/android/en-US/changelogs/default.txtindex e1d308db..64b0301a 100644--- a/fastlane/metadata/android/en-US/changelogs/default.txt+++ b/fastlane/metadata/android/en-US/changelogs/default.txt@@ -1,6 +1,4 @@-* Switched to short-form commands in NetworkReporter (#206) by theojalba-* Added CAT radio control for full-duplex SAT operation (#207) by jcmerg-* Added normalized time for passes AOS/LOS, fixed refresh state bug-* Added multiple performance tweaks, improved passes calculation-* Simplified data output code, aligned with HamLib defaults-* Fixed UTC pass time problem mentioned in issue #201+* Added Turkish translation, by Emre Can Akdaş (TA3ECR)+* Added DeepSpace passes filter option to the dialog+* Fixed the radar blip disappearing while eclipsed+* Fixed (hopefully) the refresh indicator being stuckdiff --git a/fastlane/metadata/android/en-US/whatsnew/whatsnew-en-US b/fastlane/metadata/android/en-US/whatsnew/whatsnew-en-USindex e1d308db..64b0301a 100644--- a/fastlane/metadata/android/en-US/whatsnew/whatsnew-en-US+++ b/fastlane/metadata/android/en-US/whatsnew/whatsnew-en-US@@ -1,6 +1,4 @@-* Switched to short-form commands in NetworkReporter (#206) by theojalba-* Added CAT radio control for full-duplex SAT operation (#207) by jcmerg-* Added normalized time for passes AOS/LOS, fixed refresh state bug-* Added multiple performance tweaks, improved passes calculation-* Simplified data output code, aligned with HamLib defaults-* Fixed UTC pass time problem mentioned in issue #201+* Added Turkish translation, by Emre Can Akdaş (TA3ECR)+* Added DeepSpace passes filter option to the dialog+* Fixed the radar blip disappearing while eclipsed+* Fixed (hopefully) the refresh indicator being stuckdiff --git a/feature/passes/src/main/java/com/rtbishop/look4sat/feature/passes/PassesViewModel.kt b/feature/passes/src/main/java/com/rtbishop/look4sat/feature/passes/PassesViewModel.ktindex cec12625..ccc06045 100644--- a/feature/passes/src/main/java/com/rtbishop/look4sat/feature/passes/PassesViewModel.kt+++ b/feature/passes/src/main/java/com/rtbishop/look4sat/feature/passes/PassesViewModel.kt@@ -160,7 +160,7 @@ class PassesViewModel(_uiState.update {it.copy(hours = hoursAhead, elevation = minElevation, showDeepSpace = showDeepSpace, modes = modes)}- if (showDeepSpace) satelliteRepo.calculatePasses(System.currentTimeMillis(), hoursAhead, minElevation, modes)+ satelliteRepo.calculatePasses(System.currentTimeMillis(), hoursAhead, minElevation, modes)}private fun refreshPasses() = viewModelScope.launch {diff --git a/feature/radar/src/main/java/com/rtbishop/look4sat/feature/radar/RadarView.kt b/feature/radar/src/main/java/com/rtbishop/look4sat/feature/radar/RadarView.ktindex d0ec2a6e..a3590beb 100644--- a/feature/radar/src/main/java/com/rtbishop/look4sat/feature/radar/RadarView.kt+++ b/feature/radar/src/main/java/com/rtbishop/look4sat/feature/radar/RadarView.kt@@ -17,8 +17,6 @@*/package com.rtbishop.look4sat.feature.radar-import androidx.compose.animation.core.LinearEasing-import androidx.compose.animation.core.RepeatModeimport androidx.compose.animation.core.animateFloatimport androidx.compose.animation.core.infiniteRepeatableimport androidx.compose.animation.core.rememberInfiniteTransition@@ -80,21 +78,11 @@ fun RadarViewCompose(animationSpec = infiniteRepeatable(tween(1000)),label = "animScale")- val eclipsedGlowAlpha by animTransition.animateFloat(- initialValue = 1.0f,- targetValue = 0.0f,- animationSpec = infiniteRepeatable(- animation = tween(durationMillis = 1000, delayMillis = 25, easing = LinearEasing),- repeatMode = RepeatMode.Reverse- ),- label = "eclipsedGlowAlpha"- )val measurer = rememberTextMeasurer()var sweepDegrees by remember { mutableFloatStateOf(0f) }var cachedRadius by remember { mutableFloatStateOf(0f) }var trackPath by remember { mutableStateOf(Path()) }var trackEffect by remember { mutableStateOf(PathEffect.cornerPathEffect(0f)) }- val isEclipsed = item.eclipsedCanvas(modifier = modifier.aspectRatio(1f)) {val radius = size.minDimension / 2f * 0.95f@@ -110,11 +98,7 @@ fun RadarViewCompose(translate(center.x, center.y) {drawTrack(trackPath, trackEffect, aimColor, trackColor)if (item.elevation > 0) {- if (isEclipsed) {- drawEclipsedPosition(item, radius, eclipsedGlowAlpha, trackColor)- } else {- drawPosition(item, radius, animScale, trackColor)- }+ drawPosition(item, radius, animScale, trackColor)}if (shouldUseCompass) drawAim(azimElev.first, azimElev.second, radius, aimColor)}@@ -150,12 +134,7 @@ private fun DrawScope.drawTrack(path: Path, effect: PathEffect, color: Color, efprivate fun DrawScope.drawPosition(item: OrbitalPos, radius: Float, posRadius: Float, color: Color) {val pos = sph2Cart(item.azimuth, item.elevation, radius.toDouble())drawCircle(color, 16f, pos)- drawCircle(color.copy(alpha = 1 - (posRadius / 64f)), posRadius, pos)-}--private fun DrawScope.drawEclipsedPosition(item: OrbitalPos, radius: Float, glowAlpha: Float, color: Color) {- val pos = sph2Cart(item.azimuth, item.elevation, radius.toDouble())- drawCircle(color.copy(alpha = glowAlpha), 16f, pos)+ if (!item.eclipsed) drawCircle(color.copy(alpha = 1 - (posRadius / 64f)), posRadius, pos)}private fun DrawScope.drawAim(azim: Float, elev: Float, radius: Float, color: Color) {diff --git a/feature/radiocontrol/src/main/java/com/rtbishop/look4sat/feature/radiocontrol/RadioControlViewModel.kt b/feature/radiocontrol/src/main/java/com/rtbishop/look4sat/feature/radiocontrol/RadioControlViewModel.ktindex 5d035a4e..fff44907 100644--- a/feature/radiocontrol/src/main/java/com/rtbishop/look4sat/feature/radiocontrol/RadioControlViewModel.kt+++ b/feature/radiocontrol/src/main/java/com/rtbishop/look4sat/feature/radiocontrol/RadioControlViewModel.kt@@ -44,12 +44,12 @@ class RadioControlViewModel(savedStateHandle: SavedStateHandle,private val trackingService: IRadioTrackingService,private val satelliteRepo: ISatelliteRepo,- private val settingsRepo: ISettingsRepo+ settingsRepo: ISettingsRepo) : ViewModel() {+ private val stationPos = settingsRepo.stationPosition.valueprivate var currentPass: OrbitalPass? = nullprivate var transponders: List<SatRadio> = emptyList()- private val stationPos = settingsRepo.stationPosition.valueprivate val _uiState = MutableStateFlow(RadioControlState(diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.tomlindex 40f0173f..7037402c 100644--- a/gradle/libs.versions.toml+++ b/gradle/libs.versions.toml@@ -1,8 +1,8 @@[versions]#noinspection UnusedVersionCatalogEntry-appVersionCode = "420"+appVersionCode = "421"#noinspection UnusedVersionCatalogEntry-appVersionName = "4.2.0"+appVersionName = "4.2.1"#noinspection GradleDependency,UnusedVersionCatalogEntrycompileSdk = "36"#noinspection UnusedVersionCatalogEntry