Feedback cues
v0.64.0, changelogBetaVibration patterns per safety moment (stop sent, confirmed, unconfirmed, release, drive start and stop, new critical or high alarm) and IEC 60601-1-8-style alarm tones from Web Audio.
Install
npx shadcn add @syncrobotic/feedback Overview
Usage rules
feedback(name)for a safety moment (stop sent, confirmed, unconfirmed, release, a new critical or high alarm), nevernavigator.vibratedirectly: one pattern per moment, so the hand learns it.- Critical repeats until acknowledged; low is silent. Neither replaces the screen: iOS has no vibration and sound needs a first tap.
- The stop, the slide to release, the teleop pad, the alarm list and the island call it already; call it yourself only for a moment the kit does not see (the stop confirmed by your app).
API
What the file exports. The source is in the Source sheet above.
- haptics
- Vibration patterns in ms: on, off, on…
- tones
- Alarm tones, in the burst rhythm of IEC 60601-1-8 so they read as alarms and not as notifications: critical is a 3 + 2 burst, high a 3-pulse burst, both on one pitch.
- configureFeedback(next: Partial<typeof settings>)
- Turn touch or sound off for the whole app, e.g. from a settings screen.
- feedback(name: FeedbackName)
- Play a moment's pattern: vibration where supported, and its tone if it has one.
Types
FeedbackName
Changelog
- 0.64.02026-12-01Formatted with Prettier (class order sorted); the code is unchanged.
- 0.54.02026-11-27Titled "Feedback cues", so it no longer shares a name with the Feedback group; the code is unchanged.
- 0.53.02026-11-27Its doc opens with its description, word for word; the code is unchanged.