rtlsdr

package
v2.29.0-595+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FreqToIndex

func FreqToIndex(freq float32, data PowerDist) int

FreqToIndex converts a frequency to a list index.

func GetAudio

func GetAudio(hostname string, freq int) (audio []byte, err error)

GetAudio fetches a 30 second chunk of raw audio.

func GetCeilingSignals

func GetCeilingSignals(hostname string, celling float32) (stationFreqs []float32, origin string, err error)

GetCeilingSignals fetches the signal power distribution and samples it down to a list of frequencies at which there (probably) exist strong FM signals.

Types

type Freqs

type Freqs struct {
	Origin string    `json:"origin"`
	Freqs  []float32 `json:"freqs"`
}

Freqs stores a list of frequencies of stations

func GetFreqs

func GetFreqs(hostname string) (freqs Freqs, err error)

type PowerDist

type PowerDist struct {
	Origin string    `json:"origin"`
	Low    float32   `json:"low"`
	High   float32   `json:"high"`
	Dbm    []float32 `json:"dbm"`
}

PowerDist is the distribution of power of frequency.

Jump to

Keyboard shortcuts

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