Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var SUnits = hamradio.SUnits
SUnits contains all S-units (S0-S9)
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { FrequencyCorrection int Testmode bool VFOHost string FFTPerSecond int DynamicRange DBRange }
Configuration parameters of the application.
type FFT ¶
type FFT struct { Data []float64 Range FrequencyRange Mean float64 PeakThreshold float64 SigmaEnvelope []float64 Peaks []PeakIndexRange }
FFT data and the corresponding frequency range
type FPoint ¶
type FPoint struct {
X, Y Frct
}
FPoint represents a point on the screen using the Frct unit for its coordinates.
type Frct ¶
type Frct float64
Frct is a fraction of height or width; this is a abstraction of the coordinates on the screen.
func ToFrequencyFrct ¶
func ToFrequencyFrct(f Frequency, r FrequencyRange) Frct
ToFrequencyFrct returns the fraction of the given frequency in the given range.
type Frequency ¶
Frequeny alias for hamradio.Frequency
func FrctToFrequency ¶
func FrctToFrequency(f Frct, r FrequencyRange) Frequency
FrctToFrequency converts the given fraction into a frequency from the given range.
type FrequencyMark ¶
FrequencyMark on the frequency scale
type FrequencyRange ¶
type FrequencyRange = hamradio.FrequencyRange
FrequencyRange alias for hamradio.FrequencyRange
type Panorama ¶
type Panorama struct { FrequencyRange FrequencyRange VFO VFO Band bandplan.Band Resolution HzPerPx VFOLine Frct VFOFilterFrom Frct VFOFilterTo Frct VFOSignalLevel DB FrequencyScale []FrequencyMark DBScale []DBMark Spectrum []FPoint PeakThresholdLevel Frct SigmaEnvelope []FPoint Peaks []PeakMark Waterline []Frct }
Panorama current state
type PeakIndexRange ¶
PeakIndexRange contains the index values within FFT data that describe a peak.
type PeakMark ¶
type PeakMark struct { FromX Frct ToX Frct MaxX Frct MaxFrequency Frequency ValueY Frct ValueDB DB }
PeakMark contains all information to visualize a peak
type SamplesInput ¶
type SamplesInput interface { Samples() <-chan []complex128 Close() error }
SamplesInput interface.