mirror of
https://github.com/jwetzell/free-d-go.git
synced 2026-08-04 23:07:48 +00:00
29 lines
376 B
Go
29 lines
376 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
freeD "github.com/jwetzell/free-d-go"
|
|
)
|
|
|
|
func main() {
|
|
|
|
freeDMessage := freeD.FreeDPosition{
|
|
ID: 0xff,
|
|
Pan: -10.1,
|
|
Tilt: 20.2,
|
|
Roll: 3.33,
|
|
PosX: 1.11,
|
|
PosY: 2.22,
|
|
PosZ: 3.33,
|
|
Zoom: 1000,
|
|
Focus: 2000,
|
|
}
|
|
|
|
freeDBytes := freeD.Encode(freeDMessage)
|
|
|
|
println("send packet somehow")
|
|
fmt.Printf("%v\n", freeDBytes)
|
|
|
|
}
|