mirror of
https://github.com/atsunatsu/Look4Sat.git
synced 2026-10-04 19:47:22 +00:00
Implemented extended data output (#195)
This commit is contained in:
1 parent
7adbf951bc
commit
85ffe94266
19 files changed
+965
-322
No files matched your search
@@ -33,10 +33,18 @@ data class RCSettings(
|
||||
val rotatorState: Boolean,
|
||||
val rotatorAddress: String,
|
||||
val rotatorPort: String,
|
||||
val bluetoothState: Boolean,
|
||||
val bluetoothFormat: String,
|
||||
val bluetoothName: String,
|
||||
val bluetoothAddress: String,
|
||||
val rotatorFormat: String,
|
||||
val frequencyState: Boolean,
|
||||
val frequencyAddress: String,
|
||||
val frequencyPort: String,
|
||||
val frequencyFormat: String,
|
||||
val bluetoothRotatorState: Boolean,
|
||||
val bluetoothRotatorFormat: String,
|
||||
val bluetoothRotatorName: String,
|
||||
val bluetoothRotatorAddress: String,
|
||||
val bluetoothFrequencyState: Boolean,
|
||||
val bluetoothFrequencyFormat: String,
|
||||
val bluetoothFrequencyAddress: String
|
||||
)
|
||||
|
||||
data class OtherSettings(
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Look4Sat. Amateur radio satellite tracker and pass predictor.
|
||||
* Copyright (C) 2019-2026 Arty Bishop and contributors.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.rtbishop.look4sat.domain.repository
|
||||
|
||||
interface IReporterParams
|
||||
|
||||
interface IReporterRepo<T : IReporterParams> {
|
||||
fun reportRotation(format: String, azimuth: Double, elevation: Double, params: T)
|
||||
fun reportFrequency(format: String, frequency: Long, params: T)
|
||||
}
|
||||
@@ -55,13 +55,22 @@ interface ISettingsRepo {
|
||||
|
||||
//region # RC settings
|
||||
val rcSettings: StateFlow<RCSettings>
|
||||
fun setBluetoothAddress(value: String)
|
||||
fun setBluetoothFormat(value: String)
|
||||
fun setBluetoothName(value: String)
|
||||
fun setBluetoothState(value: Boolean)
|
||||
fun setBluetoothRotatorAddress(value: String)
|
||||
fun setBluetoothRotatorFormat(value: String)
|
||||
fun setBluetoothRotatorName(value: String)
|
||||
fun setBluetoothRotatorState(value: Boolean)
|
||||
fun setBluetoothFrequencyAddress(value: String)
|
||||
fun setBluetoothFrequencyFormat(value: String)
|
||||
fun setBluetoothFrequencyState(value: Boolean)
|
||||
fun setRotatorAddress(value: String)
|
||||
fun setRotatorPort(value: String)
|
||||
fun setRotatorState(value: Boolean)
|
||||
fun setRotatorFormat(value: String)
|
||||
fun setFrequencyAddress(value: String)
|
||||
fun setFrequencyPort(value: String)
|
||||
fun setFrequencyState(value: Boolean)
|
||||
fun setFrequencyFormat(value: String)
|
||||
|
||||
//endregion
|
||||
|
||||
//region # Other settings
|
||||
|
||||
Reference in new issue
Block a user