diff --git a/cmd/rv/main.go b/cmd/rv/main.go index 242889f1..6becfae3 100644 --- a/cmd/rv/main.go +++ b/cmd/rv/main.go @@ -226,7 +226,7 @@ func run(rv *revid.Revid, ns *netsender.Sender, l *logger.Logger, nl *netlogger. l.Log(logger.Info, "revid successfully reconfigured") // Update transform matrix based on new revid variables. - p.transform = rv.Config().TransformMatrix + p.Update(rv.Config()) l.Log(logger.Debug, "checking mode") switch ns.Mode() { diff --git a/cmd/rv/probe_circleci.go b/cmd/rv/probe_circleci.go index 3c82038e..7a3d0cb4 100644 --- a/cmd/rv/probe_circleci.go +++ b/cmd/rv/probe_circleci.go @@ -32,6 +32,7 @@ package main import ( "time" + "bitbucket.org/ausocean/av/revid/config" "bitbucket.org/ausocean/utils/logger" ) @@ -50,6 +51,10 @@ func (tp *turbidityProbe) Write(p []byte) (int, error) { return 0, nil } +func (tp *turbidityProbe) Update(config config.Config) error { + return nil +} + func (tp *turbidityProbe) Close() error { return nil } diff --git a/turbidity/transform.go b/turbidity/transform.go index d855ba19..9fada5b7 100644 --- a/turbidity/transform.go +++ b/turbidity/transform.go @@ -66,7 +66,6 @@ func FindTransform(standardPath, templatePath string) (gocv.Mat, error) { } H := gocv.FindHomography(standardCorners, &templateCorners, gocv.HomograpyMethodRANSAC, ransacThreshold, &mask, maxIter, confidence) - fmt.Print(H.Type()) for i := 0; i < H.Rows(); i++ { for j := 0; j < H.Cols(); j++ { fmt.Printf(" %.10f", H.GetDoubleAt(i, j))