forked from Blendman974/faceclaw
Merge shared tilt-down hide and angle measurement
# Conflicts: # app/g2/dashboard-controller.ts # app/g2/ios-preview-controller.ts
This commit is contained in:
23 files changed
+370
-26
No files matched your search
+4
-2
@@ -10,16 +10,18 @@ Each feature branch starts from this main and groups related changes, without un
|
||||
| fix: align the llama native library for Android 16 KiB pages | `fix/android-16k-pages` | [#2](https://git.undefined-dev.fr/Blendman974/faceclaw/pulls/2) | 1061 passed, 2 skipped |
|
||||
| feat: configurable notification defaults and bulk actions | `feat/notifications` | [#3](https://git.undefined-dev.fr/Blendman974/faceclaw/pulls/3) | 1067 passed, 2 skipped |
|
||||
| feat: share Android calendar selection across calendar readers | `feat/calendar-selection` | [#4](https://git.undefined-dev.fr/Blendman974/faceclaw/pulls/4) | 1065 passed, 2 skipped |
|
||||
| feat: configure head-up wake and wake angle | `feat/head-up-wake` | [#5](https://git.undefined-dev.fr/Blendman974/faceclaw/pulls/5) | 1063 passed, 2 skipped |
|
||||
| feat: shared head-up/down controls and experimental angle measurement | `feat/head-up-wake` | [#5](https://git.undefined-dev.fr/Blendman974/faceclaw/pulls/5) | 1070 passed, 2 skipped |
|
||||
| feat: system menu controls for app closing, full screen and keep awake | `feat/app-controls` | [#6](https://git.undefined-dev.fr/Blendman974/faceclaw/pulls/6) | 1076 passed, 2 skipped |
|
||||
| feat: language selection for OpenAI and on-device Whisper | `feat/whisper-languages` | [#7](https://git.undefined-dev.fr/Blendman974/faceclaw/pulls/7) | 1067 passed, 2 skipped |
|
||||
| feat: configurable app and system menu hold gestures | `feat/menu-gesture-preference` | [#8](https://git.undefined-dev.fr/Blendman974/faceclaw/pulls/8) | 1072 passed, 2 skipped |
|
||||
|
||||
| feat: editable launcher folders, icon layout and open-window order | `feat/launcher-layout` | [#9](https://git.undefined-dev.fr/Blendman974/faceclaw/pulls/9) | 1080 passed, 2 skipped |
|
||||
|
||||
| fix: silent-mode feedback and prompt exit-state refresh | `fix/silent-mode-feedback` | [#10](https://git.undefined-dev.fr/Blendman974/faceclaw/pulls/10) | 1065 passed, 2 skipped |
|
||||
|
||||
All independent branches also passed `tsc --noEmit`. The head-up branch received a final import-only cleanup and was typechecked/linted again.
|
||||
|
||||
`build/all-features` merges the nine feature branches and retains the combined validation records. It is the branch for APK builds, not a feature PR. Develop a change on its feature branch, then merge it into the build branch; do not merge the build branch back into a feature branch.
|
||||
`build/all-features` merges the ten feature branches and retains the combined validation records. It is the branch for APK builds, not a feature PR. Develop a change on its feature branch, then merge it into the build branch; do not merge the build branch back into a feature branch.
|
||||
|
||||
## Cleanup archive
|
||||
|
||||
|
||||
@@ -51,3 +51,23 @@ On the target glasses, record both lens firmware versions and test:
|
||||
6. Check both lenses remain synchronized, including reconnecting only one arm.
|
||||
|
||||
Do not change firmware to run these checks without explicit permission.
|
||||
|
||||
## Shared tilt-down hide and current-angle estimate
|
||||
|
||||
Inspired by [Faceclaw PR #64](https://github.com/jimrandomh/faceclaw/pull/64), Display settings now include one Tilt down to hide toggle (off by default), used by both the regular glasses UI and Glanceboard. HEAD_DOWN is forwarded by the existing firmware (event 15, Faceclaw/38), consumed before input filtering/activity tracking, and never wakes the screen. With the option enabled it dismisses Glanceboard and sleeps the regular UI, including after a manual wake. The action is an explicit sleep gesture, like manually turning the display off. With the option disabled, it is ignored, preserving prior behavior.
|
||||
|
||||
A Glanceboard shown by head-up uses a 60-second safety limit when Tilt down to hide is enabled; otherwise the existing tap timeout is retained. Show on head tilt still selects what appears on wake. There are no separate Glanceboard angle/hide preferences. iOS consumes the shared HEAD_DOWN event so it cannot become spurious input; current-angle measurement remains Android-only.
|
||||
|
||||
Set to current head angle performs a short experimental IMU measurement, then stores the result in the existing shared Head-up angle preference. It reads the glasses' restored calibration (settings request field 9) and subtracts it before saving the raw firmware angle. Existing raw-angle preferences and untouched fields keep their original meaning. A temporary native IMU lease restores the latest application request, including changes made during measurement. Sampling uses one temple only; ring readings, non-finite/zero vectors, unstable samples and unsupported offsets are rejected. Failures leave the saved angle unchanged. Existing synchronization sends the result to both lenses and restores it on reconnect.
|
||||
|
||||
Important measurement limitation: PR #64's dominant-axis inclination estimate is approximate, includes side tilt, and cannot disambiguate a dominant-axis swap beyond 45 degrees. The menu explicitly marks it experimental and asks for a moderate angle below 45 degrees with the head level sideways. It does not claim hardware-calibrated pitch; the manual 0–60 degree control remains available. Firmware calibration is not rewritten. Do not rely on software tests alone for physical angle accuracy.
|
||||
|
||||
Additional software coverage: shared preference persistence; controller routing with the display awake/asleep and the option on/off; Glanceboard safety timeout; measurement success/failure, concurrent calls, missing/moving sensors, ring exclusion and cleanup; calibration protocol zero/signed/missing fields; native IMU lease restoration; native HEAD_DOWN forwarding without user activity.
|
||||
|
||||
Extended independent validation: 1070 JavaScript tests passed, 2 skipped; 272 Kotlin Android host tests passed; TypeScript and changed-source lint passed. Physical wake, hide and angle accuracy remain unverified on glasses.
|
||||
|
||||
Combined validation: 1135 JavaScript tests passed, 2 skipped; all 276 Kotlin Android host tests passed. TypeScript and changed-source lint passed. Hardware validation remains pending.
|
||||
|
||||
HEAD_DOWN delivery still depends on the glasses’ firmware head-up switch: enable Head-up wake when using Tilt down to hide. Enabling hide does not silently override an explicit head-up OFF preference.
|
||||
|
||||
The combined Android release APK builds successfully; signature, non-debug manifest, ELF 16 KiB alignment and ZIP alignment checks passed. It was not installed during this task.
|
||||
@@ -7,3 +7,7 @@ Silent-off firmware pushes are not reliable. The existing fallback read used the
|
||||
Independent JavaScript suite: 1065 passed, 2 skipped. TypeScript and changed-source lint passed. Controller tests cover enabled/disabled notices, duplicates, timer cancellation, disconnect and sleeping/locked displays. A Kotlin session test checks the two-second silent cadence, normal cadence and shutdown guard. Kotlin compilation and hardware checks are tracked with the combined integration validation.
|
||||
|
||||
Hardware validation remains pending: both transitions via the temple gesture, missing exit push, phone background/foreground, lenses that are awake/asleep/locked, reconnect and charging. No firmware was flashed.
|
||||
|
||||
Combined validation: 1135 JavaScript tests passed, 2 skipped; all 276 Kotlin Android host tests passed. TypeScript and changed-source lint passed. Hardware validation remains pending.
|
||||
|
||||
The combined Android release APK builds successfully; signature, non-debug manifest, ELF 16 KiB alignment and ZIP alignment checks passed. It was not installed during this task.
|
||||
Reference in new issue
Block a user