sa6mwa / hamcalc

A small CLI with a selection of various amateur radio and antenna related calculators.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hamcalc

hamcalc is a small CLI with a selection of various amateur radio and antenna related calculators.

$ go run github.com/sa6mwa/hamcalc/cmd/hamcalc -h
Usage: hamcalc command [options/variables...]

COMMANDS
slimjim     Calculate a resonant Slimjim or J-Pole antenna from frequency
            as input.

Installation

go install github.com/sa6mwa/hamcalc/cmd/hamcalc@latest

# or...

go build -o hamcalc github.com/sa6mwa/hamcalc/cmd/hamcalc@latest
sudo install hamcalc /usr/local/bin/

hamcalc

import "github.com/sa6mwa/hamcalc"

hamcalc contains a set of amateur radio and antenna related calculators.

Index

type SlimJim

type SlimJim struct {
    QRGMHz                         float64
    VelocityFactorRadiatingElement float64
    VelocityFactorLadderLine       float64
    TotalLengthSlimjim             float64 // cm
    TotalLengthJPole               float64 // cm
    HalfwaveSectionB               float64 // cm
    QuarterwaveSectionC            float64 // cm
    FeedpointD                     float64 // cm
    GapE                           float64 // cm
    DistanceBetweenSectionsF       float64 // cm
    QuarterwaveMaterialLength      float64 // cm
}

func NewSlimJim

func NewSlimJim() *SlimJim

NewSlimJim returns a new SlimJim instance with defaults.

func (*SlimJim) Calculate

func (s *SlimJim) Calculate(mhz float64) *SlimJim

Calculate performs the antenna calculations and fills in all fields in the SlimJim instance.

func (*SlimJim) DrawAntenna

func (s *SlimJim) DrawAntenna(w io.Writer) error

DrawAntenna prints the blue print how to design the slimjim or J-pole antenna with all measurements. Calculate need to be called before DrawAntenna.

func (*SlimJim) SetVelocityFactor

func (s *SlimJim) SetVelocityFactor(vfLadderline, vfRadiatingElement float64) *SlimJim

SetVelocityFactor sets the velocity factors for the ladderline and radiating element in the SlimJim instance. Returns the input receiver object.

Generated by gomarkdoc

About

A small CLI with a selection of various amateur radio and antenna related calculators.

License:MIT License


Languages

Language:Go 100.0%