mirror of
https://github.com/rt-bishop/Look4Sat.git
synced 2026-10-07 05:07:22 +00:00
Added AOS/LOS timer to each pass and a SearchBar filter
This commit is contained in:
1 parent
782b438a07
commit
83ce7229f6
9 files changed
+396
-249
No files matched your search
@@ -106,7 +106,7 @@ class MapViewModel(
|
||||
private fun selectDefaultSatellite(catnum: Int) {
|
||||
if (allSatellites.isNotEmpty()) {
|
||||
if (catnum == -1) {
|
||||
allPasses.find { pass -> pass.progress < 100 && !pass.isDeepSpace }
|
||||
allPasses.find { pass -> pass.progress < 1 && !pass.isDeepSpace }
|
||||
?.let { pass -> selectSatellite(pass.orbitalObject) }
|
||||
} else {
|
||||
allSatellites.find { it.data.catnum == catnum }?.let { selectSatellite(it) }
|
||||
@@ -189,8 +189,8 @@ class MapViewModel(
|
||||
}
|
||||
}
|
||||
for ((localPositions, localSelectedPos) in deferreds.awaitAll()) {
|
||||
for (pair in localPositions) {
|
||||
positionsMap[pair.first] = pair.second
|
||||
for ((first, second) in localPositions) {
|
||||
positionsMap[first] = second
|
||||
}
|
||||
if (localSelectedPos != null) {
|
||||
selectedSatPos = localSelectedPos
|
||||
|
||||
Reference in new issue
Block a user