Don't show the Compass app on hardware (ie G1s) that can't support it

This commit is contained in:
James Babcock committed 2026-11-06 15:13:46 -08:00
1 parent 38c52ebc31
commit 0cc263c5d2
16 files changed
+202 -49

No files matched your search

+9
View File
@@ -396,6 +396,15 @@ export const glassesTypeSetting = new ConfigSettingEnum<GlassesType>({
reportInAnalytics: false,
});
/**
* Whether the paired glasses can report a heading. A G1 has an accelerometer
* and a gyroscope but no magnetometer; the RayNeo iO's firmware has no compass
* messages.
*/
export function glassesHaveCompass(): boolean {
return glassesTypeSetting.get() === "g2";
}
const APP_SWITCHER_POSITION_LABELS: Record<AppSwitcherPosition, string> = {
left: "Left",
right: "Right",