#!/bin/bash
echo "# x y crate slot channel"
x=-23
y=1
slot=0
channel=0
while true
do
	echo "$x $y 1 $slot $channel"
	echo "$x -$y 2 $slot $channel"
	channel=$((channel+1))
	if [ "$channel" -eq 16 ]
	then
		channel=0
		slot=$((slot+1))
	fi
	y=$((y+1))
	if [ "$y" -eq 6 ]
	then
		y=1
		x=$((x+1))
		if [ "$x" -eq 0 ]
		then
			x=1
		fi
		if [ "$x" -eq 24 ]
		then
			exit
		fi
	fi
	if [ "$y" -eq 1 ] && [ "$x" -le -2 ] && [ "$x" -ge -10 ]
	then
		y=2
	fi
done
