
Overview
Trackmate RC Lap Counter  Aug 2020  by Daniel Groulx
Transponders are small units installed in Radio Controlled (RC) cars.  The transponder transmit a uniqued ID via infrared.
A bridge with sensors will detect the passing RC cars.
The sensors connect to the Trackmate decoder which connect to the PC via a USB cable
This will create a virtual COM port on the PC... USB to serial driver must be installed.
-------------------------------------------------------------------------------
This software will display the race results
frmMain.ca is the main form to control the race

Structure
Winforms  Directory  
Wav Directory for the sounds
Manual.pdf file copy if newer. This is the Help file that opens when you click on help.  Click on project and paste new .pdf to update
Images Directory

The IHardware.cs interface is used by Com and Demo so I can switch between Demo mode and real mode.
This will make it very easy to support other hardware as well.

Race.cs is the heart of the program

g.cs  is the global class. I made the settings and options forms global so you can easily access all options.
The forms also autmatically remember the settings. uses settings.cs
Don't forget to make controls  modifier:public  in options forms if you want to acces it

RacerModel holds the data for each racer during the race.  access this data at g.myrace2.RaceDB
Program is event driver.  Probably no need to add more events. See events in IHardware.cs  and Race.cs
subscribe to events ex: 
public event EventHandler<string> RaceUpdatedEvent;
        public event EventHandler RaceEndEvent;
        public event EventHandler RaceWhiteFlagEvent;
        public event EventHandler RaceCheckeredFlagEvent;
        public event EventHandler StartEvent;
        public event EventHandler ResetEvent;
        public event EventHandler EveryLapEvent;


        live_data.css file
        
body {
 line-height: 70%;  
 margin-top: 0px;
 font-size: 3.2vw;
}

h1 {
color: navy;
font-size: 3.2vw;
line-height: 70%;  
margin-top: 0px;
margin-bottom: 0px;
}

