This commit is contained in:
Dimitris
2026-05-09 09:46:30 +02:00
parent ffa0d47e7b
commit 357a9af4f1
7 changed files with 0 additions and 23 deletions
@@ -134,7 +134,6 @@ internal class ClusterSession : CarSession(), NavigationListener {
fun updateLocation(location: Location) { fun updateLocation(location: Location) {
Log.d(TAG, "updateLocation $location")
surfaceRenderer.updateLocation(location, "") surfaceRenderer.updateLocation(location, "")
} }
@@ -485,7 +485,6 @@ class NavigationSession : CarSession(), NavigationListener, NavigationObserverCa
val distance = location.distanceTo(snappedLocation) val distance = location.distanceTo(snappedLocation)
when { when {
distance > MAXIMAL_ROUTE_DEVIATION -> { distance > MAXIMAL_ROUTE_DEVIATION -> {
Log.d(TAG, "Maximal route deviation")
stopNavigation() stopNavigation()
navigationScreen.calculateNewRoute(routeModel.navState.destination) navigationScreen.calculateNewRoute(routeModel.navState.destination)
return false return false
@@ -268,7 +268,6 @@ class SurfaceRenderer(
*/ */
override fun onScale(focusX: Float, focusY: Float, scaleFactor: Float) { override fun onScale(focusX: Float, focusY: Float, scaleFactor: Float) {
synchronized(this@SurfaceRenderer) { synchronized(this@SurfaceRenderer) {
Log.d(TAG, "onScale")
} }
} }
} }
@@ -49,7 +49,6 @@ class TextToSpeechManager(private val carContext: Context) {
}) })
} }
initialized = true initialized = true
Log.d("TTS", "Initialization Success")
} else { } else {
Log.e("TTS", "Initialization Failed") Log.e("TTS", "Initialization Failed")
} }
@@ -144,7 +144,6 @@ fun MapLibre(
fun StartEndLayer(routeData: String?) { fun StartEndLayer(routeData: String?) {
if (!routeData.isNullOrEmpty()) { if (!routeData.isNullOrEmpty()) {
val end = createEndCollection(routeData) val end = createEndCollection(routeData)
Log.d("Map End", " $end")
val routes = rememberGeoJsonSource(GeoJsonData.JsonString(end)) val routes = rememberGeoJsonSource(GeoJsonData.JsonString(end))
val img = image(painterResource(R.drawable.sports_score_48px), drawAsSdf = true) val img = image(painterResource(R.drawable.sports_score_48px), drawAsSdf = true)
SymbolLayer( SymbolLayer(
@@ -599,22 +599,6 @@ class NavigationViewModel(private val repository: NavigationRepository) : ViewMo
} }
} }
/**
* Queries Tankerkoenig API for fuel prices on current road.
*
*/
fun updateFuelPrices(
location: Location,
) {
viewModelScope.launch(Dispatchers.IO) {
synchronized(this) {
val stations =
FuelPrices().getFuelPrices(location, 3)
Log.d(TAG, "FuelPrices $stations")
}
}
}
/** /**
* Saves a place as a favorite in Preferences. * Saves a place as a favorite in Preferences.
*/ */
@@ -62,7 +62,6 @@ class RouteCalculator(var routeModel: RouteModel) {
steps[match.stepIndex].waypointIndex = match.waypointIndex steps[match.stepIndex].waypointIndex = match.waypointIndex
steps[match.stepIndex].wayPointLocation = match.location steps[match.stepIndex].wayPointLocation = match.location
} }
Log.d(TAG, "FindStep optimized: count=$searchCount, dist=$nearestDistance")
return return
} }
lastDistance = distance lastDistance = distance
@@ -73,7 +72,6 @@ class RouteCalculator(var routeModel: RouteModel) {
steps[match.stepIndex].waypointIndex = match.waypointIndex steps[match.stepIndex].waypointIndex = match.waypointIndex
steps[match.stepIndex].wayPointLocation = match.location steps[match.stepIndex].wayPointLocation = match.location
} }
Log.d(TAG, "FindStep not optimized: count=$searchCount, dist=$nearestDistance")
} }
private fun stopSearch(nearestDistance: Float, distance: Float, increaseCount: Int): Boolean { private fun stopSearch(nearestDistance: Float, distance: Float, increaseCount: Int): Boolean {