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

10
tests/biquad/expected Normal file
View File

@@ -0,0 +1,10 @@
0 0.123000 0.123000
0 0.550000 0.550000
0 1.120000 1.120000
0 0.123134 0.123134
1 0.000100 0.000100
1 1.123450 1.123450
1 444.555000 444.555000
1 0.000000 0.000000
0 1213.000000 1213.000000
0 0.000000 0.000000

15
tests/biquad/runstreamer Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
# first column is "enable", second is "in"
halstreamer << EOF
0 0.123
0 0.55
0 1.12
0 0.1231344
1 0.0001
1 1.12345
1 444.555
1 0
0 1213
0 0
EOF

19
tests/biquad/test.hal Normal file
View File

@@ -0,0 +1,19 @@
setexact_for_test_suite_only
loadrt threads name1=fast period1=100000
loadrt biquad
loadrt sampler cfg=bff depth=500
loadrt streamer cfg=bf depth=500
net enable streamer.0.pin.0 => sampler.0.pin.0 biquad.0.enable
net in streamer.0.pin.1 => sampler.0.pin.1 biquad.0.in
net out biquad.0.out => sampler.0.pin.2
addf streamer.0 fast
addf biquad.0 fast
addf sampler.0 fast
loadusr -w sh runstreamer
start
loadusr -w halsampler -n 10