Add a compass using the G2's magnetometer

This commit is contained in:
James Babcock committed 2026-08-04 02:09:32 -07:00
1 parent 4022f06d49
commit 852626e950
10 files changed
+424 -23

No files matched your search

+2
View File
@@ -68,6 +68,8 @@ export const ICON_SVGS = {
'<svg viewBox="0 0 24 24" fill="none"><path d="M12 19v3"/><path d="M19 10v2a7 7 0 0 1-14 0v-2"/><rect x="9" y="2" width="6" height="13" rx="3"/></svg>',
map:
'<svg viewBox="0 0 24 24" fill="none"><path d="M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z"/><path d="M15 5.764v15"/><path d="M9 3.236v15"/></svg>',
compass:
'<svg viewBox="0 0 24 24" fill="none"><circle cx="12" cy="12" r="10"/><path d="m16.24 7.76-2.12 6.36-6.36 2.12 2.12-6.36z"/></svg>',
// The Roam Research logo, potrace-traced from the official PNG (no
// fill="none", so the renderer fills it; hole contours wind opposite).
roam: