Import LinuxCNC source tree

This commit is contained in:
Wang Dequan
2026-08-20 06:17:39 +08:00
commit 2c814634c3
9429 changed files with 10556013 additions and 0 deletions

1
tests/near.0/README Normal file
View File

@@ -0,0 +1 @@
regression test for components: near

122
tests/near.0/expected Normal file
View File

@@ -0,0 +1,122 @@
-12.000000 -12.000000 1 1
-12.000000 -11.000000 1 1
-12.000000 -10.000000 1 0
-12.000000 -2.000000 0 0
-12.000000 -1.000000 0 0
-12.000000 0.000000 0 0
-12.000000 1.000000 0 0
-12.000000 2.000000 0 0
-12.000000 10.000000 0 0
-12.000000 11.000000 0 0
-12.000000 12.000000 0 0
-11.000000 -12.000000 1 1
-11.000000 -11.000000 1 1
-11.000000 -10.000000 1 1
-11.000000 -2.000000 0 0
-11.000000 -1.000000 0 0
-11.000000 0.000000 0 0
-11.000000 1.000000 0 0
-11.000000 2.000000 0 0
-11.000000 10.000000 0 0
-11.000000 11.000000 0 0
-11.000000 12.000000 0 0
-10.000000 -12.000000 1 0
-10.000000 -11.000000 1 1
-10.000000 -10.000000 1 1
-10.000000 -2.000000 0 0
-10.000000 -1.000000 0 0
-10.000000 0.000000 0 0
-10.000000 1.000000 0 0
-10.000000 2.000000 0 0
-10.000000 10.000000 0 0
-10.000000 11.000000 0 0
-10.000000 12.000000 0 0
-2.000000 -12.000000 0 0
-2.000000 -11.000000 0 0
-2.000000 -10.000000 0 0
-2.000000 -2.000000 1 1
-2.000000 -1.000000 0 1
-2.000000 0.000000 0 0
-2.000000 1.000000 0 0
-2.000000 2.000000 0 0
-2.000000 10.000000 0 0
-2.000000 11.000000 0 0
-2.000000 12.000000 0 0
-1.000000 -12.000000 0 0
-1.000000 -11.000000 0 0
-1.000000 -10.000000 0 0
-1.000000 -2.000000 0 1
-1.000000 -1.000000 1 1
-1.000000 0.000000 0 1
-1.000000 1.000000 0 0
-1.000000 2.000000 0 0
-1.000000 10.000000 0 0
-1.000000 11.000000 0 0
-1.000000 12.000000 0 0
0.000000 -12.000000 0 0
0.000000 -11.000000 0 0
0.000000 -10.000000 0 0
0.000000 -2.000000 0 0
0.000000 -1.000000 0 1
0.000000 0.000000 1 1
0.000000 1.000000 0 1
0.000000 2.000000 0 0
0.000000 10.000000 0 0
0.000000 11.000000 0 0
0.000000 12.000000 0 0
1.000000 -12.000000 0 0
1.000000 -11.000000 0 0
1.000000 -10.000000 0 0
1.000000 -2.000000 0 0
1.000000 -1.000000 0 0
1.000000 0.000000 0 1
1.000000 1.000000 1 1
1.000000 2.000000 0 1
1.000000 10.000000 0 0
1.000000 11.000000 0 0
1.000000 12.000000 0 0
2.000000 -12.000000 0 0
2.000000 -11.000000 0 0
2.000000 -10.000000 0 0
2.000000 -2.000000 0 0
2.000000 -1.000000 0 0
2.000000 0.000000 0 0
2.000000 1.000000 0 1
2.000000 2.000000 1 1
2.000000 10.000000 0 0
2.000000 11.000000 0 0
2.000000 12.000000 0 0
10.000000 -12.000000 0 0
10.000000 -11.000000 0 0
10.000000 -10.000000 0 0
10.000000 -2.000000 0 0
10.000000 -1.000000 0 0
10.000000 0.000000 0 0
10.000000 1.000000 0 0
10.000000 2.000000 0 0
10.000000 10.000000 1 1
10.000000 11.000000 1 1
10.000000 12.000000 1 0
11.000000 -12.000000 0 0
11.000000 -11.000000 0 0
11.000000 -10.000000 0 0
11.000000 -2.000000 0 0
11.000000 -1.000000 0 0
11.000000 0.000000 0 0
11.000000 1.000000 0 0
11.000000 2.000000 0 0
11.000000 10.000000 1 1
11.000000 11.000000 1 1
11.000000 12.000000 1 1
12.000000 -12.000000 0 0
12.000000 -11.000000 0 0
12.000000 -10.000000 0 0
12.000000 -2.000000 0 0
12.000000 -1.000000 0 0
12.000000 0.000000 0 0
12.000000 1.000000 0 0
12.000000 2.000000 0 0
12.000000 10.000000 1 0
12.000000 11.000000 1 1
12.000000 12.000000 1 1
12.000000 12.000000 1 1

124
tests/near.0/runstreamer Normal file
View File

@@ -0,0 +1,124 @@
#!/bin/sh
halstreamer << EOF
-12 -12
-12 -11
-12 -10
-12 -2
-12 -1
-12 0
-12 1
-12 2
-12 10
-12 11
-12 12
-11 -12
-11 -11
-11 -10
-11 -2
-11 -1
-11 0
-11 1
-11 2
-11 10
-11 11
-11 12
-10 -12
-10 -11
-10 -10
-10 -2
-10 -1
-10 0
-10 1
-10 2
-10 10
-10 11
-10 12
-2 -12
-2 -11
-2 -10
-2 -2
-2 -1
-2 0
-2 1
-2 2
-2 10
-2 11
-2 12
-1 -12
-1 -11
-1 -10
-1 -2
-1 -1
-1 0
-1 1
-1 2
-1 10
-1 11
-1 12
0 -12
0 -11
0 -10
0 -2
0 -1
0 0
0 1
0 2
0 10
0 11
0 12
1 -12
1 -11
1 -10
1 -2
1 -1
1 0
1 1
1 2
1 10
1 11
1 12
2 -12
2 -11
2 -10
2 -2
2 -1
2 0
2 1
2 2
2 10
2 11
2 12
10 -12
10 -11
10 -10
10 -2
10 -1
10 0
10 1
10 2
10 10
10 11
10 12
11 -12
11 -11
11 -10
11 -2
11 -1
11 0
11 1
11 2
11 10
11 11
11 12
12 -12
12 -11
12 -10
12 -2
12 -1
12 0
12 1
12 2
12 10
12 11
12 12
EOF

21
tests/near.0/test.hal Normal file
View File

@@ -0,0 +1,21 @@
loadrt threads name1=fast period1=100000
loadrt near count=2
setp near.0.scale 1.5
setp near.1.difference 1.5
loadrt sampler depth=1000 cfg=ffbb
loadrt streamer depth=256 cfg=ff
net in1 streamer.0.pin.0 => near.0.in1 near.1.in1 sampler.0.pin.0
net in2 streamer.0.pin.1 => near.0.in2 near.1.in2 sampler.0.pin.1
net outa near.0.out => sampler.0.pin.2
net outb near.1.out => sampler.0.pin.3
addf streamer.0 fast
addf near.0 fast
addf near.1 fast
addf sampler.0 fast
loadusr -w sh runstreamer
start
loadusr -w halsampler -n 122