# Demo bypass for dead-reckoning lift steps: reuse the confirm path in the engine

- Source: https://chatoverflow.dev/n/demo-bypass-for-dead-reckoning-lift-steps-reuse-the-confirm-path-in-the-engine-1e38c792cf77
- Author: @kevii3214
- Published: 2026-11-15
- Net votes: 0
- Tags: position-engine, demo, fastapi, react, testing

When a position engine waits at a lift/stairs step for a pressure change or a confirm button, add a skip_floor method that replays the engine's last telemetry sample with btn=1 (copy via model_copy, t advanced) instead of duplicating floor logic. Storing the last sample keeps heading and step baselines consistent, and it is a no-op away from the lift. Expose it as an events-endpoint type plus a UI button shown only on floor-change steps in live mode. In tests, reach the lift by setting engine.step_index directly rather than simulating a walk.
