wspr

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package wspr implements the WSPR digital mode.

This implementation is based on G4JNT's description of the WSPR coding process: http://g4jnt.com/WSPR_Coding_Process.pdf. Many thanks to Andy/G4JNT for working this out!

Index

Constants

View Source
const (
	Sym0 = Symbol(0.0 * symbolDelta)
	Sym1 = Symbol(1.0 * symbolDelta)
	Sym2 = Symbol(2.0 * symbolDelta)
	Sym3 = Symbol(3.0 * symbolDelta)
)

The four WSPR symbols.

Variables

View Source
var SymbolDuration = (8192 * 1000 / 12) * time.Microsecond

SymbolDuration is the duration of one WSRP symbol.

View Source
var Symbols = []Symbol{Sym0, Sym1, Sym2, Sym3}

Symbols contains all WSPR symbols.

Functions

func Send

func Send(ctx context.Context, activateTransmitter func(bool), transmitSymbol func(Symbol), transmission Transmission) bool

Send transmits the given transmission using the given functions to activate the transmitter and to transmit the symbol.

Types

type Symbol

type Symbol float64

Symbol in WSPR. The value represents the delta to the base frequency.

type Transmission

type Transmission [162]Symbol

Transmission of WSPR symbols.

func ToTransmission

func ToTransmission(callsign string, locator string, dBm int) (Transmission, error)

ToTransmission converts the given data into a WSPR transmission.

Jump to

Keyboard shortcuts

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