Commit Graph

23 Commits

Author SHA1 Message Date
Damien
f41792e84f CpPlotCurve: Improve HeatByDate 2014-03-21 15:43:03 +01:00
Rainer Clasen
6aefb960d0 Tcx: fix speed in summary information
When exporting files to Tcx, it's writing an ActivityExtension to the end
of the file with calculated AvgSpeed and MaxSpeed. Unfortunatly it's using
the km/h values - while Tcx is using m/sec. Schema is a bit unclear about
this, as the ActivityExtension uses "double" as type for both values, but
original Tcx v2 Schema only uses m/sec, GTC exports as m/sec and some
other software is expecting m/sec, aswell.
2013-08-15 20:58:59 +02:00
Mark Liversedge
0fcbbe1b77 Refactor MainWindow Part 2 of 5
Decoupled classes from MainWindow to reference Context
and Athlete (and introduced a couple of new headers).

We no longer pass around a MainWindow pointer to children
but pass a context instead.

There are still a few pieces left in MainWindow that need
to move to a better place;
    * Setting/clearing filter selection
    * Working with Intervals
    * Adding/Deleting Rides
    * Save on Exit

As mentioned previously there are lots of other parts to
this refactor left to do;
    * break MainWindow Gui elements into Toolbar and Views

    * migrate from RideItem and Ridelist to ActivityCollection
      and Activity classes that are not tied into gui elements.

    * introduce Application Context and AthleteCollection
2013-07-11 14:02:02 +01:00
Mark Liversedge
c56c5a9567 MainWindow Refactor Part 1 of 5
Breaking the MainWindow 'god object' into
separate classes for Athlete and Context.

Further updates will need to;
- break MainWindow Gui elements into Toolbar and Views

- migrate from RideItem and Ridelist to ActivityCollection
  and Activity classes that are not tied into gui elements.

- introduce Application Context and AthleteCollection

Once these are done we will be in a position to decouple
most classes from mainwindow and also introduce tabbed
athletes.
2013-07-07 15:50:28 +01:00
Damien
fa3d1f423f Strava upload : send selected channels only in TCX mode 2013-03-23 17:54:07 +01:00
Damien
b8b32a568f Strava upload: Use TCX format to handle stationary trainer ride 2013-03-04 23:26:13 +01:00
Dean Junk
f688ec1cfa Updates for XML schema compliance.
Added tags for additional info in TCX file and a tries to use a
valid value for sport type/activity based on user defined meta
data.
2013-01-26 13:50:54 +00:00
Dean Junk
c908af5621 Enhance TCX export
Provide more data to Garmin Training Center and
also makes the export compliant  with the latest
TCX schema. It displays correctly in GTC.

As an avid runner and biker I use GTC to combine
the data from both sports for additional analysis.

I'm sure others would benefit from the additional
data in the TCX file when importing to other tools.

The following derived/computed metrics have been
added to the export:

   1. Added MaximumSpeed
   2. AverageHeartRateBPM
   3. MaximumHeartRateBPM
   4. MaxBikeCadence
   5. AvgSpeed
   6. AvgWatts
   7. MaxWatts
   8. HeartRateBPM defaults to 1* (if not present or zero value)

*Garmin training center won't display the HeartRate
charts if the tag isn't part of every TrackPoint and
greater than zero.
2013-01-18 15:50:49 +00:00
Dean Junk
482d0746dd Fix TCX Export Schema Compliance
Write a valid TCX file, that conforms to its
schema, including;
- ProductId is ProductID
- Watts must be an integer
- Language ID is required
- PartNumber has a specific format
2013-01-13 19:44:41 +00:00
Mark Liversedge
ec2b71730d Don't export HR if it is zero
Tcx XML HR must be positive, so if there is no
value (i.e. it is zero) then don't write it.

Thanks to Dean Junk for diagnosing this and
posting his findings to them mailing list.
2013-01-12 14:45:37 +00:00
Damien
dc88a1627e ISODate format for UTC date end by "Z"
fixes #419
2013-01-06 22:00:30 +01:00
Damien
3feda4f8ec ISODate format for UTC date end by "Z"
fixes #387
2012-12-17 21:49:49 +01:00
Damien
4005e27039 Add FileType to RideFile
modified:   src/Bin2RideFile.cpp
	modified:   src/BinRideFile.cpp
	modified:   src/Computrainer3dpFile.cpp
	modified:   src/CsvRideFile.cpp
	modified:   src/FitRideFile.cpp
	modified:   src/FitlogParser.cpp
	modified:   src/FitlogRideFile.cpp
	modified:   src/GcRideFile.cpp
	modified:   src/GpxRideFile.cpp
	modified:   src/ManualRideFile.cpp
	modified:   src/PolarRideFile.cpp
	modified:   src/PolarRideFile.cpp
	modified:   src/PwxRideFile.cpp
	modified:   src/QuarqRideFile.cpp
	modified:   src/RawRideFile.cpp
	modified:   src/SlfRideFile.cpp
	modified:   src/SmfRideFile.cpp
	modified:   src/SplitActivityWizard.cpp
	modified:   src/SplitRideDialog.cpp
	modified:   src/SrdRideFile.cpp
	modified:   src/SrmRideFile.cpp
	modified:   src/SyncRideFile.cpp
	modified:   src/TacxCafRideFile.cpp
	modified:   src/TcxParser.cpp
	modified:   src/TcxRideFile.cpp
	modified:   src/TxtRideFile.cpp
	modified:   src/WkoRideFile.cpp
2012-11-14 00:37:24 +01:00
Ron Alford
568c946cfb Changing TCX export to convert to UTC time 2012-10-01 07:05:12 +01:00
Mark Liversedge
c426ecce28 File Export (part 2 of 2)
Added a function for Batch Export of current
activity history. The user can select files
to export, the target directory and format to
use.

This completes the updates to improve export
functionality.

Fixes #476.
2011-10-12 18:00:58 +01:00
Mark Liversedge
047c1dd140 File Export (part 1 of 2)
The export functions in mainwindow are getting quite
cumbersome with multiple menu options.

This patch creates a single menu option "Export.." which
allows the user to select a supported format and a filename.

To support this the ridefile reader code needed to be adjusted
to allow registered readers to declare capability to write and
use a consistent (virtual) method to do so.

By modifying the base class for ride file reader we now allow
new readers to register both read and write capability.
2011-10-12 14:19:14 +01:00
Mark Liversedge
2737bb131e Fix Lat/Lon precision in TCX export 2011-08-06 00:02:32 +01:00
Mark Liversedge
a1fa22149a Support Garmin Training Center Export Files
GTC will export all rides as a single TCX file so they
can be imported en-masse into another application.

We did not support >1 rides in a single ride file. This
patch adds support for reading multiple rides (if the ride
file reader supports it).

The ride import wizard will now extract and parse files from
a GTC export.  Many thanks to Damien for writing the TCX file writer.

Fixes #371.
2011-08-05 20:53:13 +01:00
Damien
25a89ee13a Add a TCX ride exporter 2011-08-05 15:43:05 +01:00
Mark Liversedge
805e74de5a Inital V3 Branch 2010-12-30 17:35:23 +00:00
Sean Rhea
d3f8ad3a03 add descriptions to RideFile types
...and use these to get rid of the explicit list of ride file type
descriptions in the import wizard.
2009-10-31 15:00:37 -04:00
Robert Carlsen
fad7ad0d75 Identify the device type as "Garmin TCX" when reading from a tcx file. 2009-01-26 18:58:25 +00:00
Sean C. Rhea
31b2633496 everything in one directory 2008-05-12 03:28:53 +00:00