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
returnfmt.Errorf("Message does not contain camera output. What did imaging do??")
71
71
}
72
-
log.Info().Msgf("Imaging service captured a %d by %d image", imagingData.Trajectory.Width, imagingData.Trajectory.Height)
72
+
log.Info().Msgf("Imaging service captured a %d by %d image", imagingData.Resolution.Width, imagingData.Resolution.Height)
73
73
74
74
// Print the X and Y coordinates of the middle point of the track that Imaging has detected
75
-
iflen(imagingData.Trajectory.Points) >0 {
76
-
log.Info().Msgf("The X: %d and Y: %d values of the middle point of the track", imagingData.Trajectory.Points[0].X, imagingData.Trajectory.Points[0].Y)
75
+
iflen(imagingData.HorizontalScans) >0 {
76
+
log.Info().Msgf("The left side of the track is at X: %d, and the right side of the track is at X: %d. Both are at Y: %d", imagingData.HorizontalScans[0].XLeft, imagingData.HorizontalScans[0].XRight, imagingData.HorizontalScans[0].Y)
77
77
} else {
78
78
log.Info().Msgf("imaging could didn't detect track edges. Is the Rover on the track?")
0 commit comments