Select to expand quote
Dylan72 said...
I see what you are getting at. I wanted to do something as idiot-proof as possible, and that means having no options, if possible, on the calculations. So I would want to know that a one-per-run rule would have to apply to everyone or no-one, and which divisions to apply it to.
This will only apply to the divisions that use more than one run... which is only the 5x10 value

I agree with making it have no configuration options -- you upload your file, you get your numbers, end of story. No mucking around with various options to (intentionally or not) inflate your figures.
Select to expand quote
Also, it's probably not that simple to implement. It means creating some run detection logic that is capable of coping with wind shifts and gear changes.
/****** START PSEUDOCODE ****/
$highestHeading=0;
$lowestHeading=0;
$currentRun = 0;
foreach($tenSecondValue as $currentValue)
{
if( ($currentValue["Heading"] > (lowestHeading + 90))
|| ($currentValue["Heading"] < (highestHeading - 90)) )
{
// We're on a new heading, so increment run counter and reset headings
$currentRun ++;
$highestHeading = $currentValue["Heading"];
$lowestHeading = $currentValue["Heading"];
}
if($currentValue["Heading"] > $highestHeading)
{
$highestHeading = $currentValue["Heading"];
}
if($currentValue["Heading"] < $lowestHeading)
{
$lowestHeading = $currentValue["Heading"];
}
saveCurrentTenSecondRun($currentValue, $currentRun);
}
// Now sort by currentValue, grouping by run number.
/****** END PSEUDOCODE ****/
This will probably take some tweaking, and you will have to take care of the case when the heading in degrees wraps around the 359 / 0 degree mark, but you get the idea.
Select to expand quote
No Garmin support at present, though the core engine just works with points, and doesn't care if they are trackpoints or doppler. I've tried hard to set it up so that it can cope with many different devices as required.
Sounds very promising.
I'm impressed with how accurate it appears so far, and I'm sure we can work out the kinks