boons605 / MotoGymkhanaRaceTiming

3 stars 2 forks source link

Data from timer received twice #89

Closed boons605 closed 8 months ago

boons605 commented 8 months ago

Weird issue with timestamps being 'received' twice with the same data, one immediately after matching time and rider

  1. Clear rider for start
  2. Trigger gate to Start rider
  3. Trigger gate to stop rider
  4. Confirm finish time

` 2024-02-17 19:30:41,614 [4] INFO RaceManagement.RaceManager [(null)] - Rider Claud van Gessel can start 2024-02-17 19:30:41,706 [12] INFO WebAPI.Controllers.RaceTrackingController [(null)] - addin rider Richard van Schouwenburg, 6522e607-0eee-4e8f-9ea7-898007ad4eb0 2024-02-17 19:30:48,438 [6] INFO Communication.AbstractCommunicatingUnit [(null)] - Got timestamp for timer: Command type 101; Data length: 5 CRC: 17534 Data: 30-01-57-BA-01

2024-02-17 19:30:48,460 [7] INFO Communication.AbstractCommunicatingUnit [(null)] - Triggering timing event for timerUnit 2024-02-17 19:30:48,461 [7] INFO Communication.AbstractCommunicatingUnit [(null)] - Triggered timing event for timerUnit 2024-02-17 19:30:48,465 [4] INFO RaceManagement.RaceTracker [(null)] - Rider f96116e7-639b-45f1-aae0-1f3d7c52fe5b is now on track with timestamp 3126264112 2024-02-17 19:30:48,472 [4] INFO RaceManagement.RaceManager [(null)] - Start box is empty 2024-02-17 19:30:53,786 [6] INFO Communication.AbstractCommunicatingUnit [(null)] - Got timestamp for timer: Command type 101; Data length: 5 CRC: 59881 Data: 4C-B1-A8-BA-02

2024-02-17 19:30:53,803 [7] INFO Communication.AbstractCommunicatingUnit [(null)] - Triggering timing event for timerUnit 2024-02-17 19:30:53,804 [7] INFO Communication.AbstractCommunicatingUnit [(null)] - Triggered timing event for timerUnit 2024-02-17 19:31:06,861 [4] INFO RaceManagement.RaceManager [(null)] - Rider Claud van Gessel finished with a lap time of 5353500 microseconds 2024-02-17 19:31:06,893 [6] INFO Communication.AbstractCommunicatingUnit [(null)] - Got timestamp for timer: Command type 101; Data length: 5 CRC: 59881 Data: 4C-B1-A8-BA-02

2024-02-17 19:31:06,895 [7] INFO Communication.AbstractCommunicatingUnit [(null)] - Triggering timing event for timerUnit 2024-02-17 19:31:06,896 [7] INFO Communication.AbstractCommunicatingUnit [(null)] - Triggered timing event for timerUnit 2024-02-17 19:31:06,896 [4] INFO RaceManagement.RaceTracker [(null)] - Discarding timestamp from gate 2 at 3131617612 us, no riders on track ^C ubuntu@ubuntu:~/motogymkhana$ `

boons605 commented 8 months ago

Fixed in #83