Commit Graph

1149 Commits

Author SHA1 Message Date
Mark Liversedge
cd6b86c3eb Better Bounds Checking in RideFile::intervalBegin()
Return value when out of bounds had a fencepost error. Annoyingly
it is exactly the same fencepost error that was fixed in a line
of code 10 lines lower in the source.

This fixes rare issues with rides where intervals start at the
end of the ride file. This can happen with rides that have been
split.
2011-11-28 09:29:07 -05:00
Gareth Coco
b01c007ed2 Initialise LAT/LON to zero (0.0) in the parser
If there is no LAT/LON data often GC will set really small numbers
to LAT/LON which the map functions will try to map.

Fixes #522
2011-11-25 20:57:39 -05:00
Mark Liversedge
acdde3e02a Merge branch 'master' of github.com:/srhea/GoldenCheetah 2011-11-25 16:56:28 +00:00
Mark Liversedge
6b07997791 Fix FTDI Adaptor on Linux and Mac
Eric Brandt provided a fix for the new FTDI adaptor
sold with Computrainers from late 2009. It only fixed
the problem under Windows.

This fix applies the same modification to turn off
hardware flow-control for Linux and Mac.

Fixes #523.
2011-11-25 16:44:23 +00:00
Mark Liversedge
440a0b8404 Use strtod() to convert text to double
To get improved precision when parsing pasted
data in the ride editor.

Fixes #477.
2011-11-22 10:04:11 -05:00
Gareth Coco
d3f16313bb Fixes for RealtimeController
Adds in missing breaks.
Set power to zero when no cadence.

All this from v3 code base.
2011-10-27 23:14:03 -04:00
Mark Liversedge
fa0aa3fd75 Add virtual power for LeMond Revolution
The LeMond revolution trainer has been analysed in
some depth by Tom Anhalt and as a happy by-product
idenitfied the power/speed curve.

Since Darren Hague had already added the ability to
approximate power from Speed when training on a turbo
this patch extends that to include the LeMond device.

All the analysis Tom performed can be read over on
wattagetraining.com here:
http://wattagetraining.com/forum/viewtopic.php?t=335

Fixes #498.
2011-10-27 23:13:44 -04:00
Mark Liversedge
0d811ba4ba Updated translation files.
To include latest translations and also the update
from Keisuke Yamaguchi.

Fixes 489.
2011-10-26 16:50:55 +01:00
Mark Liversedge
9dff6e0cf6 Summary fixups
* Show time in zone as a percent
* Annotate heading to show units

Fixes #473.
Fixes #474.
2011-10-11 20:48:46 -04:00
Mark Liversedge
b04e308d9f Check Date/Time unique
Issue a warning if the user changes the ride date/time
to the same as an existing ride.

They can still go ahead, but when saving it will overwrite
the existing file.

Fixing the save routines to check would require significant
refactoring and can be fixed at a later date.

Fixes #466.

[code refactored from commit dfaf151 release3 and folded in manually]
2011-10-06 20:09:02 +01:00
Mark Liversedge
63fe2fb443 Merge branch 'master' of github.com:/srhea/GoldenCheetah 2011-10-06 19:02:55 +01:00
Mark Liversedge
34001d30b5 Fix Split Ride file loss bug
In some instances split ride will refuse to overwrite existing
ride files (where they have the same date/time). This patch
increments the start time by one (or more) seconds to ensure
there is no conflict.

Fixes #165.
2011-10-06 19:00:02 +01:00
Keisuke Yamaguchi
769fd633e2 Update Japanese translation files
Fixes #459
2011-09-28 22:27:53 -04:00
Gareth Coco
eb456cee63 Update gc_fr.qm for updated French translation 2011-09-14 21:57:11 -04:00
lemaitre
afe4710bf5 Updating of the French translation
Updating of the French translation file ts
2011-09-14 21:56:35 -04:00
Gareth Coco
b977abffcc Update translation .qm files
Needed for the translation changes from #451
2011-09-13 16:23:20 -04:00
Alejandro Martinez
8e1ec66820 Enable 3d Plot Translation and include spanish translation
Fixes #451
2011-09-13 16:22:29 -04:00
Gareth Coco
adc8430e0e Changed KPH to km/h in displays
To match International Standards
2011-09-13 12:51:10 -04:00
Gareth Coco
65109d95fd Changed kph to km/h in displays
International standards show metric speed as km/h
2011-09-13 11:57:35 -04:00
Mark Liversedge
189f11d80f Revert "SplitRide overwrites existing file"
This reverts commit 183564d1ea.

Small risk of losing data, reverting to previous behaviour.
2011-09-07 07:01:00 +01:00
Mark Liversedge
183564d1ea SplitRide overwrites existing file
Fixes #165.
2011-09-02 18:20:52 +01:00
Jamie Kimberley
076190161f clean up wishlist web page 2011-09-01 11:45:57 -04:00
Jamie Kimberley
f43a71f3a4 Update user guide steps 1 and 2
Updated the user guide to reflect the fact taht the FTDI drivers are
optional for most systems.  Changed the instructions for linux install to
reflect that we are now distributing gzipped archives.  I also added a in
page link to the wiki.

Fixes #259
2011-09-01 11:44:08 -04:00
Mark Liversedge
c383ee75fb Merge branch 'master' of github.com:/srhea/GoldenCheetah 2011-08-30 22:26:04 +01:00
Mark Liversedge
e0711b4bb7 Fix Download Ride Dialog instructions refresh
When changing the device type in the Download
Ride dilaog the instructions do not change to
reflect the device selected. This patch fixes
that.

Fixes #434.
2011-08-30 22:23:22 +01:00
Gareth Coco
5ce1617667 Comment out QwtDesigner build in qwtconfig.pri.in 2011-08-30 10:32:01 -04:00
Alejandro Martinez
0091defb6c Update Spanish Translation
- Summary Metrics
 - Move up/Move down/Include/Exclude Buttons in Metric Selection
 - Hr Peak Power xx min
 - Macro download instructions
 - Elevation Offset in Aerolab
2011-08-30 10:21:50 -04:00
Gareth Coco
3d93c0ca52 Reorder liboauth includes
Depending on how libcurl is built, it must appear before libcrypto
2011-08-29 12:31:28 -04:00
Jamie Kimberley
8fcbe81daf force use of no elide and scrollbars in main tab
depending on the style used on a given system the text in the tab bar for
selection of different charts (summary, ride plot...) may be elided on
screens with small resoulution.   This overrides the use of scrollbars
which is set  explicitly in the code. this one line patch forces the use of
non-elided text in the the tabs so that scroll bars appear.
2011-08-28 23:14:02 +01:00
Mark Liversedge
524ab81a08 Fix FitRideFile for header change
The header size in FitRideFile has increased from
12 to 14 bytes, but the new field is at the end of
the header, not in the middle.

Additionally, there is a new global record (79) which
we now silently ignore.
2011-08-27 23:52:56 +01:00
Mark Liversedge
ad9a76a172 Support FR310xt latest firmware
Fit file format can now have a 12 and 14 byte header. This
patch adds support for 14 byte headers since this is required
by the latest 310xt firmware.

Fixes #430.
2011-08-27 09:07:45 +01:00
Damien
5b838d99c2 Correct bug in the peakPowerHr formula 2011-08-23 23:24:18 -04:00
Damien
b7bfb98dc8 Aerolab : Change LCD display to LineEdit
Also fixes v3 crash when changing CdA.

Fixes #423.
2011-08-23 22:18:24 +01:00
Mark Liversedge
7352245a91 Fix Macro device data crash
If you attempt to download from a Macro device
and use wrong device or initial read fails then
it crashes, this patch fixes that.

It does not fix more general data errors but should
at least mean incorrect user selections do not result
in GC crashing.

Fixes #366.
2011-08-21 21:16:41 +01:00
Mark Liversedge
bfa68faeda Update .gitignore for Lex/yacc
Ignore temporary files generated when lex
and yacc generate parsers from a grammar.
2011-08-21 16:51:18 +01:00
Mark Liversedge
95d6a40ecd Fix date/time handling when importing rides
The ride import wizard would only allow the user to
change the ride date/time if it was a .gc .json or
.csv file. This was (wrongly) because we could not
update the date/time defined within the ride file itself
(we cannot write in other formats e.g. wko).

Of course, we encode the ride date/time in the filename
and so it could be changed. However, not all the RideFile
readers supported this.

To get around this, the import wizard now does let you
change the date and time for any file type and the ride
file factory method openRideFile() will override whatever
date and time is returned by examining the filename. The
user needs to double click the date or time to edit it.

Additionally, the select date... combo would only register
when you changed the selection, it now defaults back to
the 'select date..' option after each selection.

Lastly, the 'choose date' function now works as advertised
and triggers editing the date for the ride selected.

[commit cd86521 cherry picked into master from release_3.0.0dev]

Fixes #11
2011-08-21 15:43:06 +01:00
Mark Liversedge
3a4b782a16 Merge branch 'master' of github.com:/srhea/GoldenCheetah 2011-08-21 15:17:45 +01:00
Mark Liversedge
7331775e40 Add JSON support to v2.1
Patch to allow v2.1 to read v3.1 .json ridefiles.

Version 3 introduces a new GC file format
using Javascript object notation (json). In
version 3 files are written in this format
as a local, native format thus deprecating the
XML .gc notation.

This backport to 2.1 does not;
* write in json format, it just reads files
* set RideFile::rideId, since it is not present in v2

To build you will need lex/yacc (or flex/bison) the
instructions are within gcconfig.pri.in but are the
same as for version 3.

Fixes #395.
2011-08-21 15:12:01 +01:00
Damien
0c7abe9755 Modify Aerolab to add interval highlight and zoom + auto offset
Fixes #241
Fixes #147
2011-08-17 13:50:08 -04:00
Mark Liversedge
9ab5fb26e2 Guess ride date time for Poweragent CSV files
File name is in the format "name yyyy-mm-dd hh-mm-ss.csv".

[cherry picked into master from c08dae in release_3.0.0dev]

Fixes #281.
2011-08-07 22:53:30 +01:00
Mark Liversedge
a641ec7e0a Fit files sometimes go backwards
FIT record type '253' occasionally causes time to go
backwards, this might be a decoding error, but for now
we force time to go forward anyway.

Looking at bad files GPS data with this patch suggests
this is the correct behaviour.

Fixes #104.
2011-08-06 17:58:12 +01:00
Damien
c513a47e07 Modify TRIMP formula to use time_riding instead of workout time
Fixes #355.
2011-08-06 12:08:44 +01:00
Mark Liversedge
a562d2f73b Fix LogY Intervals on Histogram
The LogY function for histograms was overlooked
when implementing intervals. The baseline and
start/end values of the interval curve needed to
be set to non-zero values to match the main curve.

Fixes #396.
2011-08-06 11:48:18 +01:00
Damien
dfbb1c29f8 Correct interval 2011-08-05 22:40:05 +01:00
Damien
b0cca3c2fa Modification to handle odd start page and compatible with qt 4.6 2011-08-05 17:01:16 +01:00
Damien
8c2eac427b Add a setFocus on the Treelist to correct a MacOs Bug of Qt
Fixes #255.
2011-08-05 15:14:38 +01:00
Mark Liversedge
880c97c639 Don't allow Nan or Inf sample values
I thought this was introduced previously and was not. When
appendPoint adds a new sample it now sets non-finite values
to zero.
2011-08-05 15:03:34 +01:00
Mark Liversedge
614f267a5e Merge branch 'master' of github.com:/srhea/GoldenCheetah 2011-08-05 14:54:37 +01:00
Mark Liversedge
14f7924c28 Fix SummaryWindow crash
When a large number of intervals are defined (>50 or so)
then the RideSummary window crashes.

It appears to be a bug in QTextEdit. It does a double free
when setHtml is called, after a 'large' text item was
set. It may be a QString bug.

To avoid the issue we use a QWebView instead of a QTextEdit
to display the summary and then try and set fonts to match
the application.

[cherry-picked and merged from release_3.0.0dev]
2011-08-05 14:53:58 +01:00
Gareth Coco
7a501a9699 Make interval period on map user defineable
Previously the map track was broken up into 30 second intervals.
This patch allows the user to define a time interval they want.

Fixes #273
2011-08-04 23:30:36 -04:00