dji

package
v0.0.0-...-93023be Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package dji implements metadata models written by video cameras on DJI drones.

Index

Constants

This section is empty.

Variables

View Source
var (
	NsDJI = xmp.NewNamespace("drone-dji", "http://www.dji.com/drone-dji/1.0/", NewModel)
)

Functions

func NewModel

func NewModel(name string) xmp.Model

Types

type DJI

type DJI struct {
	AbsoluteAltitude  float32 `drone-dji:"AbsoluteAltitude"  qt:"-"     xmp:"drone-dji:AbsoluteAltitude"`  //  "+543.44",
	FlightPitchDegree float32 `drone-dji:"FlightPitchDegree" qt:"©fpt"  xmp:"drone-dji:FlightPitchDegree"` //  "+4.80",
	FlightRollDegree  float32 `drone-dji:"FlightRollDegree"  qt:"©frl"  xmp:"drone-dji:FlightRollDegree"`  //  "+1.30",
	FlightYawDegree   float32 `drone-dji:"FlightYawDegree"   qt:"©fyw"  xmp:"drone-dji:FlightYawDegree"`   //  "-1.90",
	GimbalPitchDegree float32 `drone-dji:"GimbalPitchDegree" qt:"©gpt"  xmp:"drone-dji:GimbalPitchDegree"` //  "-90.00",
	GimbalRollDegree  float32 `drone-dji:"GimbalRollDegree"  qt:"©grl"  xmp:"drone-dji:GimbalRollDegree"`  //  "+0.00",
	GimbalYawDegree   float32 `drone-dji:"GimbalYawDegree"   qt:"©gyw"  xmp:"drone-dji:GimbalYawDegree"`   //  "-2.00",
	RelativeAltitude  float32 `drone-dji:"RelativeAltitude"  qt:"-"     xmp:"drone-dji:RelativeAltitude"`  //  "+46.60"
	SpeedX            float32 `drone-dji:"SpeedX"            qt:"©xsp"  xmp:"drone-dji:SpeedX"`
	SpeedY            float32 `drone-dji:"SpeedY"            qt:"©ysp"  xmp:"drone-dji:SpeedY"` // - +0.00
	SpeedZ            float32 `drone-dji:"SpeedZ"            qt:"©zsp"  xmp:"drone-dji:SpeedZ"` //  - +0.00,+0.40
	Model             string  `drone-dji:"Model"             qt:"©mdl"  xmp:"tiff:Model"`
}

func FindModel

func FindModel(d *xmp.Document) *DJI

func MakeModel

func MakeModel(d *xmp.Document) (*DJI, error)

func (*DJI) Can

func (m *DJI) Can(nsName string) bool

func (*DJI) CanTag

func (x *DJI) CanTag(tag string) bool

func (*DJI) GetTag

func (x *DJI) GetTag(tag string) (string, error)

func (*DJI) Namespaces

func (m *DJI) Namespaces() xmp.NamespaceList

func (*DJI) SetTag

func (x *DJI) SetTag(tag, value string) error

func (*DJI) SyncFromXMP

func (x *DJI) SyncFromXMP(d *xmp.Document) error

func (*DJI) SyncModel

func (x *DJI) SyncModel(d *xmp.Document) error

func (DJI) SyncToXMP

func (x DJI) SyncToXMP(d *xmp.Document) error

Jump to

Keyboard shortcuts

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