models

package
v0.0.0-...-2266a13 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const KILL = -1

Variables

This section is empty.

Functions

This section is empty.

Types

type ADCData

type ADCData struct {
	If1a []int16 `json:"if1a"`
	If2b []int16 `json:"if2b"`
	If1b []int16 `json:"if1b"`
}

func NewADCData

func NewADCData() *ADCData

type AppConfig

type AppConfig struct {
	//Name of the application and some meta data
	AppName         string
	AppVersion      string
	AppEmail        string
	AppIcon         string
	AppColor        string
	AppTheme        string
	AppDebug        bool
	AppPort         int
	ProvisionIP     string
	ProvisionPort   int
	DeviceIP        string
	DevicePort      int
	ApplicationPath string
}

func NewAppConfig

func NewAppConfig() *AppConfig

type DDATData

type DDATData struct {
	// contains filtered or unexported fields
}

func NewDDATData

func NewDDATData() *DDATData

type DDAT_struct

type DDAT_struct struct {
	Detect uint8 `json:"detect"`
	Micro  uint8 `json:"micro"`
	Angle  uint8 `json:"angle"`
	Dir    uint8 `json:"dir"`
	Range  uint8 `json:"range"`
	Speed  uint8 `json:"speed"`
}

type Device

type Device struct {
	UUID      []byte `json:"uuid"`
	Name      string `json:"name"`
	IP        []byte `json:"ip"`
	Port      []byte `json:"port"`
	LastUsed  int64  `json:"lastused"`
	BitRate   int64  `json:"bitrate"`
	Mode      int64  `json:"mode"`
	MaxVel    int64  `json:"maxvel"`
	MaxRange  int64  `json:"maxrange"`
	Network   string `json:"network"`
	Protocol  string `json:"protocol"`
	Bandwidth int64  `json:"bandwidth"`
	Tx        int64  `json:"tx"`
	// contains filtered or unexported fields
}

func (*Device) GetPort

func (p *Device) GetPort() int

func (*Device) GetTalker

func (p *Device) GetTalker() *net.Talker

func (*Device) IsReady

func (p *Device) IsReady() bool

func (*Device) SetConnection

func (p *Device) SetConnection(conn *net.TCPConnection)

func (*Device) SetTalker

func (p *Device) SetTalker(talk *net.Talker)

type DeviceSettings

type DeviceSettings struct {
	StreamMode     string `json:"streammode"`
	RequestProfile string `json:"requestprofile"`
}

type FFTData

type FFTData struct {
	Data   []int16 `json:"data"`
	Thresh []int16 `json:"thresh"`
}

func NewFFTData

func NewFFTData() *FFTData

type JsonRequest

type JsonRequest struct {
	Controller string            `json:"controller"`
	RouteKey   string            `json:"routekey"`
	SessionKey string            `json:"sessionkey"`
	Paramaters map[string]string `json:"params"`
}

func NewJsonRequest

func NewJsonRequest(message string) *JsonRequest

type Logging

type Logging struct {
	// contains filtered or unexported fields
}

Logging framework

func NewLogging

func NewLogging() *Logging

type Model

type Model interface {
	serial.Serialize
	Create() interface{}
	ToString() string
	UpdateKey(string, interface{}) error
	GetKey(string) interface{}
	GetKeys() []string
	GetValues() []interface{}
	GetKeysValues() map[string]interface{}
	GetModelName() string
	GetModelID() string
	DeleteKey(string) error
}

type PDATData

type PDATData struct {
	// contains filtered or unexported fields
}

func NewPDATData

func NewPDATData() *PDATData

type PDAT_struct

type PDAT_struct struct {
	Distance uint16 `json:"distance"`
	Speed    uint16 `json:"speed"`
	Angle    int16  `json:"angle"`
	Dbs      uint16 `json:"dbs"`
}

func NewPDAT_struct

func NewPDAT_struct() *PDAT_struct

type RadarData

type RadarData struct {
	ADCData  *ADCData  `json:"adcdata"`
	FFTData  *FFTData  `json:"fftdata"`
	PDATData *PDATData `json:"pdatdata"`
	TDATData *TDATData `json:"tdatdata"`
	DDATData *DDATData `json:"ddatdata"`
}

func NewRadarData

func NewRadarData() *RadarData

type RadarParams

type RadarParams struct {
	Base_freq          uint8  `json:"base_freq"`
	Max_speed          uint8  `json:"Max_speed"`
	Max_range          uint8  `json:"Max_range"`
	Thresh_off         uint8  `json:"thresh_off"`
	Tracking_filter    uint8  `json:"tracking_filter"`
	Vibration_suppress uint8  `json:"vibration_suppress"`
	Min_detect_dist    uint8  `json:"Min_detect_dist"`
	Max_detect_dist    uint8  `json:"Max_detect_dist"`
	Min_detect_angle   int8   `json:"Min_detect_angle"`
	Max_detect_angle   int8   `json:"Max_detect_angle"`
	Min_detect_speed   uint8  `json:"Min_detect_speed"`
	Max_detect_speed   uint8  `json:"Max_detect_speed"`
	Detect_dir         uint8  `json:"detect_dir"`
	Range_thresh       uint8  `json:"range_thresh"`
	Angle_tresh        uint8  `json:"angle_tresh"`
	Speed_thresh       uint8  `json:"speed_thresh"`
	D0                 uint8  `json:"d0"`
	D1                 uint8  `json:"d1"`
	D2                 uint8  `json:"d2"`
	Hold_time          uint16 `json:"hold_time"`
	Micro_retrigger    uint8  `json:"micro_retrigger"`
	Micro_sensitivity  uint8  `json:"micro_sensitivity"`
	// contains filtered or unexported fields
}

type SessionObject

type SessionObject struct {
	User *User `json:"user"`
	// contains filtered or unexported fields
}

func NewSessionObject

func NewSessionObject() *SessionObject

type TDATData

type TDATData struct {
	// contains filtered or unexported fields
}

func NewTDATData

func NewTDATData() *TDATData

type TDAT_struct

type TDAT_struct struct {
	Distance uint16 `json:"distance"`
	Speed    uint16 `json:"speed"`
	Angle    int16  `json:"angle"`
	Dbs      uint16 `json:"dbs"`
}

type User

type User struct {
	First    string `json:"first"`
	Last     string `json:"last"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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