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
{{ message }}
This repository was archived by the owner on Apr 8, 2024. It is now read-only.
vision.Camera.cam.output.PutFrame(ProcessingOutput); // Might get rid of this to speed up loop.
133
145
#endif
146
+
147
+
//Calc offset
148
+
offsetX = cx-(ResWidth/2);
149
+
offsetY = cy-(ResHeight/2);
150
+
151
+
TargetX.SetDouble(offsetX);
152
+
TargetY.SetDouble(offsetY);
153
+
ImageHeight.SetDouble(ResHeight);
154
+
ImageWidth.SetDouble(ResWidth);
155
+
} else {
156
+
visionTable->PutBoolean("Vision Active", false);
134
157
}
135
158
}
136
159
}
137
160
```
138
-
The above tracks green pixles at a regular exposure then detects and draws bounding boxes on everything that is green. It then sends the center values through network tables. So you can use it on your roborio and shuffleboard for autonomous.
161
+
The above tracks green pixles at a low exposure then detects and draws bounding boxes on everything that is green. It then sends the center values through network tables. So you can use it on your roborio and shuffleboard for autonomous/teleop.
139
162
140
163
141
164
# Getting started with your coprocessor
@@ -144,6 +167,7 @@ The above tracks green pixles at a regular exposure then detects and draws bound
### 2. Flash the image onto a microsd card using etcher: https://etcher.io/
146
169
- You will need to grab the .img file from the zip. The .img file is what you give to etcher.
170
+
- If you want a headless setup. (Only power and ethernet) By Default since 2016, rasbian locks ssh when you first boot onto it. You can unlock ssh by placing a file called ssh with no file extension in the accessible partition of the sd. When the board boots up it should search for this file and allow ssh.
147
171
- After complete, insert the microSD card and startup the coprocessor. It may take a minute or two
0 commit comments