Commit Graph

898 Commits

Author SHA1 Message Date
Sean Rhea
0fd735e16d fix maps crash when no CP is set
The check in the maps code for whether a CP is set was backwards, causing
a segfault on the subsequent call to Zones::getCP().  To reproduce, create
a new cyclist and import a ride with lat/lng data.  The import succeeds, but
GC crashes when you click "Save" and on all subsequent restarts.
2010-03-07 08:24:20 -05:00
Andy Froncioni
a02bfaf810 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.
2010-03-06 13:11:36 -05:00
Damien GRAUSER
afdc862cc2 add ride plot stacked view 2010-03-06 11:47:55 -05:00
Sean Rhea
19223e51b3 add an xml pretty-printer
This makes it a lot easier to see what's going on in a TCX file.
2010-03-03 10:54:30 -05:00
Sean Rhea
37a17f11f8 remove eol space 2010-03-03 09:32:43 -05:00
Sean Rhea
19aff56946 always build with maps support 2010-03-03 09:32:43 -05:00
Sean Rhea
378b6f3537 fix up tabs 2010-03-03 09:32:43 -05:00
Greg Lonnon
268afe536c untabify the GoogleMapsControl files 2010-03-03 09:32:43 -05:00
Greg Lonnon
04b698f255 fixed the zone == -1 defect 2010-03-03 09:32:43 -05:00
Greg Lonnon
f97bc9c152 fixed the bounds box and the zoom to center correctly 2010-03-03 09:32:43 -05:00
Greg Lonnon
a392b33b51 added resizeEvent back in, fixed a few variable names to be more standard and added some of Mark L's suggestions. 2010-03-03 09:32:43 -05:00
Mark Liversedge
81a43b5314 added Mark's fixes 2010-03-03 09:32:43 -05:00
Greg Lonnon
c2f3476569 added googlemaps, took a couple of suggestions from Julian on map defaults. 2010-03-03 09:32:43 -05:00
Justin Knotzke
d4edc12dc6 New Logo and Icons by Dan Schmalz 2010-03-02 20:48:25 -05:00
Sean Rhea
b68e55beca better axis labels in PM plot 2010-03-02 09:45:21 -05:00
Mark Liversedge
bc85a3b5fe Change WKO+ version error to warning
The WKO+ file format version is changing version numbers
at a fairly accelerated pace, but the general structure of
the files are still readable by the WkoRideFile reader.

This patch issues a warning rather than an error on new
files. Recent v29, v30 and v31 of the WKO+ file format have
all been parsed successfully.

fixes #47
2010-02-28 08:13:01 -08:00
Mark Liversedge
fda33927d4 Typo in Save Dialog
The dialog message spelt change as chage. This patch fixes that typo.

fixes #45
2010-02-28 08:11:08 -08:00
Mark Liversedge
7bb9cf5462 Long Term Metrics
A user configurable chart for showing ride metrics and
other calculated values over time.

* Uses SQLITE database to store metrics
* Supports any metric available from the metric factory
* Adds new MaxHr, VI, Peak Power and Time In Zone metric
* Also includes LTS/STS/SB for PM charting
* Aggregates in days, weeks, months or years
* Reads and Updates seasons.xml
* Adds cycles and adhoc date ranges in seasons.xml
* Date ranges can be selected on the plot with shift-left click
* Allows users to customise preferences for color, symbols et al
* Allows user to customise metric names and unit names
* Supports smooth curves and topN highlighting
* Has a linear regress trend line function
* Allows users to save charts to charts.xml
* A default charts.xml is built-in
* A chart manager to import/export/rename/delete charts etc
* Provides a tooltip to provide basic datapoint information
* Performance Manager adjusted to use the MetricDB
* User configurable setting for SB calculation (today/tomorrow)
2010-02-25 08:01:43 -08:00
Greg Lonnon
cef5cca454 returned error for encrypted files
Also fix compiler warning.
2010-02-24 08:47:38 -08:00
Thomas Weichmann
77eccc7797 fix min window width problem caused by fixed width sliders in aerolab 2010-02-20 16:18:32 -08:00
Dag Gruneau
e3ac6c799c quarqd - cadence, wheel rotation, error checking
Fixed a number of issues with data from quarqd inf and nan values where
inserted as valid data points and thus destoying all plotting in the
realtime window and in later analysis.

The unit was used to distinguish between the entities, thus rpm was
erroneously used as a cadence, rpm is used as the unit for wheel
rotation and for cadence.  This made the cadence useless together with a
PowerTap hub which reports both cadence and wheel rotation.

No error checking was performed on the received data, bad data is
ignored now.
2010-02-12 06:07:30 -08:00
Andy Froncioni
906900fb19 iBike test rides for use with Aerolab 2010-02-12 05:36:44 -08:00
Sean Rhea
4145282415 remove unused settings ptr 2010-02-12 05:27:40 -08:00
Sean Rhea
3eb5243a28 remove eol spaces -- no functional change 2010-02-12 05:23:55 -08:00
Andy Froncioni
885629a2f5 Adds Aerolab tab
This patch adds Aerolab, a virtual elevation module.  A
new tab is added in which the user can perform virtual
elevation analysis.  This version is a manual Aerolab,
where user can use the following sliders to elevation-match
to a known elevation profile:
Crr  -coefficient of rolling resistance
CdA  -aero coefficient of drag * frontal area
Eta  -drivetrain efficiency (to be used when using a crank-
      or bottom-brack-based power meter)
Mass -total mass of bike + rider
Rho  -density of air
E_offset -an elevation offset to align elevations
2010-02-12 05:19:59 -08:00
Andy Froncioni
07a393fb64 Adds DFPM functionality to iAero
Uses the iAero native "guesstimate" power value until a
non-zero dfpm value is seen.  From then on, uses dfpm as "watts".
2010-02-08 06:49:01 -08:00
Sean Rhea
da28b43d40 remember chosen histogram bin width across restarts 2010-02-07 09:41:52 -08:00
Sean Rhea
4f9850bd9d shorten tab titles
Making room for the long-term metrics tab.
2010-02-07 09:26:44 -08:00
Sean Rhea
f930c6f272 remember chosen PM metric across restarts 2010-02-07 09:13:04 -08:00
Sean Rhea
fae1ea3f92 fix linux file names for 1.3.0 2010-02-07 09:13:03 -08:00
Sean Rhea
4b615a6cda update contrib and download pages for 1.3 2010-02-06 11:38:57 -08:00
Sean Rhea
b491867386 release notes for GC 1.3 2010-02-06 11:38:57 -08:00
Sean Rhea
f323780848 fix FTDI required for SRM download bug
GC supports two download port types: serial ports and D2XX.  Before, if
either of these failed to load, the download dialog wouldn't show either
port type.  With this patch, if both fail, GC displays a warning, but if
either one succeeds, GC will proceed with only that port type.  This
change should fix the problem that users were having to download and
install both the FTDI drivers and the PL2303 ones in order to download
from the SRM PCV.
2010-02-06 11:38:57 -08:00
Robert Carlsen
9147369c41 Added sanity checking to ignore missing metrics
There is a possibility that ride metrics may become unavailable yet
remain requested by QSettings (stored in
~/Library/Preferences/org.goldencheetah.GoldenCheetah.plist on OS X).

This patch ignores any metrics listed in the preferences yet are not
supported by the running version of Golden Cheetah.
2010-02-06 11:38:57 -08:00
Sean Rhea
5cd621f800 add Erase Ride(s) button to download dialog
This is a workaround for the SRM erase bug.  It gives the user a way to
try erasing the device's memory without re-downloading a ride.
2010-02-06 11:38:56 -08:00
Sean Rhea
1f548d0b84 regenerate stress cache after config change
fixes #32
2010-02-04 05:10:57 -08:00
Sean Rhea
16bc8c2686 don't check dependencies until newMetric is called
Before, we checked them during addMetric, and that left us vulnerable
link-order errors.  With this patch, we wait until someone actually asks
for an instance of a metric, and then we check all metrics' dependencies.
That way, since the Ride Summary always creates at least one metric, we'll
still check the dependencies of them all.  We just do it a little later in
the program's execution than before.
2010-02-04 05:08:49 -08:00
Mark Liversedge
fbd5238e4e Frame PvPf Plot
When working with smaller intervals it is difficult to see the
highlighted points when all the points are shown in black. This
patch adds a 'Frame Intervals' checkbox to enable the user to
turn off all the points when looking at specific intervals.

If no intervals are selected then this setting has no net effect.
All datapoints are shown.
2010-02-01 08:01:02 -08:00
Sean Rhea
67919e4d21 add Daniels Equivalent Power metric 2010-01-26 08:31:05 -08:00
Sean Rhea
76a8d94384 stop coddling 705's firmware
In other words, we're no longer going to support files from broken 705
firmware in GC.  However, GC 1.2 contains the check, so people with bad
files can open them in 1.2, export to CSV, and then import into a more
recent build.

Alternatively, if someone comes up with a good way to distinguish files that
need this check from those that don't, I'd be happy to use that.
2010-01-25 20:21:54 -08:00
Robert Carlsen
19e023928b Updated doc/Makefile for new content.
Added cyclist-info.png to the install directive.
Edited the rsync path to reflect the absolute rather than relative path
to the www root for the goldencheetah website.
2010-01-24 13:22:34 -05:00
Jamie Kimberley
0f0ee9e36e Update power.zones info in users guide
Updated web documentation to describe the three methods that we have in
place to set the CP value in the power.zones files.
2010-01-24 13:17:22 -05:00
Mark Liversedge
391fc7b9c9 True Interval Patch, second part
The best interval dialog rounded intervals to the nearest second
due to a casting of a double to int. This was introduced by Mark L
during the intervals code patch and is an error.

All the plots have now been adjusted to correctly determine if a ride
point is within an interval. Related cropping and binning issues in
3d plot an Histogram plot have also been corrected.

fixes #15
2010-01-20 08:28:42 -08:00
Sean Rhea
dbb8429665 fix BestIntervalDialog
The small test file doesn't catch this bug, but just about
any real file does.  Grrr.
2010-01-19 10:55:54 -08:00
Sean Rhea
d9e9fe1d22 fix fencepost errors in Ride->Find Power Peaks
Also removes nasty cut-and-paste from BestIntervalsDialog.

Tested successfully on test/rides/2010_01_13_*.gc.
2010-01-18 11:56:35 -08:00
Sean Rhea
e2deb1fc99 extract core functionality into static function
...so that we can use BestIntervalDialog::findBests elsewhere in the code.
2010-01-18 11:54:42 -08:00
Sean Rhea
16f3032b3f fix fencepost errors in BestIntervalDialog
This is almost a complete rewrite of the functional part of the dialog.
I've tested it on both test files (2010_01_13_*.gc in test/rides).
Thanks to Mark L for pointing out a number of the problems.
2010-01-18 11:34:01 -08:00
Sean Rhea
075829500f remove eol spaces -- no functional change 2010-01-18 11:32:07 -08:00
Sean Rhea
3dab200560 test file for finding interval fencepost errors with recInt=1.0 2010-01-18 11:32:07 -08:00
Mark Liversedge
0be592cab5 test file for finding interval fencepost errors with recInt=1.26 2010-01-18 11:31:57 -08:00