执行 AGENTS align-linuxcnc 加速规则
结论:新增 LinuxCNC source-backed arc inverse-time missing-F 错误覆盖,源码依据为 src/emc/rs274ngc/interp_convert.cc convert_arc()。 测试:./test-native.sh 通过;./test-linuxcnc-source-link.sh 通过。
This commit is contained in:
@@ -495,10 +495,11 @@ for case in "${threading_check_error_cases[@]}"; do
|
||||
grep -Fq "$expected" "$output_dir/cnc_sim_linuxcnc_$fixture.err"
|
||||
done
|
||||
# Source basis: LinuxCNC src/emc/rs274ngc/interp_convert.cc
|
||||
# convert_straight() and convert_threading_cycle() reject invalid
|
||||
# convert_arc(), convert_straight(), and convert_threading_cycle() reject invalid
|
||||
# feed/spindle state, spindle selectors, rotary-axis motion, and G76 I/J/K
|
||||
# geometry before issuing straight or synchronized threading motion.
|
||||
# geometry before issuing arc, straight, or synchronized threading motion.
|
||||
threading_convert_error_cases=(
|
||||
"linuxcnc_arc_inverse_time_missing_f_error|F word missing with inverse time arc move"
|
||||
"linuxcnc_g1_zero_feed_error|Cannot do g1 with zero feed rate"
|
||||
"linuxcnc_g1_inverse_time_missing_f_error|F word missing with inverse time g1 move"
|
||||
"linuxcnc_g33_stopped_spindle_error|Spindle not turning in G33"
|
||||
|
||||
@@ -1079,10 +1079,11 @@ for case in "${threading_check_error_cases[@]}"; do
|
||||
grep -Fq "$expected" "$output_dir/cnc_sim_linuxcnc_source_$fixture.err"
|
||||
done
|
||||
# Source basis: LinuxCNC src/emc/rs274ngc/interp_convert.cc
|
||||
# convert_straight() and convert_threading_cycle() reject invalid
|
||||
# convert_arc(), convert_straight(), and convert_threading_cycle() reject invalid
|
||||
# feed/spindle state, spindle selectors, rotary-axis motion, and G76 I/J/K
|
||||
# geometry before issuing straight or synchronized threading motion.
|
||||
# geometry before issuing arc, straight, or synchronized threading motion.
|
||||
threading_convert_error_cases=(
|
||||
"linuxcnc_arc_inverse_time_missing_f_error|F word missing with inverse time arc move"
|
||||
"linuxcnc_g1_zero_feed_error|Cannot do g1 with zero feed rate"
|
||||
"linuxcnc_g1_inverse_time_missing_f_error|F word missing with inverse time g1 move"
|
||||
"linuxcnc_g33_stopped_spindle_error|Spindle not turning in G33"
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
G21 G90 G17
|
||||
G0 X0 Y0
|
||||
G93
|
||||
G2 X1 Y0 R0.5
|
||||
Reference in New Issue
Block a user