antenna

package
v0.0.0-...-c1c2666 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2015 License: Apache-2.0, LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Implements a simple phase delay from different n-Antenna elements

Index

Constants

View Source
const (
	LinearPhaseArray = iota
	CircularPhaseArray
)

Variables

View Source
var ArrayTypes = [...]string{
	"LinearPhaseArray",
	"CircularPhaseArray",
}
View Source
var Bobwriter io.Writer
View Source
var Nodes = 360
View Source
var Radius float64 = 1

Functions

func GetEJtheta

func GetEJtheta(degree float64) complex128

func GetLamda

func GetLamda(freq float64) float64

func Radian

func Radian(degree float64) float64

func RunAAS

func RunAAS(params SettingAAS)

func RunJSON

func RunJSON(jstring string)

Types

type ArrayType

type ArrayType int

func (ArrayType) String

func (c ArrayType) String() string

type SettingAAS

type SettingAAS struct {
	Freq float64

	N                                int
	Nodes                            int
	Omni                             bool
	MfileName                        string
	VTiltAngle                       float64
	HTiltAngle                       float64
	BeamTilt                         float64
	DisableBeamTit                   bool
	HoldOn                           bool
	VBeamWidth, HBeamWidth           float64
	SLAV                             float64
	ESpacingVFactor, ESpacingHFactor float64
	Centre                           vlib.Location3D `json:"-"`

	AASArrayType       ArrayType
	CurveWidthInDegree float64
	CurveRadius        float64
	// contains filtered or unexported fields
}

func NewAAS

func NewAAS() *SettingAAS

func (*SettingAAS) AASGain

func (params *SettingAAS) AASGain(dest vlib.Location3D) (gain float64, effectiveThetaH, effectiveThetaV float64)

func (*SettingAAS) CreateCircularElements

func (params *SettingAAS) CreateCircularElements(centre vlib.Location3D)

func (*SettingAAS) CreateElements

func (params *SettingAAS) CreateElements(centre vlib.Location3D)

func (*SettingAAS) CreateLinearElements

func (params *SettingAAS) CreateLinearElements(centre vlib.Location3D)

func (SettingAAS) ElementDirectionGain

func (s SettingAAS) ElementDirectionGain(theta float64) float64

func (SettingAAS) ElementDirectionHGain

func (s SettingAAS) ElementDirectionHGain(degree float64) float64

func (SettingAAS) ElementDirectionVGain

func (s SettingAAS) ElementDirectionVGain(degree float64) float64

func (SettingAAS) ElementEffectiveGain

func (s SettingAAS) ElementEffectiveGain(thetaH, thetaV float64) float64

func (*SettingAAS) FindWeights

func (params *SettingAAS) FindWeights(theta float64) vlib.VectorC

func (*SettingAAS) GetElements

func (params *SettingAAS) GetElements() []vlib.Location3D

func (*SettingAAS) GetLamda

func (params *SettingAAS) GetLamda() float64

func (*SettingAAS) GetRxPhase

func (params *SettingAAS) GetRxPhase(dest vlib.Location3D) []complex128

/ Returns the Phase of the Signal at the given location from all its elements after applying weights at its elements

func (*SettingAAS) Set

func (s *SettingAAS) Set(str string)

func (*SettingAAS) SetDefault

func (s *SettingAAS) SetDefault()

Jump to

Keyboard shortcuts

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