cmd/rv: fix build issues

This commit is contained in:
Russell Stanley 2022-04-12 13:51:17 +09:30
parent f6505488bb
commit 6dd32ea786
3 changed files with 6 additions and 2 deletions

View File

@ -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() {

View File

@ -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
}

View File

@ -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))