txControl

package
v0.0.0-...-12667e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	SerialPort string
	BaudRate   string
	ModelId    string
	ListenPort string
	ListenAddr string
}

type TxControl

type TxControl struct {
	Params           Params
	RigctlBinPath    string
	StopRigCtrldChan chan bool
}

func New

func New(params Params) (*TxControl, error)

func (*TxControl) GetFrequency

func (t *TxControl) GetFrequency() (float64, error)

Get the current frequency as float64

func (*TxControl) GetFrequencyString

func (t *TxControl) GetFrequencyString() (string, error)

Get the current frequency as string

func (*TxControl) RX

func (t *TxControl) RX() error

RX turns off the transmitter

func (*TxControl) SetFrequency

func (t *TxControl) SetFrequency(freq float64) error

Set frequency

func (*TxControl) Start

func (t *TxControl) Start() error

Convert Params to flags

func (*TxControl) Stop

func (t *TxControl) Stop()

Func that kills rigctl

func (*TxControl) TX

func (t *TxControl) TX() error

TX turns on the transmitter

func (*TxControl) TcpCommand

func (t *TxControl) TcpCommand(addr, port, command string) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL