Commit Graph

222 Commits

Author SHA1 Message Date
Mark Liversedge
5692d362d0 ConfigChanged Part 1 of 3
.. introduce concept of configChanged(what) to
   pass details of what config has been changed

.. fixed zones changes to re-read after write
   to correct the save twice to get changes to
   zones bug.

.. next parts need to spot changes (part 2) and
   then action appropriately (part 3)
2014-12-29 13:41:50 +00:00
Damien
a703c69d2e Interval: Correct multiple overlap 2014-12-26 21:37:23 +01:00
Damien
075db59373 Interval: Correct overlap of highlighted intervals 2014-12-19 21:32:05 +01:00
Mark Liversedge
e97045703a Add RideItem ::color, ::isRun and ::present
.. as primary fields, and also load/save to cache.
2014-12-12 14:08:11 +00:00
Mark Liversedge
4c3c1a7582 Turn off interval hover on leave
.. so you get hover notifications only when
   hovering, as soon as the mouse leaves the chart
   the hover goes away.
2014-12-05 11:57:02 +00:00
Mark Liversedge
aea550c267 Remove Zones from RideItem
.. they are in Athlete::zones() et al now

.. this refactor was missed in the 3.0 mainwindow
   refactoring and is part of the prep to use RideItem
   as an in memory cache instead of the old metricDB
2014-12-03 19:06:07 +00:00
Mark Liversedge
ac2fad1305 More decimals for tHb tooltip
.. on AllPlot
2014-11-27 11:50:26 +00:00
Mark Liversedge
f8a73d2f4d Add SmO2 to Histogram
.. from Moxy
2014-11-26 19:23:47 +00:00
Claus Assmann
35eb416bd2 Fix comment spelling errors
.. lots of them !
2014-11-24 15:37:56 +00:00
Alejandro Martinez
edc094e9fa Added pace to tooltip for speed curve in AllPlot
Only when the activity is a run
2014-11-23 17:18:40 -03:00
Mark Liversedge
5bb19fd630 Merge pull request #1130 from Joern-R/gear1
Fix Gear Ratio SEGV - addition to Hack Fix
2014-11-14 19:47:27 +01:00
Mark Liversedge
d56bd21156 Updated Merge Tool Part 2c (last part)
.. UX to adjust now complete.

We may need to tidy a few things up, but this
is now good for working with the Moxy at the
very least.
2014-11-14 18:45:40 +00:00
Joern
48058676ec Fix Gear Ratio SEGV - addition to Hack Fix
... handle Gear Ratio as part of the existing logic - just without
smoothing
... solves SEGV problem in Compare Mode (and probably other areas of
AllPlot)
2014-11-14 19:42:53 +01:00
Mark Liversedge
4f2a4179bb Gear Ratio SEGV Hack Fix
.. need to check if this hack fixes SEGV before raising
   with Joern.
2014-11-13 19:56:15 +00:00
Mark Liversedge
1d398be89e Add HHb and O2Hb to Allplot
.. so you can now look at oxy v deoxy as a time
   series against hr and power.
2014-10-23 21:52:31 +01:00
Mark Liversedge
f583de0801 O2Hb and HHb added to AllPlot Controls
.. now for the slog to add to the charts !
2014-10-23 20:36:57 +01:00
Joern
eb5a6a9497 Add Gear Ratio related functions in multiple areas
.. RideFile - add rounding approach for gear values (different roundings
depending on value) - leading to discrete GearRatio values
.. AllPlot - exclude Gear Ratio from Smoothing (to keep the discrete
value) - and change curve type to "Steps"
.. ScatterPlot - specific handling for GearRatio since values between
0.01 and 1 are relevant for GearRatio and must not be filtered out
.. RideFileChache - add Distribution Data for Gear Ratio and fix
Distribution Cache for DataSeries with > 0 decimalsFor
.. Histogram - add GearRatio to Histograms (both Rides and Trends)
2014-10-22 17:14:18 +02:00
Mark Liversedge
189ab96a48 Put SmO2 and tHb on more appropriate axis
.. as the scales were too high when shared with things like
   power and torque and made them difficult to see

.. also now color shared axis according to what are selected;
   so if only one series selected it will get that color rather
   than e.g. yLeft,0 always being red
2014-10-22 11:48:06 +01:00
Mark Liversedge
0555b9b05f Fix SEGV on Match labels isolation
.. needed an extra saveState() after labels have been
   added to the chart to reflect they have been wiped
2014-10-16 19:16:46 +01:00
Mark Liversedge
223ee29b89 Customise Colors for New Series
.. Moxy smo2 and thb
.. Garmin Running Dynamics
.. Gear Ratio
2014-10-16 18:33:25 +01:00
Mark Liversedge
243923c135 Ride Plot Running Dynamics and Moxy (2 of 2)
.. added to the ride plot, but now need to think
   about customising and setting a default color
   for the six (!) data series.
2014-10-16 17:23:35 +01:00
Mark Liversedge
3d00475450 Gear Ratio Derived Data Series
.. added to code but not displayed on allplot etc

.. will add to allplot when doing running dynamics and moxy
   data series (next couple of days)
2014-10-16 11:26:01 +01:00
Mark Liversedge
10b5d4a589 Ride Plot Running Dynamics and Moxy (1 of 2)
.. plotting the new running dynamics data series;
   ground contact time, vertical oscillation and cadence

.. plotting the moxy data;
   muscle oxygen (absolute) and haemoglobin mass (relative)

.. just added to the controls (AllPlotWindow)

.. part 2 is the slog to add to the plots (ugh)
2014-10-16 10:15:43 +01:00
Mark Liversedge
15183e16be Add Labels on Matches in Ride Plot
.. makes it easier to scan and see where it got to without
   having to mouse over the points one by one
2014-10-11 11:28:14 +01:00
Joern
b6d4f3fa2b All-Plot - Add "Slope" and "Alt/Slope" curves
... add "Slope" curve based on Slope Data in Ride Files (with separate
new color)
... add "Alt/Slope" curve based on "Altitude" data series
... sections on "Alt/Slope" have 3 options -  1min/100 m OR 5min/500 m
OR 10min/1000 m
... color / slope assignments are defined in AllPlotSlopeCurve (to look
it up)
... if a plotted section is wide enough the slope % (distance) / VAM
(time) value is shown above
2014-09-30 12:41:06 +02:00
Joern
5b84ceb1dc AllPlot - Smoothing also for "Left Border"
Problem:
... data points of "Smoothing" settings are set to Zero in result
... this cause e.g. Zero Altitude Values when Plot Smoothing is active
Solution:
... also most left values are "smoothed" now (using only the datapoint
left of them to create the average)
2014-09-14 16:05:43 +02:00
Joern
677fc9079d Fix - AllPlot - Smoothing
... values in the ride plot deviate from the ride data since smoothing
takes place even if the sample time is equal to the smoothing interval
(for which the expectation is that the original samples are plotted)
2014-08-16 17:03:03 +02:00
Mark Liversedge
2e71e89b33 Altitude Ticks Nit 2014-07-25 19:33:35 +01:00
Mark Liversedge
051f2fe5ad Altitude on a fullplot scaling
.. by making it fill the screen it suggests rides have more ascent
   than they actually do. So default to a minimum of 0-500m for the
   altitude scale.
2014-07-25 15:42:52 +01:00
Mark Liversedge
b8ee673fd7 AllPlot Calibration Markers Tweak
.. only show them on power plots

.. don't show text

.. make them /really/ faint

NOTE: This is because crank based powermeters (e.g. SRM) will send
      calibration messages every time you freewheel for 3 secs or more and
      modern headunits (e.g. Nav2Coach) will record and adopt them.

      As you can guess, I have an N2C + SRMs and get > 20 or 30 calibrations
     every ride with the latest N2C firmware, so this one is for me.
2014-07-24 09:29:53 +01:00
Mark Liversedge
1066dd2975 Fix W'bal compare mode
.. it was accidentally omitted and somehow got lost and
   never added back.

.. we now show w'bal in compare mode and its probably one of
   the most interesting comparisons !!!!

Fixes #958
2014-07-02 13:57:52 +01:00
Mark Liversedge
2ffce3f9e6 Fix 2secs ride plot fencepost errors
.. multiple off-by-one errors working together to truncate the
   ride plot by 2 seconds.

Fixes #935
2014-06-25 15:13:57 +01:00
Mark Liversedge
b4da688395 Default linewidth smaller
.. was 2.0px now 0.5

.. no longer looks like it was drawn with a crayon by default !
2014-06-23 10:06:03 +01:00
Mark Liversedge
ce4715c379 Antialias is now on BY DEFAULT 2014-06-23 10:03:20 +01:00
Mark Liversedge
c3528a9b76 Fix V Alignment for Stack Series
.. using setMinimumExtent()
2014-06-21 11:58:21 +01:00
Mark Liversedge
c12a2ea4d4 W'bal use kJ not J on AllPlot Axis
.. uses less space !
2014-06-21 11:24:53 +01:00
Mark Liversedge
ad6f574463 Fix W'bal series plot pan zooming
.. when series stack plotting in AllPlot the W'bal series
   doesn't pan/zoom along with the other plots
2014-06-21 10:42:14 +01:00
Mark Liversedge
7c7989a803 Fix Average Temperature Issues
.. Don't include -255 in average

.. Don't show -255 in ride navigator

.. Don't show a value on summary if not preset
2014-06-20 12:59:03 +01:00
Joern
838d27833b Translation Enablement
... tr()
... Adding to Special Fields (allow translation of "Details->Extra"
fields
2014-06-15 12:56:55 +02:00
Mark Liversedge
318cebfa56 Fix time tooltip on AllPlot 2014-06-08 13:53:48 +01:00
Mark Liversedge
0ebc66ed3c Don't allow 0 smoothing in compare mode
.. we need all intervals to have a common smoothing
   applied or it breaks the charts
2014-06-08 11:58:43 +01:00
Mark Liversedge
0ba03ddf40 Turn smoothing OFF if smooth < recIntSecs
.. i.e. don't do ANY smoothing

.. last commit fixed performance but really adds
   no value to smooth data to the interval it was
   recorded at !!
2014-06-08 11:53:00 +01:00
Mark Liversedge
3a9cde8174 No smoothing applied when smooth < recIntSecs
.. its pointless

.. it is a big performance overhead

Fixes #753.
2014-06-08 11:49:09 +01:00
Mark Liversedge
28e7c83252 Fix W bal plotting by distance
.. since we only smoothed time

Fixes #803
2014-05-06 11:22:48 +01:00
Mark Liversedge
3d00cf3a74 Revert "Fix Allplot Axis Labels"
This reverts commit 80fee9d.

Since actually using showAlt, showBalance to determine if an axis
should be drawn is incorrect, since although the user has selected
it to be plotted, it might not actually be in the ride !

The real fix for this axis labels was fixed in commit 18bf28.
2014-05-04 08:47:46 +01:00
Mark Liversedge
18bf280893 Fix AllPlot Ticks Error
.. was caused by the fact the allPlot height is not set until after the
   first show, so it is zero in initial state.  We just use a default value
   in this case.
2014-04-30 13:56:56 +01:00
Mark Liversedge
80fee9debc Fix Allplot Axis Labels
.. they weren't updated when the plot was not visible due to looking
   at the curve 'isVisible()' rather than showXXX bool.
2014-04-30 11:17:31 +01:00
Mark Liversedge
d74c3a729f Fix going negative on setAlpha
.. to stop qt outputing error messages
2014-04-16 17:44:57 +01:00
Mark Liversedge
317f1b0d2d Fixup CP and AllPlot
.. CP to show % for all ride series not just watts
.. AllPlot to show calibration markers in gray
2014-04-14 22:10:53 +01:00
Mark Liversedge
9592f39d6a Add Vector data series to ride plot
.. Torque Effectiveness and Pedal Smoothness now
   added to the ride plot.
2014-04-13 19:47:21 +01:00