mirror of
https://github.com/jwetzell/free-d-go.git
synced 2026-08-20 14:19:00 +00:00
add example
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
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)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user