ΔN: ${delta.northing.toFixed(4)}m
ΔE: ${delta.easting.toFixed(4)}m
ΔZ: ${delta.elevation.toFixed(4)}m
${withinTolerance ? 'Within Tolerance' : 'Exceeds Tolerance'}
`; document.body.appendChild(resultDisplay); setTimeout(() => resultDisplay.remove(), 5000); } // Event Listeners document.querySelector('button:has(.fa-circle-check)').addEventListener('click', handleInstrumentInitialization); document.querySelector('button:has(.fa-crosshairs)').addEventListener('click', handleStakePoint); document.querySelector('button:has(.fa-check-double)').addEventListener('click', checkMeasurement); // Resize handler window.addEventListener('resize', () => { camera.aspect = canvas.clientWidth / canvas.clientHeight; camera.updateProjectionMatrix(); renderer.setSize(canvas.clientWidth, canvas.clientHeight); }); // Update display with real-time data function updateRealTimeData() { // Update precision displays const horizontalPrecision = `±${projectState.instrument.height * 0.001}m`; const verticalPrecision = `±${projectState.instrument.height * 0.0015}m`; document.querySelector('[data-precision="horizontal"]').textContent = horizontalPrecision; document.querySelector('[data-precision="vertical"]').textContent = verticalPrecision; if (projectState.instrument.pdop) { document.querySelector('[data-value="pdop"]').textContent = projectState.instrument.pdop.toFixed(1); } if (projectState.instrument.satellites) { document.querySelector('[data-value="satellites"]').textContent = projectState.instrument.satellites; } } -->