mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 08:38:45 +00:00
Added headwind to Aerolab calculation for iAero
Added a headwind data field, which is available when using an iAero head unit, to dramatically improve the calculation of Chung analysis for users of more recent iAero devices. All other data files than the iAero have the headwind term set to zero when they append a point.
This commit is contained in:
committed by
Sean Rhea
parent
afdc862cc2
commit
a02bfaf810
@@ -231,10 +231,10 @@ QStringList RideFileFactory::listRideFiles(const QDir &dir) const
|
||||
|
||||
void RideFile::appendPoint(double secs, double cad, double hr, double km,
|
||||
double kph, double nm, double watts, double alt,
|
||||
double lon, double lat, int interval)
|
||||
double lon, double lat, double headwind, int interval)
|
||||
{
|
||||
dataPoints_.append(new RideFilePoint(secs, cad, hr, km, kph,
|
||||
nm, watts, alt, lon, lat, interval));
|
||||
nm, watts, alt, lon, lat, headwind, interval));
|
||||
dataPresent.secs |= (secs != 0);
|
||||
dataPresent.cad |= (cad != 0);
|
||||
dataPresent.hr |= (hr != 0);
|
||||
@@ -245,5 +245,6 @@ void RideFile::appendPoint(double secs, double cad, double hr, double km,
|
||||
dataPresent.alt |= (alt != 0);
|
||||
dataPresent.lon |= (lon != 0);
|
||||
dataPresent.lat |= (lat != 0);
|
||||
dataPresent.headwind |= (headwind != 0);
|
||||
dataPresent.interval |= (interval != 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user