Repository navigation
Commit 22304be
feat(saic): read the current guidance instead of waiting for a change
The five callbacks registered on the adapter are change notifications. A car
standing still with a guidance already running publishes nothing, because
nothing changed — so the first vehicle capture could not tell "the adapter
says nothing" from "nothing happened to say", which is exactly the question
CP-040 turns on.
IGeneralService answers getGuideStatus, getRemainingTimes,
getRemainingDistance and getRoadName synchronously, on the binder this
already binds. SaicNav's note that the head unit offers no synchronous read
of remaining distance was read off IMapService; the general service does
answer.
readNow reports the current trip and keeps whatever the listener has already
seen where a getter answers nothing. A distance or time of zero reads as
unknown: the service initialises both to zero and answers zero before any
guidance has run, and a remaining distance of exactly zero is not a case any
forecast needs.
Transaction codes from saicadapterservice_overseas_eh32; the census still
guards against an R67 shift.
Refs: CP-040
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 26b3d45 commit 22304be
2 files changed
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
9 | 21 | | |
10 | 22 | | |
11 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
| |||
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
84 | 123 | | |
85 | 124 | | |
86 | 125 | | |
| |||
0 commit comments