Remove broken camera scann support

This commit is contained in:
Carl Philipp Klemm 2025-07-08 11:11:12 +02:00
parent 55d86b685a
commit 26905e1a7e
6 changed files with 0 additions and 78 deletions

6
M100
View file

@ -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

4
M101
View file

@ -1,4 +0,0 @@
#!/bin/bash
rm ~/linuxcnc/scannout/default/* 2> /dev/null
exit 0

32
M102
View file

@ -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

24
M103
View file

@ -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

12
M104
View file

@ -1,12 +0,0 @@
#!/bin/bash
if [ -p /tmp/CNCCaptureCtl ]
then
echo exit > /tmp/CNCCaptureCtl
sleep 1
exit 0
else
exit 1
fi

View file