File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
cmd/ssl-auto-ref-ci-client Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ func main() {
31
31
simulate ()
32
32
sendAutoRefCi (autoRefConn , detectionFrame )
33
33
trackerFrame := receiveAutoRefCi (autoRefConn )
34
+ if trackerFrame == nil {
35
+ return
36
+ }
34
37
sendCi (gcConn , trackerFrame )
35
38
refereeMsg = receiveCi (gcConn )
36
39
time .Sleep (10 * time .Millisecond )
@@ -111,8 +114,8 @@ func receiveCi(conn net.Conn) *state.Referee {
111
114
func sendAutoRefCi (conn net.Conn , detectionFrame * vision.SSL_DetectionFrame ) {
112
115
timestamp := time .Now ().UnixNano ()
113
116
114
- * detectionFrame .TSent = float64 (timestamp / 1e9 )
115
- * detectionFrame .TCapture = float64 (timestamp / 1e9 )
117
+ * detectionFrame .TSent = float64 (timestamp ) / 1e9
118
+ * detectionFrame .TCapture = float64 (timestamp ) / 1e9
116
119
* detectionFrame .FrameNumber ++
117
120
input := autoref.AutoRefCiInput {
118
121
Detection : []* vision.SSL_DetectionFrame {detectionFrame },
You can’t perform that action at this time.
0 commit comments