From 26905e1a7e923f5fd70792acf2b52ca4d0343317 Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm Date: Tue, 8 Jul 2025 11:11:12 +0200 Subject: [PATCH] Remove broken camera scann support --- M100 | 6 ------ M101 | 4 ---- M102 | 32 -------------------------------- M103 | 24 ------------------------ M104 | 12 ------------ microscopeTuchoff.ngc | 0 6 files changed, 78 deletions(-) delete mode 100755 M100 delete mode 100755 M101 delete mode 100755 M102 delete mode 100755 M103 delete mode 100755 M104 delete mode 100644 microscopeTuchoff.ngc diff --git a/M100 b/M100 deleted file mode 100755 index a69417c..0000000 --- a/M100 +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -cd ~/linuxcnc/scannout/default - -LAST=$(find . -maxdepth 1 -name "*.jpg" -type f -printf "%p\n" | sed -e s/.\\/out-//g -e s/.jpg//g | sort -g | tail -1) -cnccapture -D /dev/v4l/by-id/usb-Etron_Technology__Inc._XWJ200-video-index0 out-$(($LAST + 1)).jpg diff --git a/M101 b/M101 deleted file mode 100755 index 449b01f..0000000 --- a/M101 +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -rm ~/linuxcnc/scannout/default/* 2> /dev/null -exit 0 diff --git a/M102 b/M102 deleted file mode 100755 index 8b28657..0000000 --- a/M102 +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -cd ~/linuxcnc/scannout/multiscan - -if [ -p /tmp/CNCCaptureCtl ] -then - echo exit > /tmp/CNCCaptureCtl - sleep 2 -fi - -LAST=$(find . -maxdepth 1 -type d -printf "%p\n" | sed -e s/.\\///g | sort -g | tail -1) - -re='^[0-9]+$' -if ! [[ $LAST =~ $re ]] ; then - LAST=0 -fi - -mkdir $(($LAST+1)) - -cnccapture -d -D /dev/v4l/by-id/usb-Etron_Technology__Inc._XWJ200-video-index0 ~/linuxcnc/scannout/multiscan/$(($LAST+1))/ & - -sleep 3 - -for i in {1..600} -do - if [ -f /tmp/CNCCaptureRdy ]; then - break - else - sleep 0.1 - fi -done - diff --git a/M103 b/M103 deleted file mode 100755 index ac99358..0000000 --- a/M103 +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -ctlPipe=/tmp/CNCCaptureCtl - -if [[ -p $ctlPipe ]] -then - echo snap > "$ctlPipe" - sleep 0.5 - - for i in {1..600} - do - sleep 0.1 - if [ -f /tmp/CNCCaptureRdy ]; then - echo "redy" - break - fi - done - - exit 0 -else - echo "no ctlPipe" - exit 1 -fi - diff --git a/M104 b/M104 deleted file mode 100755 index 82e2644..0000000 --- a/M104 +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -if [ -p /tmp/CNCCaptureCtl ] -then - echo exit > /tmp/CNCCaptureCtl - sleep 1 - exit 0 -else - exit 1 -fi - - diff --git a/microscopeTuchoff.ngc b/microscopeTuchoff.ngc deleted file mode 100644 index e69de29..0000000