Bearing
This commit is contained in:
@@ -48,7 +48,6 @@ import androidx.compose.material3.SnackbarHostState
|
||||
import androidx.compose.material3.Text
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.LaunchedEffect
|
||||
import androidx.compose.runtime.collectAsState
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.livedata.observeAsState
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
@@ -152,7 +151,7 @@ class MainActivity : ComponentActivity() {
|
||||
val curLocation = Location(LocationManager.GPS_PROVIDER)
|
||||
curLocation.longitude = loc[0]
|
||||
curLocation.latitude = loc[1]
|
||||
routeModel.findManeuver(curLocation)
|
||||
routeModel.updateLocation(curLocation)
|
||||
val leftTime = routeModel.travelLeftTime()
|
||||
val leftDistance = routeModel.travelLeftDistance()
|
||||
Log.i(TAG, " leftTime: ${leftTime / 60}")
|
||||
|
||||
Reference in New Issue
Block a user