You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
funcNewCamera(ipAddress []int) *CameratypeCamerastruct {
ip []intportintdelimiterrune
}
// init iv3 camera with default values, change thru settersmyCamera:=NewCamera([]int{127, 0, 0, 1})
Pass camera to a messenger object
funcNewMessenger(namestring, c*Camera.Camera) *Messenger// Messenger is a collection of cameras, and handles all network logic.// All you need to know is the name the camera was assigned!typeMessengerstruct {
Camerasmap[string]*Camera.Camera
}
myMessenger:=NewMessenger("exampleCamera", myCamera)
Send the camera a command to make it "do stuff"
func (m*Messenger) Send(namestring, msgMessage) (Response, error)
// tell the "exampleCamera" to take a picture, evaluate, and send back resultsresponse, err:=myMessenger.Send("exampleCamera", Operate.Trig())
See packages for available commands and iv3 manual for usage
Operate -> commands for operating camera and reading/writing data
Status TODO! -> commands for reading and clearing camera warnings/errors
Config TODO! -> commands for editting camera settings