fix(physics): use predicted magnetic gate bounds
Correct the readable 1000:9b69 reconstruction to read DGROUP 07db/07df and name the helper for its predicted-position role. Rust magnetic rectangles now enter only from an old position inside the record and deactivate when the recomputed prediction exits any edge, replacing the prior swept approximation. Test Plan: - bash original/tools/test_reconstructed_c.sh - python3 original/tools/audit_reconstruction.py --require-complete - cargo test --all-targets - cargo clippy --all-targets --all-features -- -D warnings - rumdl check original/C_RECONSTRUCTION_FINAL_AUDIT.md tdkpin-rs/CHANGELOG.md tdkpin-rs/RECONSTRUCTION.md tdkpin-rs/README.md - git diff --check
This commit is contained in:
@@ -661,8 +661,8 @@ uint16_t tdkpin_receiver_point_in_bounds(
|
||||
x, y, maximum_y, maximum_x, minimum_y, minimum_x);
|
||||
}
|
||||
|
||||
/* 1000:9b69 -- same inclusive rectangle test for the global ball position. */
|
||||
uint16_t tdkpin_ball_in_bounds(
|
||||
/* 1000:9b69 -- test the predicted 1028:07db/07df position against bounds. */
|
||||
uint16_t tdkpin_predicted_ball_in_bounds(
|
||||
uint16_t ignored_static_link,
|
||||
int32_t maximum_y,
|
||||
int32_t maximum_x,
|
||||
@@ -671,8 +671,8 @@ uint16_t tdkpin_ball_in_bounds(
|
||||
{
|
||||
(void)ignored_static_link;
|
||||
return point_in_bounds_with_residue(
|
||||
g_ball_x_milli,
|
||||
g_ball_y_milli,
|
||||
(int32_t)win16_read_u32(win16_dgroup_pointer(0x07db)),
|
||||
(int32_t)win16_read_u32(win16_dgroup_pointer(0x07df)),
|
||||
maximum_y,
|
||||
maximum_x,
|
||||
minimum_y,
|
||||
|
||||
Reference in New Issue
Block a user