Modified copyright notice.

This commit is contained in:
2025-12-26 14:07:55 +01:00
parent 3ff995d547
commit fcfa61c16c
23 changed files with 714 additions and 274 deletions

31
bc.cpp
View File

@@ -1,3 +1,34 @@
/***************************************************************************
BionxControl
Copyright © 2025 christoph holzheuer
christoph.holzheuer@gmail.com
Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org
Bionx Bike Info
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
@see https://github.com/bikemike/bionx-bikeinfo
***************************************************************************/
#include <QElapsedTimer> #include <QElapsedTimer>
#include <QApplication> #include <QApplication>

13
bc.h
View File

@@ -6,6 +6,13 @@
Using: Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97 BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org> © 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org @see www.bigxionflasher.org
@@ -14,11 +21,6 @@
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de) © 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de @see www.ts-soft.de
mhs_can_drv.c 3.00
© 2011 - 2015 by MHS-Elektronik GmbH & Co. KG, Germany
Demlehner Klaus, info@mhs-elektronik.de
@see www.mhs-elektronik.de
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or the Free Software Foundation; either version 3 of the License, or
@@ -28,6 +30,7 @@
***************************************************************************/ ***************************************************************************/
#ifndef BC_H #ifndef BC_H
#define BC_H #define BC_H

View File

@@ -1,3 +1,35 @@
/***************************************************************************
BionxControl
Copyright © 2025 christoph holzheuer
christoph.holzheuer@gmail.com
Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org
Bionx Bike Info
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
@see https://github.com/bikemike/bionx-bikeinfo
***************************************************************************/
#include <QDebug> #include <QDebug>
#include <bccandriver.h> #include <bccandriver.h>

View File

@@ -1,3 +1,35 @@
/***************************************************************************
BionxControl
Copyright © 2025 christoph holzheuer
christoph.holzheuer@gmail.com
Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org
Bionx Bike Info
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
@see https://github.com/bikemike/bionx-bikeinfo
***************************************************************************/
#ifndef BCCANDRIVER_H #ifndef BCCANDRIVER_H
#define BCCANDRIVER_H #define BCCANDRIVER_H

View File

@@ -1,3 +1,35 @@
/***************************************************************************
BionxControl
Copyright © 2025 christoph holzheuer
christoph.holzheuer@gmail.com
Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org
Bionx Bike Info
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
@see https://github.com/bikemike/bionx-bikeinfo
***************************************************************************/
#include <QDebug> #include <QDebug>
#include <QRandomGenerator> #include <QRandomGenerator>

View File

@@ -1,3 +1,35 @@
/***************************************************************************
BionxControl
Copyright © 2025 christoph holzheuer
christoph.holzheuer@gmail.com
Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org
Bionx Bike Info
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
@see https://github.com/bikemike/bionx-bikeinfo
***************************************************************************/
#ifndef BCCANDRIVERTINYCAN_H #ifndef BCCANDRIVERTINYCAN_H
#define BCCANDRIVERTINYCAN_H #define BCCANDRIVERTINYCAN_H

View File

@@ -6,6 +6,13 @@
Using: Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97 BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org> © 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org @see www.bigxionflasher.org
@@ -14,11 +21,6 @@
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de) © 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de @see www.ts-soft.de
mhs_can_drv.c 3.00
© 2011 - 2015 by MHS-Elektronik GmbH & Co. KG, Germany
Demlehner Klaus, info@mhs-elektronik.de
@see www.mhs-elektronik.de
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or the Free Software Foundation; either version 3 of the License, or

View File

@@ -4,7 +4,10 @@
Copyright © 2025 christoph holzheuer Copyright © 2025 christoph holzheuer
christoph.holzheuer@gmail.com christoph.holzheuer@gmail.com
Using: Using: mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
BigXionFlasher USB V 0.2.4 rev. 97 BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org> © 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@@ -30,6 +33,37 @@
#ifndef BCDATAMANAGER_H #ifndef BCDATAMANAGER_H
#define BCDATAMANAGER_H #define BCDATAMANAGER_H
/***************************************************************************
BionxControl
Copyright © 2025 christoph holzheuer
christoph.holzheuer@gmail.com
Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org
Bionx Bike Info
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
@see https://github.com/bikemike/bionx-bikeinfo
***************************************************************************/
#include <QMap> #include <QMap>
#include <QXmlStreamReader> #include <QXmlStreamReader>

View File

@@ -6,6 +6,13 @@
Using: Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97 BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org> © 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org @see www.bigxionflasher.org
@@ -14,11 +21,6 @@
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de) © 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de @see www.ts-soft.de
mhs_can_drv.c 3.00
© 2011 - 2015 by MHS-Elektronik GmbH & Co. KG, Germany
Demlehner Klaus, info@mhs-elektronik.de
@see www.mhs-elektronik.de
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or the Free Software Foundation; either version 3 of the License, or

View File

@@ -6,6 +6,13 @@
Using: Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97 BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org> © 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org @see www.bigxionflasher.org
@@ -14,11 +21,6 @@
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de) © 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de @see www.ts-soft.de
mhs_can_drv.c 3.00
© 2011 - 2015 by MHS-Elektronik GmbH & Co. KG, Germany
Demlehner Klaus, info@mhs-elektronik.de
@see www.mhs-elektronik.de
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or the Free Software Foundation; either version 3 of the License, or
@@ -28,6 +30,7 @@
***************************************************************************/ ***************************************************************************/
#ifndef BCDATAMODEL_H #ifndef BCDATAMODEL_H
#define BCDATAMODEL_H #define BCDATAMODEL_H

View File

@@ -6,6 +6,13 @@
Using: Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97 BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org> © 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org @see www.bigxionflasher.org
@@ -14,11 +21,6 @@
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de) © 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de @see www.ts-soft.de
mhs_can_drv.c 3.00
© 2011 - 2015 by MHS-Elektronik GmbH & Co. KG, Germany
Demlehner Klaus, info@mhs-elektronik.de
@see www.mhs-elektronik.de
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or the Free Software Foundation; either version 3 of the License, or
@@ -27,6 +29,7 @@
***************************************************************************/ ***************************************************************************/
#include <QMetaEnum> #include <QMetaEnum>
#include <bcdatavalue.h> #include <bcdatavalue.h>

View File

@@ -6,6 +6,13 @@
Using: Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97 BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org> © 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org @see www.bigxionflasher.org
@@ -14,11 +21,6 @@
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de) © 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de @see www.ts-soft.de
mhs_can_drv.c 3.00
© 2011 - 2015 by MHS-Elektronik GmbH & Co. KG, Germany
Demlehner Klaus, info@mhs-elektronik.de
@see www.mhs-elektronik.de
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or the Free Software Foundation; either version 3 of the License, or

View File

@@ -1,3 +1,35 @@
/***************************************************************************
BionxControl
Copyright © 2025 christoph holzheuer
christoph.holzheuer@gmail.com
Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org
Bionx Bike Info
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
@see https://github.com/bikemike/bionx-bikeinfo
***************************************************************************/
#include <QSlider> #include <QSlider>
#include <QLabel> #include <QLabel>
#include <QHBoxLayout> #include <QHBoxLayout>

View File

@@ -1,3 +1,34 @@
/***************************************************************************
BionxControl
Copyright © 2025 christoph holzheuer
christoph.holzheuer@gmail.com
Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org
Bionx Bike Info
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
@see https://github.com/bikemike/bionx-bikeinfo
***************************************************************************/
#ifndef BCITEMDELEGATE_H #ifndef BCITEMDELEGATE_H
#define BCITEMDELEGATE_H #define BCITEMDELEGATE_H

View File

@@ -6,6 +6,13 @@
Using: Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97 BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org> © 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org @see www.bigxionflasher.org
@@ -14,11 +21,6 @@
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de) © 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de @see www.ts-soft.de
mhs_can_drv.c 3.00
© 2011 - 2015 by MHS-Elektronik GmbH & Co. KG, Germany
Demlehner Klaus, info@mhs-elektronik.de
@see www.mhs-elektronik.de
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or the Free Software Foundation; either version 3 of the License, or
@@ -27,24 +29,37 @@
***************************************************************************/ ***************************************************************************/
#include <bcmainwindow.h> #include <bcmainwindow.h>
#include <bcitemdelegate.h> #include <bcitemdelegate.h>
#include <ui_bcmainwindow.h> #include <ui_bcmainwindow.h>
/**
* @brief Das Mainwindow erzeugen
* @param parent
*/
BCMainWindow::BCMainWindow(QWidget *parent) BCMainWindow::BCMainWindow(QWidget *parent)
: QMainWindow(parent) : QMainWindow(parent)
{ {
setupUi(this); setupUi(this);
// Die actions an die Buttons binden
_motorButton->setDefaultAction( _motorAction); _motorButton->setDefaultAction( _motorAction);
_consoleButton->setDefaultAction( _consoleAction ); _consoleButton->setDefaultAction( _consoleAction );
_batteryButton->setDefaultAction( _batteryAction ); _batteryButton->setDefaultAction( _batteryAction );
_pimpButton->setDefaultAction( _pimpAction); _pimpButton->setDefaultAction( _pimpAction);
_valueManager.loadXmlBikeData(); // die Daten des eBikes laden
auto model = _valueManager.getModel( BCDevice::ID::Console ); _dataManager.loadXmlBikeData();
// Die Daten und auch die Datenmodelle für die Views werden
// vom DataManager verwaltet und an die Views weitergereicht.
auto model = _dataManager.getModel( BCDevice::ID::Console );
_consolePanel->getValueView()->setModel( model.v );
/* /*
if( model) if( model)
{ {
@@ -68,13 +83,13 @@ BCMainWindow::BCMainWindow(QWidget *parent)
// Highlight mit Fade-Out: // Highlight mit Fade-Out:
//_delegate->onHighlightRow(2); // 2 Sekunden Fade //_delegate->onHighlightRow(2); // 2 Sekunden Fade
BCTransmitter* transmitter = _valueManager.getTransmitter(); BCTransmitter* transmitter = _dataManager.getTransmitter();
// besser: model::emit dataChanged // besser: model::emit dataChanged
// also: emit dataChanged(index, index, {Qt::DisplayRole, Qt::EditRole, ValueRole}); // also: emit dataChanged(index, index, {Qt::DisplayRole, Qt::EditRole, ValueRole});
connect( &_valueManager, &BCDataManager::valueTouched, _delegate, &BCItemDelegate::onHighlightRow ); connect( &_dataManager, &BCDataManager::valueTouched, _delegate, &BCItemDelegate::onHighlightRow );
connect( _connectButton, &QPushButton::clicked, transmitter, &BCTransmitter::onToggleConnectionState ); connect( _connectButton, &QPushButton::clicked, transmitter, &BCTransmitter::onToggleConnectionState );
connect( _syncButton, &QPushButton::clicked, &_valueManager, &BCDataManager::onSyncFromDevice ); connect( _syncButton, &QPushButton::clicked, &_dataManager, &BCDataManager::onSyncFromDevice );
*/ */
} }
@@ -82,10 +97,38 @@ BCMainWindow::BCMainWindow(QWidget *parent)
BCMainWindow::~BCMainWindow() BCMainWindow::~BCMainWindow()
{ {
} }
void BCMainWindow::initData()
{
// Die Daten und auch die Datenmodelle für die Views werden
// vom DataManager verwaltet und an die Views weitergereicht.
auto setDeviceModel = [&]( BCDevice::ID deviceID, BCDevicePanel* panel )
{
auto model = _dataManager.getModel( deviceID );
if( model)
{
QAbstractItemView* valueView = panel->getValueView();
valueView->setModel( *model );
//valueView->resizeColumnsToContents();
//_valueView->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
}
};
_dataManager.loadXmlBikeData();
}
void BCMainWindow::onConnectButtonToggled(bool checked ) void BCMainWindow::onConnectButtonToggled(bool checked )
{ {
//_valueManager.setDriverConnectionState( checked ); //_dataManager.setDriverConnectionState( checked );
} }

View File

@@ -6,6 +6,13 @@
Using: Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97 BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org> © 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org @see www.bigxionflasher.org
@@ -14,11 +21,6 @@
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de) © 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de @see www.ts-soft.de
mhs_can_drv.c 3.00
© 2011 - 2015 by MHS-Elektronik GmbH & Co. KG, Germany
Demlehner Klaus, info@mhs-elektronik.de
@see www.mhs-elektronik.de
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or the Free Software Foundation; either version 3 of the License, or
@@ -27,6 +29,7 @@
***************************************************************************/ ***************************************************************************/
#ifndef BCMAINWINDOW_H #ifndef BCMAINWINDOW_H
#define BCMAINWINDOW_H #define BCMAINWINDOW_H
@@ -53,7 +56,9 @@ public slots:
protected: protected:
BCDataManager _valueManager; void initData();
BCDataManager _dataManager;
AnimatedDelegate* _delegate; AnimatedDelegate* _delegate;

View File

@@ -21,12 +21,6 @@
<string notr="true">background-color: grey;</string> <string notr="true">background-color: grey;</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QWidget" name="widget" native="true">
<property name="styleSheet">
<string notr="true">background-color: #aaaaaa;</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<widget class="BCToolButton" name="_pimpButton"> <widget class="BCToolButton" name="_pimpButton">
<property name="minimumSize"> <property name="minimumSize">
@@ -46,25 +40,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="BCToolButton" name="_batteryButton">
<property name="minimumSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
</widget>
</item>
<item> <item>
<widget class="BCToolButton" name="_motorButton"> <widget class="BCToolButton" name="_motorButton">
<property name="minimumSize"> <property name="minimumSize">
@@ -84,6 +59,25 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="BCToolButton" name="_batteryButton">
<property name="minimumSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="text">
<string>...</string>
</property>
<property name="iconSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
</widget>
</item>
<item> <item>
<widget class="BCToolButton" name="_consoleButton"> <widget class="BCToolButton" name="_consoleButton">
<property name="minimumSize"> <property name="minimumSize">
@@ -103,9 +97,6 @@
</property> </property>
</widget> </widget>
</item> </item>
</layout>
</widget>
</item>
<item> <item>
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation"> <property name="orientation">
@@ -114,11 +105,18 @@
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>20</width> <width>20</width>
<height>227</height> <height>239</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
<item>
<widget class="QPushButton" name="_syncButton">
<property name="text">
<string>Sync</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="_connectButton"> <widget class="QPushButton" name="_connectButton">
<property name="text"> <property name="text">
@@ -129,13 +127,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="_syncButton">
<property name="text">
<string>Sync</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>

View File

@@ -1,3 +1,35 @@
/***************************************************************************
BionxControl
Copyright © 2025 christoph holzheuer
christoph.holzheuer@gmail.com
Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org
Bionx Bike Info
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
@see https://github.com/bikemike/bionx-bikeinfo
***************************************************************************/
#include <QThread> #include <QThread>
#include <QDebug> #include <QDebug>

View File

@@ -1,3 +1,35 @@
/***************************************************************************
BionxControl
Copyright © 2025 christoph holzheuer
christoph.holzheuer@gmail.com
Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org
Bionx Bike Info
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
@see https://github.com/bikemike/bionx-bikeinfo
***************************************************************************/
#ifndef BCTRANSMITTER_H #ifndef BCTRANSMITTER_H
#define BCTRANSMITTER_H #define BCTRANSMITTER_H

View File

@@ -1,3 +1,35 @@
/***************************************************************************
BionxControl
Copyright © 2025 christoph holzheuer
christoph.holzheuer@gmail.com
Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org
Bionx Bike Info
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
@see https://github.com/bikemike/bionx-bikeinfo
***************************************************************************/
#include <bcvaluetype.h> #include <bcvaluetype.h>
#include <bcdatavalue.h> #include <bcdatavalue.h>

View File

@@ -1,3 +1,35 @@
/***************************************************************************
BionxControl
Copyright © 2025 christoph holzheuer
christoph.holzheuer@gmail.com
Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org
Bionx Bike Info
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
@see https://github.com/bikemike/bionx-bikeinfo
***************************************************************************/
#ifndef BCVALUETYPE_H #ifndef BCVALUETYPE_H
#define BCVALUETYPE_H #define BCVALUETYPE_H

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject> <!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 18.0.1, 2025-12-26T11:01:19. --> <!-- Written by QtCreator 18.0.1, 2025-12-26T13:09:10. -->
<qtcreator> <qtcreator>
<data> <data>
<variable>EnvironmentId</variable> <variable>EnvironmentId</variable>

View File

@@ -6,6 +6,13 @@
Using: Using:
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
Based on Bionx data type descriptions from:
BigXionFlasher USB V 0.2.4 rev. 97 BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org> © 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org @see www.bigxionflasher.org
@@ -14,11 +21,6 @@
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de) © 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de @see www.ts-soft.de
mhs_can_drv.c 3.00
© 2011 - 2015 by MHS-Elektronik GmbH & Co. KG, Germany
Demlehner Klaus, info@mhs-elektronik.de
@see www.mhs-elektronik.de
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or the Free Software Foundation; either version 3 of the License, or