Import LinuxCNC source tree
This commit is contained in:
7
tests/abs.0/expected
Normal file
7
tests/abs.0/expected
Normal file
@@ -0,0 +1,7 @@
|
||||
0.000000 0.000000
|
||||
0.250000 0.250000
|
||||
-0.250000 0.250000
|
||||
1.000000 1.000000
|
||||
-1.000000 1.000000
|
||||
64.000000 64.000000
|
||||
-64.000000 64.000000
|
||||
10
tests/abs.0/runstreamer
Normal file
10
tests/abs.0/runstreamer
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
halstreamer << EOF
|
||||
0
|
||||
0.25
|
||||
-0.25
|
||||
1
|
||||
-1
|
||||
64
|
||||
-64
|
||||
EOF
|
||||
17
tests/abs.0/test.hal
Normal file
17
tests/abs.0/test.hal
Normal file
@@ -0,0 +1,17 @@
|
||||
setexact_for_test_suite_only
|
||||
|
||||
loadrt sampler cfg=ff depth=350
|
||||
loadrt streamer cfg=f depth=350
|
||||
loadrt abs
|
||||
loadrt threads name1=fast period1=100000
|
||||
|
||||
net in streamer.0.pin.0 => sampler.0.pin.0 abs.0.in
|
||||
net out abs.0.out => sampler.0.pin.1
|
||||
|
||||
addf streamer.0 fast
|
||||
addf abs.0 fast
|
||||
addf sampler.0 fast
|
||||
|
||||
loadusr -w sh runstreamer
|
||||
start
|
||||
loadusr -w halsampler -n 7
|
||||
Reference in New Issue
Block a user