Really good points, Wes, especially the one about the pit lane being faster. What I'll most likely do with the PC part of the software is to allow users to configure each sensor to work in different modes, e.g. start/finish line, sector X, pit and so on. Then it will simply be a matter of having different options for the different types of sensors so when you save a track setup it would know how to handle the pit lane.
On your oval track it could simply cost a lap to hit the pits, but you could still keep track of which cars had been there and that would actually make it possible to force all cars through the pits a certain number of times during each race. One way of handling this would simply be to have two lap counters, one for laps and one for pit entries. A car would not be able to win until both counters were over a certain number, e.g. 50 laps and 3 pit entries.
Does that make sense?
As I think I've mentioned at some point I've never done slot car or r/c racing so I don't really know precisely what makes sense
Lasp wrote:But the visible thing, in other word, display its not important with tousends of seconds.
If you present the result within a tenth of a second, its good enaf (spelling)
I think it would have to be one hundredth of a second or better since the cars seem to be going at somewhere between 1-3m/s or faster. At those speeds a tenth of a second would be 10-30cm and while the events would still arrive chronologically in the PC end (i.e. the order of the cars would be preserved) it would still give some results where cars that were far from each other would get the same time.
Somewhere at the back of my mind lurks the idea of splitting the software into two components where one is a simple datalogger that can run on a scraped down real-time system and simply ensure that the timing is kept as precise as possible. Then the other part of the software could run on a different computer and connect to the first system and pull the race's status from it and display it in whichever way seems good. This would also make it a lot easier to e.g. make a system that displays race data on a publically available webserver.
But that's a little bit out in the future. For now I'll stick to working on something that will simply display the order of the cars, their lap count, their fastest lap time and their last lap time. It should also store all lap times, of course, and make it possible to dump the results of the race so they can be read again later on.
Would that be a decent goal for a first release of something you guys could use?
Or would you prefer to wait until I have things such as storing individual drivers, keeping track of their races and so on?