Repository navigation
Commit 7297699
fix(charger-control): judge each car on its own dispatch sensor under an Ohme claim
Since #5443 the Octopus component keeps wiring its whole dispatch-sensor list
into octopus_intelligent_slot while Ohme holds car_slot_owner (the claim now
covers only the ready time and charge limit). The car_slot_owner shortcut in
charger_control_octopus_drives_charger()/_drives_car() predates that and
applied to every car, so with an Ohme on car 0 and a second car whose
Intelligent device is the car itself, a Zappi or GE EVC on car 1 was left to
Octopus: follows_car ignored, and a held charger handed over stopped.
The sensor's own is_charger now decides; the claim only stands in when the
sensor does not say (the Ohme's own slot sensor). drives_car no longer reads
an "unknown" is_charger as "the car". Regression test fails on the merge
without this change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 61b4947 commit 7297699
3 files changed
Lines changed: 54 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
197 | 211 | | |
198 | 212 | | |
199 | | - | |
200 | 213 | | |
201 | 214 | | |
202 | | - | |
203 | 215 | | |
204 | 216 | | |
205 | 217 | | |
| |||
214 | 226 | | |
215 | 227 | | |
216 | 228 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
221 | 232 | | |
222 | 233 | | |
223 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
774 | 805 | | |
775 | 806 | | |
776 | 807 | | |
| |||
931 | 962 | | |
932 | 963 | | |
933 | 964 | | |
| 965 | + | |
934 | 966 | | |
935 | 967 | | |
936 | 968 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
594 | | - | |
| 594 | + | |
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
| |||
0 commit comments