feat: implement telemetry persistence, data visualization, and improved bluetooth stream parsing with frame statistics
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package com.example.esp32aldldashboard
|
||||
|
||||
import android.app.Application
|
||||
import com.example.esp32aldldashboard.bluetooth.BluetoothService
|
||||
import com.example.esp32aldldashboard.repository.SettingsRepository
|
||||
import com.example.esp32aldldashboard.repository.TelemetryRepository
|
||||
|
||||
class AldlApplication : Application() {
|
||||
lateinit var bluetoothService: BluetoothService
|
||||
lateinit var telemetryRepository: TelemetryRepository
|
||||
lateinit var settingsRepository: SettingsRepository
|
||||
|
||||
lateinit var csvLogger: com.example.esp32aldldashboard.logging.CsvLogger
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
val database = com.example.esp32aldldashboard.data.database.TelemetryDatabase.getDatabase(this)
|
||||
settingsRepository = SettingsRepository(this)
|
||||
csvLogger = com.example.esp32aldldashboard.logging.CsvLogger(this)
|
||||
bluetoothService = BluetoothService(this)
|
||||
telemetryRepository = TelemetryRepository(
|
||||
bluetoothService,
|
||||
database.telemetryDao(),
|
||||
csvLogger,
|
||||
settingsRepository
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user