47 Commits

Author SHA1 Message Date
Alejandro Martinez
ae6ebd9aaf FitRideFile - Avoid duplicated XData series names
Fixes #4646
[publish binaries]
2025-05-23 20:50:37 -03:00
Alejandro Martinez
5c32910af5 Avoid crash on WPrime computation
When the cubic spline used to smooth data is not valid.
An offending file contributed at the users forum is included.
2025-05-18 19:57:40 -03:00
Alejandro Martinez
e10ad628f9 FitRideFile - Fix regression with native TCORE
Name and scale too.
Fixes #4643
2025-05-12 18:12:30 -03:00
Alejandro Martinez
1230dc7c68 FIT parser - Lap messages can be first
in the new file structure, like in the companion
test file from a Sigma ROX 11.1
2024-09-21 15:29:02 -03:00
Ale Martinez
c1727623a8 Recognize Polar S625x srd files
Add 2 test files from S625X
Fixes #3489
2020-06-12 13:07:37 -03:00
Ale Martinez
b3f35597d3 Import Notes from TCX files
Fixes #3385
2020-03-29 22:41:48 -03:00
Ale Martinez
22c2cdd5d7 TcxParser - initialize for each activity to support multisession files
Fixes #3362
2020-03-29 22:30:01 -03:00
Erik Botö
d1e2f38e07 Add support for VO2 measurements and VO2Master VM Pro
Add support for a generic set of VO2 measurements:

* Respiratory Frequency
* Respiratory Minute Volume aka Ventilation
* Volume O2 consumed
* Volume CO2 produced
* Tidal Volume
* FeO2 (Fraction of O2 expired)
* Respiratory Exchange Rate (calculated as VCO2/VO2)

Make the new metrics usable in TrainView, and store VO2 data as XDATA
using the same pattern as for HRV data.

Add support for VM Pro by VO2Masters

The VM Pro is a BLE device, so support is added in the BT40Device class.
Since the device requires some configuration in order to be usable, such
as the size of the "User Piece" a special configuration widget is added
and shown in a separate window when the device is connected.

This window is also used to set a number of useful settings in the
device, and to show calibration progress. There's also a detailed log of
the status messages shown, and this can also be saved to file.

Allow notifications from RealtimeControllers and devices in the
notification area of Train View. In order for devices to display
information in the notification field in TrainBottom the signals need
to added and propagated from from device level via RealtimeController
to TrainSidebar and finally TrainBottom.

Fix an issue with multiple BT40Device per actual device

Currently on MacOS there will be multiple BT40Device per actual device,
since the QBluetoothDeviceDiscoveryAgent::deviceDiscovered() signal is
emitted multiple times with e.g. updated RSSI values. Avoid this by
checking the previously created devices first.

MacOS doesn't disclose the address, so QBluetoothDeviceInfo::address()
can't be used there, instead deviceUuid() is used which is instead only
valid on MacOS.
2020-02-03 12:00:08 +00:00
Poncho
40d03c4402 Add New Device IDs for FIT files (#3315)
add Garmin Edge 830
add Stages Cycling
Add test file for Garmin Edge 830 with Stages Cycling power meter
2020-01-26 18:52:13 -03:00
Ale Martinez
5bd4404279 Avoid endless loop on FIT files unknown type and negative size
Includes a test file to reproduce the issue.
Fixes #3229
2019-12-03 14:45:47 -03:00
Ale Martinez
675cbcbe58 Add Tacx Neo Bike Trainer to ANT IDs
Contributed by Pavel Vasilyev
Fixes #3221
2019-11-24 09:21:38 -03:00
Ale Martinez
45e73f7d34 Added Navicoach O-Synce sample FIT files
These uses non-interleaved mode for session records, we need to do
regression tests on these files for solutions to #3211
2019-11-21 13:05:05 -03:00
Alejandro Martinez
0b0f99889e Enable import of XDATA series from CSV files (#3179)
* Enable import of XDATA series from CSV files
Since XDATA series are preserved across merges this allows to add
arbitrary XDATA series to any activity.
Sample WEATHER file is included for testing.
Sample swim file is also included, once imported set Sport=Swim and use
Fix Lap Swim with pool length=25 to rebuild standard series and laps
Fixes #2010 item 4.

* FixLapSwim - Alternative way to store pauses in XData
Some devices s.t. Moov Now generates a CSV with REST field
after each length. FixLapSwim now can use this alternative
way to express pauses and to mark end of laps.
This is intended to be used together with XDATA csv import.
A Moov Now csv file modified to comply with our format is
added as an example to test folder.
2019-10-10 23:16:22 -03:00
Ale Martinez
44d17a606b Added PowerInWatts extension to GPX Parser
Fixes #3084
2019-04-23 12:13:30 -03:00
grauser
9bb0aebe46 Add test files for Firstbeat/Garmin session metrics Pull request #2986 2019-01-01 22:02:08 +01:00
Alejandro Martinez
c5cf5e102e Add support for R-R txt files import (HRV)
Fixes #2613
Test files contributed by forum users Mike and Ron
2017-09-05 17:14:16 -03:00
Mark Liversedge
c9c72bf7d1 Test rides with HRV data
.. from "Pepe Lisbon" on the google group forum

[skip ci]
2017-03-06 12:09:04 +00:00
Leif Warland
cfe2a08e33 Added FIT file to test HRV reading. 2017-01-29 21:23:01 +01:00
grauser
4c43d0a873 Pwx : Add test file with Garmin Cycling Dynamics
fix #2100
2016-09-28 07:11:37 +01:00
Mark Liversedge
8501cf2037 Add Row Perfect 3 sample file
.. to the tests/rides directory
2016-07-19 15:43:23 +01:00
Alejandro Martinez
9111b8384e Moved sample swims and runs to separate folders
parallel to rides folder
2016-07-13 10:42:46 -03: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
Alejandro Martinez
a6aa5547d4 Changed Interval generation for Lap swimming FIT files
Simpler and more robust lap alignment
Fixed for empty lengths due to false starts and
pauses in some devices s.t. Garmin 910xt
Added 2 contributed test files
2016-05-31 21:23:03 -03:00
Alejandro Martinez
f7dc38bcfd Fixed HRV to HR in SML files
To avoid HR gaps when < 60 bpm
Added test file with HRV and no HR
2016-05-03 19:19:42 -03:00
Irvin Sirotić
70c03e8b5d TrainingPeaks PWX support L/R balance
.. on import and export, using the "pwrright" element.

.. this is not part of the public PWX schema but has
   been used by ipbike when writing PWX, and may or may
   not be supported by TrainingPeaks.com
2016-01-15 16:24:56 +00:00
Mark Liversedge
90855a5ec6 BSX Test File from a Ramp Test
.. thanks to Neil Pugh for the example. Its also quite
   interesting to see SMO2 respond to the test.
2016-01-04 14:34:43 +00:00
Mark Liversedge
48642e66e3 Fix 3DP file import 'hang'
.. the resampling code caused issues (not 100% sure why) so
   reimplemented using the resampling method from Txt file
   processing (also for Computrainers).

.. we know that approach is accurate since it accumulates
   work and resamples to 1s intervals precisely.

.. two regression impacts; we no longer import the virtual
   altitude and sample rate is 1s not 250ms.
2015-11-25 11:58:40 +00:00
Alejandro Martinez
c87336a18c Fixes TcxParser for HRM Swim files
They include one Trackpoint per second with HR,
but distance only once per length.
2015-11-24 21:29:23 -03:00
Alejandro Martinez
66ffaee5db SML Lap Swimming support
Samples of swimming type are used to update distance and speed
of periodic samples, cadence is computed counting Stroke events.
Includes test file contributed by Serban Mestecaneanu
2015-11-19 21:22:38 -03:00
Alejandro Martinez
611e8bf9ff Added Garmin Swim sample file
Contributed by forum user Portaner
2015-11-16 15:05:48 -03:00
Mark Liversedge
c41f17ec02 Merge pull request #1501 from cgiraldo/master
Added Sigma Rox 10.0 .slf file import support (it may also work with …
2015-11-14 21:02:31 +00:00
Alejandro Martinez
e659857348 Fixes Lap Swimming FIT import from Garmin 920xt
It generates both record and length messages for
each length, we use length messages to recognize
lap swimming and filter out record messages.
Includes test file contributed by Jonathan Beverley
2015-11-13 19:01:11 -03:00
Alejandro Martinez
b35f2ddc58 Add support for Lap Swimming FIT files
The length message is used to generate 1 sample per second with speed,
cadence and distance data.
One test file is included.
2015-11-12 20:28:42 -03:00
Mark Liversedge
83164b7e7d TCX test file with out of bound values
.. caused v3.2 to crash on interval discovery and
   contains out of bound values for power, speed and
   cadence.

.. good for testing code doesn't make assumptions about
   data values.

.. thanks to Neil Jones for the test file and permission
   to distribute for testing
2015-10-11 14:07:44 +01:00
Alejandro Martinez
f23ce8bbb8 Fixed typo in SML import and added test file
This one is a ride with power contributed by forum user Roland
2015-10-03 21:38:03 -03:00
Alejandro Martinez
499b59639a Suunto Markup Language Format (SML) Import - Initial implementation
Based on TCX/GPX support
Includes laps and no-gps support for indoor activities, but not lap swimming.
Test files were contributed by forum members Frederic and Servan
Fixes #1559
2015-09-23 12:24:39 -03:00
Carlos Giraldo
58339774a9 Added test file for sigma rox 10.0 slf rides. 2015-08-08 13:11:27 +02:00
Alejandro Martinez
129ee0e264 Added support for smart recording and lap swimming in pwx files
Smart recording interpolation fills the gaps in pwx files present
when the original .fit or .tcx files had them.
Test files for running: 1 activity in .fit, .tcx and .pwx formats
Lap swimming expands the sample-per-length and pause to 1-sec sampling.
Test files for lap swimming: 2 activities in .pwx format,
one from Garmin 910xt other from Finis SwimSense.
2015-02-23 21:09:36 -03:00
Alejandro Martinez
75f505a3c3 Add support for pool swimming tcx files from Garmin Connect
When Sport="Other", there is no GPS data but there is distance information
it is assumed the file cames from lap swimming.
They have one Trackpoint per length, which are expanded to one point per second
in similar way to Smart Recording and laps without Trackpoints to signal pauses
which are expanded to one point per second up to 10x Smart Recording HWM.
Added contributed Garmin FR910xt pool swim file to test/rides folder
2015-02-19 12:01:12 -03:00
Alejandro Martinez
721c76f062 Fixed minor interval alignment issue
The problem is barely noticeable in cycling activities but
annoying for run and swim intervals.
Added synthetic .csv for testing.
2015-01-27 09:52:41 -03:00
Mark Liversedge
5991341e5f Add Peripedal CSV support
.. and a test ride too.
2015-01-03 11:02:23 +00:00
Mark Liversedge
d5d51869b4 Added Moxy file for testing 2014-11-04 20:36:11 +00:00
Mark Liversedge
667f076839 Add more Suunto Ambit test rides 2014-01-19 12:36:27 +00:00
Mark Liversedge
eaabff390f Added Suunto xlsx file to test rides
.. thanks to Fester for the example file.
2013-08-07 19:18:11 +01:00
Mark Liversedge
790dff7dbf Calibration Messages minor update
.. add some sample files with calibration messages to the
   test/rides directory

.. remove the calibration marker color config (we can add it
   back if needed, but was in the wrong 'sequence' and is
   probably just a little bit *too* fine grained).
2013-07-18 22:05:57 +01:00
Damien
bf0b774793 BinRideFile: Support for left-right pedal balance
Test ride file : test/rides/2013_05_15_18_38_30.bin
2013-05-28 22:15:18 +02:00
Mark Liversedge
e8c5d6d3a8 Move tests to top level directory
.. they don't belong in the src directory!
2013-05-28 10:23:57 +01:00