mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Raise slope limit to +-40. (#3092)
This commit is contained in:
committed by
Mark Liversedge
parent
70f465f914
commit
6e175dfb91
@@ -2375,7 +2375,7 @@ void TrainSidebar::Higher()
|
||||
else slope += 0.1;
|
||||
|
||||
if (load >1500) load = 1500;
|
||||
if (slope >15) slope = 15;
|
||||
if (slope >40) slope = 40;
|
||||
|
||||
if (status&RT_MODE_ERGO)
|
||||
foreach(int dev, activeDevices) Devices[dev].controller->setLoad(load);
|
||||
@@ -2401,7 +2401,7 @@ void TrainSidebar::Lower()
|
||||
else slope -= 0.1;
|
||||
|
||||
if (load <0) load = 0;
|
||||
if (slope <-10) slope = -10;
|
||||
if (slope <-40) slope = -40;
|
||||
|
||||
if (status&RT_MODE_ERGO)
|
||||
foreach(int dev, activeDevices) Devices[dev].controller->setLoad(load);
|
||||
|
||||
@@ -159,7 +159,7 @@ void WorkoutEditorGradient::insertDataRow(int row)
|
||||
// distance
|
||||
table->setItem(row,0,new WorkoutItemDouble());
|
||||
// grade
|
||||
table->setItem(row,1,new WorkoutItemDoubleRange<-20,20>());
|
||||
table->setItem(row,1,new WorkoutItemDoubleRange<-40,40>());
|
||||
}
|
||||
|
||||
/// Workout Summary
|
||||
@@ -548,7 +548,7 @@ void GradientPage::initializePage()
|
||||
metricUnits = hackContext->athlete->useMetricUnits;
|
||||
setTitle(tr("Workout Wizard"));
|
||||
|
||||
setSubTitle(tr("Manually create a workout based on gradient (slope) and distance, maximum grade is 5."));
|
||||
setSubTitle(tr("Manually create a workout based on gradient (slope) and distance, maximum grade is +-40."));
|
||||
|
||||
QHBoxLayout *layout = new QHBoxLayout();
|
||||
setLayout(layout);
|
||||
@@ -666,10 +666,10 @@ void ImportPage::initializePage()
|
||||
spinGroupBox->setTitle(tr("Smoothing Parameters"));
|
||||
QLabel *gradeLabel = new QLabel(tr("Maximum Grade"));
|
||||
gradeBox = new QSpinBox();
|
||||
gradeBox->setValue(5);
|
||||
gradeBox->setMaximum(20);
|
||||
gradeBox->setMinimum(0);
|
||||
gradeBox->setToolTip(tr("Maximum supported grade is 8"));
|
||||
gradeBox->setValue(20);
|
||||
gradeBox->setMaximum(40);
|
||||
gradeBox->setMinimum(-40);
|
||||
gradeBox->setToolTip(tr("Maximum supported grade is +-40"));
|
||||
connect(gradeBox,SIGNAL(valueChanged(int)),this,SLOT(updatePlot()));
|
||||
|
||||
segmentBox = new QSpinBox();
|
||||
|
||||
Reference in New Issue
Block a user