From 544d22f93bfb74fb3f7b78ff0b6df7777ebf5cb9 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sat, 18 Jun 2016 08:54:59 +0100 Subject: [PATCH] Increase Default Stride Length from 78 to 115cm .. 78cm is a typical walking stride length. .. we need to think about the best way to set this. --- src/ANT/ANTChannel.cpp | 2 +- src/Train/AddDeviceWizard.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ANT/ANTChannel.cpp b/src/ANT/ANTChannel.cpp index c4f1e3633..630476795 100644 --- a/src/ANT/ANTChannel.cpp +++ b/src/ANT/ANTChannel.cpp @@ -838,7 +838,7 @@ void ANTChannel::broadcastEvent(unsigned char *ant_message) if (fpCount==4) { // default or get config - double STRIDELENGTH=78; // in cm + double STRIDELENGTH=115; // 1.15m seems to be a common L2 pace stride length (?) if (parent->devConf) STRIDELENGTH=parent->devConf->stridelength; // convert to meters diff --git a/src/Train/AddDeviceWizard.cpp b/src/Train/AddDeviceWizard.cpp index 5512e2b18..7dd0c26e6 100644 --- a/src/Train/AddDeviceWizard.cpp +++ b/src/Train/AddDeviceWizard.cpp @@ -1192,7 +1192,7 @@ AddFinal::AddFinal(AddDeviceWizard *parent) : QWizardPage(parent), wizard(parent wheelSizeLayout->addWidget(wheelSizeUnitLabel); stridelengthEdit = new QLineEdit(this); - stridelengthEdit->setText("78"); + stridelengthEdit->setText("115"); QHBoxLayout *stridelengthLayout = new QHBoxLayout; stridelengthLayout->addWidget(stridelengthEdit); stridelengthLayout->addStretch();