Why do my sensors only give me 2 values for compass app?
I am building a compass app.
Therefore I have a repository.
The code is from the android documentation.
I am not really sure whether everthing is working properly.
The problem is, that I only get 2 different values in my Log.din SensorChanged and they aren't even degrees. For example I get values like: -2.9381263, 0.20342612.
And I am calling startRotationQueries in my MainViewModel.
class SensorRepository {
private val accelerometerReading = FloatArray(3)
private val...