lora

package
v3.24.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package lora contains LoRa modulation utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustedRSSI

func AdjustedRSSI(channelRSSI, snr float32) float32

AdjustedRSSI returns the LoRa RSSI: the channel RSSI adjusted for SNR. Below -5 dB, the SNR is added to the channel RSSI. Between -5 dB and 10 dB, the SNR is scaled to 0 and added to the channel RSSI.

func GetAdjustedReceivedAt added in v3.24.0

func GetAdjustedReceivedAt(up UplinkMessage) *pbtypes.Timestamp

GetAdjustedReceivedAt tries to improve the ReceivedAt timestamp using the message's GpsTime and metadatas' ReceivedAt.

Types

type UplinkMessage added in v3.24.0

type UplinkMessage interface {
	GetRxMetadata() []*ttnpb.RxMetadata
	GetReceivedAt() *pbtypes.Timestamp
}

UplinkMessage describes a message that holds RxMetadata and timestamp.

Jump to

Keyboard shortcuts

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