Commit Graph

1652 Commits

Author SHA1 Message Date
Gareth Coco
28d7780e65 Don't build QwtDesigner in qwt
We don't use it and it is commented out in master
2012-01-26 13:02:40 -05:00
Gareth Coco
3158576599 Allow CdA to lowest possible in AerolabWindow.cpp
Fixes #475
2012-01-26 13:00:38 -05:00
Mark Liversedge
1e124777dc Remove reading of .notes from LTMPopup
Last vestiges of references to the old .notes file which
is now deprecated fully and replaced with a metadata tag
"Notes".

If a .notes file exists it will be read in and used to
initialize the Notes metadata tag -- this is pre-existing
functionality and not changed with this patch, which is
just related to LTM Popup.

There are no other know references to the old .notes file
left in the active code.

Fixes #179.
2012-01-25 08:42:06 +00:00
Mark Liversedge
078a3ec450 Add Chart Menus
Allow the user to add a chart from the top-level
view menu, or by right clicking on the home page.

I did not implement as right click on toolbar since
there is already an add chart icon on the toolbar
and adding right click is kind of redundant in that
case.

Fixes #606.
2012-01-24 22:09:29 +00:00
Mark Liversedge
bacd8527c3 Fix crash if TRIMP zones > 5
Fixes #483.
2012-01-24 21:08:07 +00:00
Mark Liversedge
54414ba076 Fix Analysis quick button nits
* Wrong size, wrong spacing
* Actions broke keyboard shortcuts Ctrl-D/I/M
  for download, import, manual ride entry
2012-01-22 18:22:48 +00:00
Mark Liversedge
dcbe9f20dc Fix redclaration of macstyler in MainWindow.cpp 2012-01-22 18:04:34 +00:00
Mark Liversedge
3678dadd40 Save button enable/disable
Only enable the save button if the current ride is
dirty. Makes a good visual cue for the end-user.
2012-01-22 18:02:35 +00:00
Mark Liversedge
1802390f73 Remove quarq devices
The recent AddDeviceWizard exposed some of the
Quarq devices which are possibly experimental.

Commented them out in case they re-appear at a
later date.
2012-01-22 17:35:25 +00:00
Mark Liversedge
03529c810e Toolbar buttons for Analsysis View
Save - saves current ride
Add  - menu to download, import or manual

The icons could be nicer, need a gui wizard to help.

Fixes #492.
2012-01-22 17:18:20 +00:00
Jamie Kimberley
f2a8cf2cde Add other TRIMP metrics to performance manager-v3.
Add the ability to use the TRIMP 100 and TRIMP ZONAL metrics in the
performace manager.
2012-01-22 15:40:10 +00:00
Mark Liversedge
c98ecbd3fa Fix interpolation of GPS data for bad samples
[manually folded in commit #8e43eb31a from 2.1 branch]
2012-01-22 15:37:32 +00:00
Mark Liversedge
bce8be2471 Fix SEGV on cancel long search
A timing issue - when cancelling the background scan
it is possible for the next scan to be performed after
the controller has been deleted.

This is an edge condition and pretty rare, but since it
causes a crash pretty high impact.
2012-01-22 09:05:22 +00:00
Mark Liversedge
4a3e6e2049 Fix AddDeviceWizard AddSearch not completing
The logic for the AddSearch page (which only appears
if the user did not have the device connected when the
initial scan is performed) would find the device and then
terminate without moving on to the final page.
2012-01-22 08:58:59 +00:00
Mark Liversedge
3822940d5d Realtime Robot
If you define GC_WANT_ROBOT in gcconfig.pri then
we will compile with support for adding a null
device (robot), which is useful for developers
when testing.

See the last line of gcconfig.pri.in.

You will need to touch DeviceTypes.cpp after
modifying src.pro and before typing make.
2012-01-22 08:21:12 +00:00
Gareth Coco
943edcd78d mingw uses Sleep() 2012-01-21 21:23:36 -05:00
Mark Liversedge
96a1e30536 Fix SEGV on Finish AddDeviceWizard
Telemetry updates were trying to use the device
controller after it had been deleted.
2012-01-21 23:43:58 +00:00
Mark Liversedge
1f82dc4479 More LIBUSB problems
Last update referenced ANT::usbMode even though it
is only available if LIBUSB support is compiled in.
2012-01-21 23:14:38 +00:00
Mark Liversedge
efc79cb126 Fox initialisation of ANT::channels without LIBUSB
The initialisation of the new 'channels' member
was being set inside LIBUSB conditionals. This
means when built without LIBUSB channels would
not get initialised.
2012-01-21 22:47:23 +00:00
Mark Liversedge
2c0f5bfb32 Remember LIBUSB is optional
So don't include FortiusController.h in the new
AddDeviceWizard.h, since some folks aren't building
for that.
2012-01-21 22:16:58 +00:00
Damien
3058b3e9c6 Reorganise intervals by drag and drop
The interval view now allows the user to drag and drop intervals
up and down in the list.

We could extend the drag and drop of intervals to support analysis
of segments/intervals from multiple rides in the future too.

Fixes #405.
2012-01-21 21:16:35 +00:00
Damien
6ea13c74a2 Select active ride in the ride navigator
Fixes #545.
2012-01-21 21:00:52 +00:00
Andrew Bryson
51a6b3ffd2 Fix quarq power and cadence glitches when coasting
ANT+ telemetry data processing in ANTChannel now
checks for previous message period values.

Fixes #607.

[Tested by author on Quarq cranks, error not recreated
 on SRM or Powertap devices, but may be Quarq specific]
2012-01-21 20:54:19 +00:00
Mark Liversedge
3ca7f1a5d2 Add Device Wizard
Introduce a wizard for adding realtime devices since it
is prone to user error, is relatively complicated and is
something most users will only ever do once or twice.

There are several logical updates within this patch:

First; Fix intermittent ANT+ not working
* LibUsb     - check bufRemaining is > 0 not non-zero
* LibUsb     - Always reset the USB stick on open
* ANT.cpp    - Support > 4 channels on USB2
* ANTChannel -  Do not use pairing, but always
*               unassign, assign and set channel id.

Second; Fix device discovery
* Find and discover support in realtime controllers
* Extend Serial.cpp to cover more Serial devices
* Support for 4 or 8 ANT channels for USB1/USB2

Third; Introduce Add Device Wizard with
* General and Specific wizard pages for each device type
* Device pairing with telemetry display
* fixed compile time warnings

Fourth; Update Device Config Page
* use wizard to add new device
* remove edit fields, replaced by wizard
* remove pair, firmware buttons replaced by wizard

Fifth; Deprecate/Remove Device Types
* Null Device - used by developers only
* Quarqd client - replaced by Native ANT+
* GC Server - not implemented yet

I have also introduced a device specific wheel size
and flags for controlling the default selection and
sources for sensor data when in multi-device mode. These
are not yet supported in the code.

Fixes #611.
Fixes #497.
2012-01-21 20:28:33 +00:00
Mark Liversedge
3863b7f0a2 Fix precision error for Temp in Summary 2012-01-15 16:58:04 +00:00
Mark Liversedge
b5f979e3f8 Add Temperature to Ride Summary
More complex than I had hoped for, to add
Temperature I needed to;

* introduce two new metrics Avg/Max temperature
* adjust metric conversion to include a conversionSum
  for the C to F conversion
* handle temperature as a metadata field as well as a
  ride data series
* handle the RideFile::noTemp value rather than just
  averaging or calculating max.

Fixes #603.
2012-01-15 16:27:09 +00:00
Mark Liversedge
1d702e8958 Wattbike test rides 2012-01-15 12:54:42 +00:00
Mark Liversedge
1509cc5894 Support Wattbike TXT data exports
Thanks to Peter Norberg for the sample data export
files. This support has been written against the
two files supplied.

if the export has imperial/metric conversion options
then this support will need to be adjusted to cater
for different units.

Fixes #322.
2012-01-15 12:52:57 +00:00
Damien
0aaeb25076 Fix CriticalPowerWindow handle seasons changed
Fixes #575.
2012-01-15 09:22:45 +00:00
Mark Liversedge
eb25761557 Refresh PMC when rides added/deleted
Replots the PMC when a ride is added or deleted to make
sure the plot reflects the current activity history.
2012-01-14 22:05:46 +00:00
Mark Liversedge
53f103e64a Refresh on ride add/deleted
When rides are added or deleted the weekly statistics
are now refreshed to ensure they reflect the rides
now present within that week.
2012-01-14 21:57:49 +00:00
Mark Liversedge
6142578683 Tcx speed is Meters/Second not KPH
Recent update to support distance calculation from
speed and time erroneously assumed speed units of
kilometers per hour. The docs state that speed is
represented in Meters per Second.

Apologies, and thanks to Walter Bürki for his
perseverance with me on this one.

Fixes #598.
2012-01-14 19:30:27 +00:00
Mark Liversedge
9b4c273753 Constrain AEPF to 2500N on PfPv plot
Low cadence values (<30) lead to very high
AEPF values. In reality, these very low
cadences are sprious, since they can occur
after freewheeling (the sensor cannot
differentiate).

We restrict the AEPF scale on the PfPvPlot
to 2,500N which should be meaningful for
most humans.
2012-01-14 19:21:18 +00:00
Mark Liversedge
51d014439d Season Config - don't delete!
The seasons class emits signals to let
everyone know if the season config changes
at runtime.

The recent patch to add configuration of
seasons deleted and re-instantiated the
seasons member in MainWindow which breaks
updating across the code.

This patch fixes that.
2012-01-14 17:41:42 +00:00
Mark Liversedge
01a6e85363 ANT+ Use Cadence from Standard Power Messages
Standard power messages include an instant cadence
value which we ignored. We should use this if it is
available.

Fixes previous attempt by setting Cadence rather than
wheelRPM with the instant cadence value (!)

Fixes #556.
2012-01-14 15:48:41 +00:00
Mark Liversedge
79560d7486 Add Wheelsize Config
So we can calculate speed from wheelRPM when working
with ANT+ speed sensors in realtime.

The config screen is still ugly as hell, but there is
another bug raised to resolve that.

Fixes #529.
2012-01-14 15:38:01 +00:00
Mark Liversedge
128687ee64 Fix Crash on no ErgFile selected
Fixes #600.
2012-01-14 15:34:42 +00:00
Mark Liversedge
4c520aa69b Disable roch text in metadata
It causes significant performance issues when
pasting complex font information, we only allow
plain text since we only serialise the plain text
elements anyway.

Fixes #599.
2012-01-14 12:21:39 +00:00
Mark Liversedge
01f9b0b078 Merge branch 'release_3.0.0dev' of github.com:/srhea/GoldenCheetah into release_3.0.0dev 2012-01-14 11:54:13 +00:00
Mark Liversedge
492a113eb3 Configure Seasons in ConfigDialog
Allow the user to add,delete and reorder
seasons in the config dialog.

Although the user could create and manipulate
seasons / date ranges in the LTM chart, this
provides a more coherent place to do the same
but also adds the ability to re-order seasons.

Fixes #399.
2012-01-14 11:52:01 +00:00
Damien
00ee9bbfcf Remove Joule warings
Remove warnings for new format identifiers in the last Joule firmware
 Correct a small bug in the summary view for average metrics refresh.

 Fixes #524.
2012-01-13 22:57:54 +00:00
Damien
f308bbdf06 Correct bug #496 for longitude < -65
Fixes #496.
2012-01-13 22:36:44 +00:00
Damien
7562002e4f Correct heartrate zone labels position for X axis not beginning at 0
Fixes #426.
2012-01-13 21:42:43 +00:00
Mark Liversedge
f580157ae9 Hold down FFwd/Rewind Buttons to skip
When jumping forward and back through a workout
the FFwd/Rewind buttons can now be held down to
auto-repeat and skip quickly.
2012-01-13 19:13:47 +00:00
Andrew Bryson
63efcf50c0 Add lap time remaining data series
Fixes Feature #592.
2012-01-13 17:52:07 +00:00
Damien
4dae295b50 Correct encoding in json parser
Fixes #408.

	modified:   src/JsonRideFile.y
2012-01-13 17:52:07 +00:00
Gareth Coco
ad4ba366cf Update default chart titles - Analysis view
Fixes #596
2012-01-12 16:21:23 +00:00
Mark Liversedge
494a4adfbe Reinstate Chart Setup Dialog
It was removed when we had a serious bug
that caused a crash when adding a chart.
That turned out to be related to mouse
event processing and drop shadow graphic
effects.

We can remove this is folks don't like it.
2012-01-12 16:00:35 +00:00
Mark Liversedge
d87a9cc10b Fix QTKit Video Playback on QT 4.8 RC
QT-BUG 22574 suggests there is a problem with the
QMacCocoaContainer on 4.8 RC 0. This is a quick workaround
for those building against the 4.8 release candidate.
2012-01-12 15:18:50 +00:00
Mark Liversedge
a72f4436bf FFwd/rewind Video on Mac
Following on from update for VLC based video playback
this update add fast forward and rewind of video on
Mac where we use the Quicktime API.
2012-01-12 12:40:35 +00:00