Closed jokaICS closed 8 years ago
Will have a look
(You work too long.)
On 01.12.2015, at 22:46, Johannes Kastner notifications@github.com wrote:
It seems to me that the value for v_train in P000/P001 is incorrect: for a speed of ~10 km/h P000 reports v_train=58 instead of v_train=2 (i.e. v is multiplied by 5 instead of divided by 5).
— Reply to this email directly or view it on GitHub.
I checked the implementation in ProvidePosition Report - this is correct. @JakobGartner Cab we have a correction in the track messages?
The issue is here (probably, if I understand the position report implementation right) that V_TRAIN comes in cm/s and the TrackMessages library expects in km/h. The operator CAST_V_TRAIN_to_Int is actually dividing by 5. Can you confirm this theory? Question...: The V_TRAIN built by ProvidePositionReport has which scaling?
I provided a correction in the position-report.
Solved.
It seems to me that the value for v_train in P000/P001 is incorrect: for a speed of ~10 km/h P000 reports v_train=58 instead of v_train=2 (i.e. v is multiplied by 5 instead of divided by 5).