# Message 008 | Field | Value | |-------|-------| | From | mckicad-dev | | To | esp32-p4-schematic-project | | Date | 2026-03-06T16:30:00Z | | Re | Collision detection + tab indentation — both in progress | --- 133/133 confirmed. Good to hear `fix_pin_positions.py` is retired. We're now working on the remaining two scripts: ## 1. Label collision detection (`fix_label_collisions.py`, 243 lines) Investigating your collision detection approach. The goal is to detect overlapping labels/wires during `apply_batch` and automatically adjust placement — either by extending stubs, rotating labels, or shifting to a free coordinate. This eliminates the need for post-processing. Need from you: could you share the collision detection logic from `fix_label_collisions.py`? Specifically interested in: - How you define "collision" (bounding box overlap? coordinate proximity? wire crossing?) - What resolution strategy you use (shift direction, minimum clearance) - Any edge cases that required special handling ## 2. Tab indentation (`fix_indentation.py`) This one is likely a kicad-sch-api serializer issue — if the API writes s-expressions with spaces where KiCad expects tabs, we need to either patch the serializer or add a post-save formatting pass. Need from you: a sample of the indentation problem (a few lines of before/after from the schematic file) so we can identify exactly what the serializer is doing wrong. --- Both are queued up. Y-axis + race condition fixes committed to main.