You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2b394eb
Browse filesBrowse the repository at this point in the historyBrowse files
fix(glass): the probe reads the ignition on the scale it answers on
Two faults, one feature. The probe refused every run with "ignition not in
RUN" on a car whose ignition was on: it compared getCurrentIgnitionState(),
which answers on the AAOS IgnitionState scale, against CarIgnitionItem.RUN.
The scales do not line up — RUN is 2 for Katman5, where 2 is OFF — so contact
mis read as 4 and was refused, while contact coupe read as 2 and was let
through. setEsc compared the same two scales; it now refuses only a known
non-RUN ignition, which is what its own documentation always claimed.
Under that, the window actions could not have worked anyway. They wrote
through the vendor hub's setDriveWindow, a setter no application on the head
unit calls, whose eight accepted values nothing explains and whose dropped
writes are indistinguishable from obeyed ones.
VsmGlass reaches the same glass through the VSM already bound for ADAS,
where the commands are established rather than guessed: STOP, UP and AUTO_UP.
UP is a switch held down and not an order — the glass travels only while the
command keeps arriving — which is why a single write looked exactly like a
command that does nothing, and why hold() re-sends it before releasing it.
Reads answer 0-255 rather than the hub's 0-100, and a motor with no position
sensor answers off that scale and is reported as no reading rather than as a
closed window.
SaicVehicleControl now prefers the VSM for every glass read and write and
keeps the hub as the fallback where the methods are absent. GlassProbe holds
each command down instead of writing it once, which is the only way a
momentary command shows up in a position read at all.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments