Skip to content

Commit 51fd2a0

Browse files
committed
cablebot python script
1 parent 6d55651 commit 51fd2a0

File tree

1 file changed

+2
-1
lines changed
  • docs/Farmers Dashboard

1 file changed

+2
-1
lines changed

docs/Farmers Dashboard/v2.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def scan(cnc, camera, x0, dx, count):
286286
time.sleep(1)
287287
image = camera.grab()
288288
if image != None:
289-
filename = f"cablebot-{i:05d}-{1000*x:05d}.jpg"
289+
filename = f"cablebot-{i:05d}-{int(1000*x):05d}.jpg"
290290
print(f"Saving {filename}")
291291
image.save(filename)
292292

@@ -314,6 +314,7 @@ if __name__ == '__main__':
314314
help='The number of images')
315315
parser.add_argument('--no-homing', action=argparse.BooleanOptionalAction,
316316
help='Go back to zero without the homing procedure')
317+
args = parser.parse_args()
317318

318319
cnc = CNC("cnc", "cnc")
319320
camera = Camera("camera", "camera")

0 commit comments

Comments
 (0)