TRX control through the modem using rigctl

This commit is contained in:
Torsten Harenberg
2025-02-26 14:58:07 +01:00
parent 89c19cf9b8
commit 29ae056488
4 changed files with 103 additions and 6 deletions

View File

@@ -6,7 +6,6 @@ import (
"fmt"
"path/filepath"
//log "github.com/fangdingjun/go-log"
"log"
"os"
"os/signal"
@@ -32,6 +31,8 @@ type TCPServer struct {
Protocol chan string
ToPactor *ByteFIFO
FromPactor *ByteFIFO
ToTRX *ByteFIFO
FromTRX *ByteFIFO
VARAMode bool
DaemonMode bool
GPSdMode bool
@@ -54,6 +55,8 @@ func NewTCPServer(varamode bool, daemonmode bool, gpsdmode bool, nmeapassthrough
Protocol: make(chan string, 1024),
ToPactor: NewByteFIFO(1024),
FromPactor: NewByteFIFO(1024),
ToTRX: NewByteFIFO(1024),
FromTRX: NewByteFIFO(1024),
VARAMode: varamode,
DaemonMode: daemonmode,
GPSdMode: gpsdmode,
@@ -178,6 +181,10 @@ func main() {
go readAndBroadcast()
}
if true { // TODO: later change to Config
go trxControl()
}
if !daemonMode {
// Initialize the gocui GUI
g, err := gocui.NewGui(gocui.OutputNormal)