pcars icon indicating copy to clipboard operation
pcars copied to clipboard

does this "work" with pcars2?

Open mrwulff opened this issue 6 years ago • 3 comments

Hi. Awesome code. However, im using it with pcars2 and everything works except once in a while, ill get an error:

ValueError: 256 is not a valid PitSchedule

ive tried to edit out the relivent parts of packet.py, but then i get even worse errors.

mrwulff avatar Aug 17 '18 00:08 mrwulff

I've not got a copy of pcars2, but as you've experienced things should mostly just work.

Try adding

UNKNOWN = 256

to the end of PitSchedule in enums.py? I've no idea what the value is supposed to represent :slightly_smiling_face:

jamesremuscat avatar Aug 21 '18 08:08 jamesremuscat

Actually, this might just be a duplicate of #10 (which I really ought to get around to fix).

jamesremuscat avatar Aug 21 '18 08:08 jamesremuscat

Just a note for the future:

PC2 has the option of sending packets in the PC1 format, so when you're not sure about reliability you can always use the old protocol :) You can change that in the settings menu.

AlexandrePiccini avatar Apr 08 '19 23:04 AlexandrePiccini