Commit Graph

34 Commits

Author SHA1 Message Date
Alejandro Martinez
b668cb4ed0 Honour Sport tag even when run specific data are present
Fixes 2367
2017-08-15 15:08:13 -03:00
Vianney BOYER
58a2e88833 GearRatio: derive value from sensors when DI2 not connected 2017-06-06 20:38:44 +02:00
Joern
b60baee616 Calculate Gear Ratio serios from XData
... if "GEARS" are available as a XData series
2017-05-20 17:48:02 +02:00
Vianney BOYER
baa53fbbd6 fix gear ratio when no power meter 2017-05-17 11:38:04 +02:00
grauser
1bf6fd9b77 FIT : Add Combined Pedal Smoothness in 'EXTRA' XDATA 2017-05-09 23:12:02 +02:00
Mark Liversedge
e0d95cc08e RideFile::openRideFile() supports .zip and .gz
.. to support importing rides on download from a
   web page, we now support files that are compressed
   using gzip or zip.

.. the file name will still need to have the correct
   file format encoded in the suffix but will be
   deflated before being passed to the readers.

.. for example files downloaded from TrainingPeaks
   via their webapp will likely end in .wko.gz.
2017-05-02 20:28:35 +01:00
Keith Reynolds
0e733f2fa6 Change gear ratio precision to hundredths.
Tooltip in ‘Ride’ view will now show hundredths due to precision selection.
Fix comparison of headers which simply used ‘contains’ rather than equals and would cause a problem if translation is in effect.
Fix rounding of gear ratio in derived series.
2017-04-01 12:02:33 -06:00
Keith Reynolds
dfea04a22f Remove unused member variables.
Fix methods to prevent hiding of virtual methods with incorrect signature.
2017-03-31 00:15:26 -06:00
Joern
dba6f6f1af Fix Static Code Check results
... incomplete class initialization
... duplicate if statements
... typos in objects names (copy&paste) (AllPlot)
... missing else (CPPlot)
... missing DELETEs for objects (only if obvious that object is not used somewhere else)
... copy&paste errors (e.g. ModelPlot)
... small floats instead of integer evaluating to 0
... potential SEGV since pointer is not checked for NULL
... misleading code formatting (hard to read) in *zones.cpp
2017-03-23 20:07:09 +01:00
Leif Warland
f095416c5c Plot R-R from Xdata 2017-02-28 14:18:58 +01:00
Leif Warland
525dd7095c Added HRV filter 2017-02-28 11:43:57 +01:00
Mark Liversedge
23031f7c8b Revert "HRV / R-R updates to RideFile and Allplot"
.. inadvertently committed alongside updates for sport tags.

.. these updates introduced a serious regression for the
   ridefile JSON format and backwards compatibility

.. reverts the following commits:
       b47cb733a2
       d432602b35
2017-01-29 13:00:19 +00:00
Leif Warland
b7151e3d10 Added reading of R-R data from FIT files 2017-01-28 18:42:09 +01:00
Mark Liversedge
5b24c30dab User metrics "before" and "after" functions
.. to work with data before or after an interval the
   before and after functions have been added to the
   user metric program.

.. as an example, to calculate kj of work done
   before the interval:

   init { work <- 0 }
   before { work <- work + (POWER*RECINTSECS); }
   value { work/1000 }

.. you can do the same for work done after using
   the after function name instead of before.
2017-01-10 14:17:47 +00:00
Mark Liversedge
121818b90f Fix RowPerfect 3 CSV Import
.. handle intervals properly
.. fix offsetting of intervals in RideFile.cpp (ancient bug!)
2016-09-08 22:59:19 +01:00
grauser
276b807d38 Remove debug logs 2016-08-19 23:20:01 +02:00
grauser
c023572932 FitRideFile : Read asynchronous Heart Rate data
fix #2001
2016-08-19 22:53:13 +02:00
grauser
9c923ba0ec RunMetrics : Add stride length 2016-07-28 23:50:22 +02:00
Mark Liversedge
1a504c5c8c Refactor xdataValue() into RideFile
.. so it can be used across the code

.. but especially to enable RTool to use it when creating
   a data.frame for ride data to include xdata series.
2016-07-23 10:04:38 +01:00
Alejandro Martinez
fbfe2a0fa3 RideEditor - Propagate interval selection to XData series 2016-07-22 16:15:30 -03:00
Mark Liversedge
63264f6f59 Row Perfect 3 CSV File Support
.. all data added as XDATA.
.. time, distance, power and hr available in standard data too.
2016-07-19 15:41:07 +01:00
Mark Liversedge
a784031843 DataFilter Arrays and INDEX
.. when working with user data and user metrics its often
   useful to work with arrays or index into the ride data.

.. a new variable INDEX is available that is the sample
   number in the array of samples that make up the ride.

.. you can dereference samples in a ride using the []
   operator so POWER[55] is the 55th sample for power.

.. when iterating you should consider the recording interval
   so NN <- 1200 / RECINTSECS would set NN to the number of
   samples in 20 minutes.

.. you can also use your own arrays: MYARRAY[44] <- 100 will
   set the 44th item in MYARRAY to 100.

.. the old vector syntax [ date : date ] has been deprecated
   since it is too complex !
2016-07-18 19:55:58 +01:00
grauser
e080d453c1 Metrics : Add average and max running cadence 2016-07-11 00:59:53 +02:00
Mark Liversedge
9ffae1cd56 Ride Editor XDATA row/col add/delete
.. context menu on xdata editor row/column headings now
   adds functions to add/remove rows and columns

.. users can now manually create and maintain XDATA in the
   ride editor

.. the UX is a bit naff and needs to be cleaned up; the
   visual cues are missing on redo/undo and the performance
   is poor since setTabBar is called too frequently. Will
   look to fix these nits over the next few days.

Conflicts:
	src/FileIO/XDataTableModel.cpp
2016-07-10 18:58:53 +01:00
Mark Liversedge
0c8231c218 XDATA Fix Memory Leak and Example Weather File
.. there was a memory leak in RideFile and FitRideFile

.. added a test file with weather data that can be used to
   test XDATA processing (it has 10 weather points with
   wind, humidity etc).
2016-06-20 09:59:31 +01:00
Mark Liversedge
fe9d9740b6 JsonRideFile XDATA support
.. added a new 'XDATA' element for the JsonRideFile and
   RideFile classes.

.. this allows ride file readers to extract and load any
   time series data that doesn't neccessarily fit into
   the usual data points.

.. this was added to support weather data from FIT files
   and also to support 3rd party merging data with the
   GC supported data.

.. ** IMPORTANT ** the XDATA segment is added at the END
   of the JSON format. So older parsers will fail to read
   but will have loaded all data already (i.e. they will
   fail gracefully enough)

   This means files with XDATA can be read by earlier
   versions of GC, but the XDATA will be discarded.
2016-06-19 10:25:03 +01:00
Alejandro Martinez
fca8b2dea0 Fixed refresh when series are added in DataProcessors
Update "Data" tag in RideFile::setDataPresent
2016-05-19 10:45:53 -03:00
Joern
3b09f81045 R - defined / use fixed series names / only in english
... use fix series names (which cannot be translated) - to have R-code which works independent of the GC language
2016-05-06 19:37:09 +02:00
grauser
a734dcfd7a Interval : Add Search for Peak Speed, Peak Pace 2016-05-05 09:43:46 +02:00
Mark Liversedge
440b86f1a6 R GC.activity() improvements
.. don't fill with lots of missing series when they're obscure
.. distinguish between time and seconds
2016-04-13 20:05:19 +01:00
Mark Liversedge
579e8f03a3 R GC.activity() compatibility with trackeR
.. use names in the data.frame that don't contain spaces and
   are compatible with other R packages (e.g. trackeR)
2016-04-13 17:44:47 +01:00
Mark Liversedge
127913d9da Fix QT4 build on QVector::removeAt
.. it wasn't available till QT 5.
2016-03-08 21:34:08 +00:00
Mark Liversedge
e886e90e11 Fixup Mark Exhaustion
.. allow delete
.. refresh properly
.. double click on axis to edit list of exhaustions in the ride
2016-03-08 21:07:56 +00:00
Mark Liversedge
4b5201c4c5 Restructure source directory
Introducing a directory structure to make it a bit less
daunting for new developers and perhaps even old hands.

The main folders all start with an upper character, so src
files are now located in;

* Core - Core data structures
* Gui - Main GUI elements
* Metrics - Models and Metrics
* FileIO - Device and File I/O
* Charts - All the chart types
* Cloud - Working with Web Resources
* Train - Anything Train View specific
* ANT - Our ANT+ Stack
* Resources - Images, Translations, Web etc

Apologies to anyone who needs to merge across this update.
2016-02-25 14:51:53 +00:00