Bumped minSdk to 23 (Android 6.0), fixed AMSat SSL issue

This commit is contained in:
Arty Bishop committed 2021-06-20 14:50:29 +01:00
1 parent a26f881160
commit d603a343ca
7 files changed
+19 -19

No files matched your search

@@ -19,7 +19,7 @@ package com.rtbishop.look4sat.domain.predict4kotlin
import java.util.*
class PassPredictor(private val satellite: Satellite, private val gsp: StationPosition) {
class PassPredictor(private val satellite: Satellite, private val stationPos: StationPosition) {
private val oneQuarterOrbitMin = (24.0 * 60.0 / satellite.tle.meanmo / 4.0).toInt()
private val speedOfLight = 2.99792458E8
@@ -35,7 +35,7 @@ class PassPredictor(private val satellite: Satellite, private val gsp: StationPo
}
fun getSatPos(date: Date): SatPos {
return satellite.getPosition(gsp, date)
return satellite.getPosition(stationPos, date)
}
fun getPositions(refDate: Date, stepSec: Int, minBefore: Int, orbits: Double): List<SatPos> {
@@ -58,7 +58,7 @@ class PassPredictor(private val satellite: Satellite, private val gsp: StationPo
var shouldWindBack = windBack
var lastAosDate: Date
var count = 0
if (satellite.willBeSeen(gsp)) {
if (satellite.willBeSeen(stationPos)) {
if (satellite.tle.isDeepspace) {
passes.add(nextDeepSpacePass(refDate))
} else {