demod2

package
v0.0.0-...-6e02741 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Demodulator

type Demodulator struct {
	Zero     []complex128
	FFT1     []complex128
	IFFT     []complex128
	LF       []complex128
	Envelope []complex128
	FFT2     []complex128
	Meas     Meas
	// contains filtered or unexported fields
}

Demodulator contains preallocated buffers and cached data for the demodulator

func NewDemodulator

func NewDemodulator(fs float64, numSamples int) *Demodulator

NewDemodulator creates a Demodulator

func (*Demodulator) Process

func (d *Demodulator) Process(input []byte)

Process input samples and calculate ILS measurements.

func (*Demodulator) Spectrum1

func (d *Demodulator) Spectrum1() []float32

Spectrum1 returns the amplitude spectrum before bandpass filtering

func (*Demodulator) Spectrum2

func (d *Demodulator) Spectrum2() []float32

Spectrum2 returns the amplitude spectrum after bandpass filtering

type Meas

type Meas struct {
	Mod150 float32 `json:"mod150"`
	Mod90  float32 `json:"mod90"`
	DDM    float32 `json:"ddm"`
	SDM    float32 `json:"sdm"`
	RF     float32 `json:"rf"`
}

Meas holds the demodulated data

Jump to

Keyboard shortcuts

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