viewof timingPrecision = Inputs.range([1, 50], {
value: 10,
step: 1,
label: "GPS Timing Precision (ns):"
})
viewof gdop = Inputs.range([1.0, 3.0], {
value: 1.5,
step: 0.1,
label: "GDOP Factor:"
})
viewof uwbPrecision = Inputs.range([0.1, 2.0], {
value: 0.5,
step: 0.1,
label: "UWB Time Resolution (ns):"
})
speedOfLight = 3e8 // m/s
gpsDistanceError = speedOfLight * timingPrecision * 1e-9
gpsPositionError = gdop * gpsDistanceError
uwbDistanceError = (speedOfLight * uwbPrecision * 1e-9) / 2
html`<div style="background: #f8f9fa; padding: 15px; border-radius: 8px; border-left: 4px solid #16A085; margin-top: 15px;">
<h4 style="color: #2C3E50; margin-top: 0;">Calculated Accuracy:</h4>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px;">
<div style="background: white; padding: 12px; border-radius: 6px; border: 1px solid #ddd;">
<div style="font-size: 0.85em; color: #7F8C8D; margin-bottom: 5px;">GPS Range Error</div>
<div style="font-size: 1.3em; color: #E67E22; font-weight: bold;">${gpsDistanceError.toFixed(2)} m</div>
</div>
<div style="background: white; padding: 12px; border-radius: 6px; border: 1px solid #ddd;">
<div style="font-size: 0.85em; color: #7F8C8D; margin-bottom: 5px;">GPS Position Error</div>
<div style="font-size: 1.3em; color: #E74C3C; font-weight: bold;">${gpsPositionError.toFixed(2)} m</div>
</div>
<div style="background: white; padding: 12px; border-radius: 6px; border: 1px solid #ddd;">
<div style="font-size: 0.85em; color: #7F8C8D; margin-bottom: 5px;">UWB Distance Error</div>
<div style="font-size: 1.3em; color: #16A085; font-weight: bold;">${(uwbDistanceError * 100).toFixed(2)} cm</div>
</div>
</div>
<div style="margin-top: 12px; padding: 10px; background: #e8f5f1; border-radius: 4px; font-size: 0.9em; color: #2C3E50;">
<strong>Insight:</strong> ${timingPrecision < 5 ? "High-precision receivers (< 5ns) achieve sub-meter GPS accuracy with RTK corrections." : timingPrecision > 20 ? "Consumer GPS receivers (> 20ns) typically achieve 5-10m accuracy." : "Commercial GPS receivers (5-20ns) achieve 3-5m typical accuracy."}
</div>
</div>`Positioning Accuracy Calculator
Positioning Accuracy Calculator
animation
location-awareness
Try Change GPS Timing Precision (ns): from 10 to 20.
Observe Watch GPS Range Error and GPS Position Error with GDOP Factor: at 1.5.
Explain Explain why UWB Distance Error divides the light-speed timing calculation by 2.
Technical boundaries. GPS Position Error multiplies the light-speed timing error by GDOP. UWB Distance Error uses half the light-speed timing error.
NotePositioning Accuracy Calculator