mirror of
https://github.com/rt-bishop/Look4Sat.git
synced 2026-10-03 19:47:21 +00:00
Remove PTT-aware logic, which is not necessary
I was setting the Tx frequency only when we were in Tx mode, but the Icom 705 will accept the command to set the Tx frequency even when in Rx mode, so there is no need to check the PTT state before sending the command.
This commit is contained in:
1 parent
58fb688593
commit
77dfb7bb05
4 files changed
+16
-86
No files matched your search
+3
-11
@@ -41,13 +41,6 @@ interface IRadioController {
|
||||
|
||||
// ── Extended operations (IC-705 / CI-V) ──────────────────────────────
|
||||
|
||||
/**
|
||||
* Read the current PTT status from the radio.
|
||||
* Returns true if transmitting, false if receiving, null on error.
|
||||
* Default: not supported.
|
||||
*/
|
||||
suspend fun readPttStatus(): Boolean? = null
|
||||
|
||||
/**
|
||||
* Select the active VFO.
|
||||
* @param vfoA true → VFO-A (main/RX), false → VFO-B (sub/TX in split).
|
||||
@@ -62,15 +55,14 @@ interface IRadioController {
|
||||
suspend fun setSplitMode(enabled: Boolean): Boolean = false
|
||||
|
||||
/**
|
||||
* Set the frequency of the currently active VFO (CMD 0x25 sub 0x00).
|
||||
* Set the frequency of the currently active VFO (IC-705: CMD 0x25 sub 0x00).
|
||||
* Default: delegates to [setFrequency].
|
||||
*/
|
||||
suspend fun setWorkingFrequency(frequencyHz: Long): Boolean = setFrequency(frequencyHz)
|
||||
|
||||
/**
|
||||
* Set the frequency of the inactive (TX) VFO via CMD 0x25 sub 0x01.
|
||||
* Used in split mode when PTT is pressed: the radio has made VFO-B
|
||||
* the active VFO, so sub 0x01 targets it directly.
|
||||
* Set the frequency of the inactive/TX VFO (IC-705: CMD 0x25 sub 0x01).
|
||||
* Sent every tracking cycle alongside [setWorkingFrequency] in split mode.
|
||||
* Default: delegates to [setWorkingFrequency].
|
||||
*/
|
||||
suspend fun setTxVfoFrequency(frequencyHz: Long): Boolean = setWorkingFrequency(frequencyHz)
|
||||
|
||||
Reference in new issue
Block a user