ptz

package
v0.0.0-...-72e33f6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, c Client, channel int, params Params) error

func Stop

func Stop(ctx context.Context, c Client, channel int, params Params) error

Types

type Client

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

func NewClient

func NewClient(conn dahuarpc.ConnSession) Client

func (Client) Instance

func (c Client) Instance(ctx context.Context, channel int) (dahuarpc.Response[json.RawMessage], error)

func (Client) Seq

type Params

type Params struct {
	Code string `json:"code"`
	Arg1 int    `json:"arg1"`
	Arg2 int    `json:"arg2"`
	Arg3 int    `json:"arg3"`
	Arg4 int    `json:"arg4"`
}

type Preset

type Preset struct {
	Index int    `json:"Index"`
	Name  string `json:"Name"`
}

func GetPresets

func GetPresets(ctx context.Context, c Client, channel int) ([]Preset, error)

type Status

type Status struct {
	Postion       [3]float64 `json:"Postion"`
	Action        string     `json:"Action"`
	ActionID      int        `json:"ActionID"`
	MoveStatus    string     `json:"MoveStatus"`
	TaskName      string     `json:"TaskName"`
	PanTiltStatus string     `json:"PanTiltStatus"`
}

func GetStatus

func GetStatus(ctx context.Context, c Client, channel int) (Status, error)

Jump to

Keyboard shortcuts

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