\( \def\bold#1{\bf #1} \newcommand{\d}{\mathrm{d}} \) BTP: Manual and Source Code Documentation

Power Uphill

bike mass [kg]
body mass [kg]
altitude gain [m]
climb length [km]
gradient [%]
time [s]
speed [km/h]
power [W]
power/mass [W/kg]
climbrate [m/min]

average power on climb stage

BTP  3.0
Routing/ClimbAnalysis/PowerCalculation
webdata.h
1 #ifndef WEBDATA_H
2 #define WEBDATA_H
3 #include "osm.h"
4 #include "HeightData.h"
5 #include "MAP.h"
6 #include "strongcalc.h"
7 #include "Routing.h"
8 #include <QThread>
9 #include <QFileInfo>
10 #include <QProcess>
11 #include <QDir>
12 
13 enum RunModeWebData{CreateTilesBTP,CreateTiles,SplitEurope,ReadOSM,CreateHTML,CreateSTRONGLayers};
14 
16 typedef struct webdatacmd{
17  RunModeWebData mode;
18  double minlat, maxlat, minlon, maxlon;
22  int width;
23  int height;
24  config* c;
25  QString dest;
26  OSM* osm;
27  int z,x,y,dx,dy;
31  QString src;
32 }webdatacmd;
33 Q_DECLARE_METATYPE(webdatacmd)
34 
35 
42 class WebData:public QThread{
43 Q_OBJECT
44 public:
47  void run();
48  void exit();
49  webdatacmd w;
50 public slots:
51  void split_europe();
52 signals:
53  void add(webdatacmd* w);
54  void split(WebData* wd);
55 private:
56  QString dest;
57  void generate_map();
58  void generate_map_BTP();
59  void generate_STRONG();
60  void read_osm();
63  void analyse_climbs();
64 
65  double xztolon(int x, int z);
66  double yztolat(int y, int z);
67 
68 };
69 
70 #endif // WEBDATA_H
int y
Definition: webdata.h:29
QString dest
Definition: webdata.h:56
RunModeWebData mode
Definition: webdata.h:17
int width
rendering image size
Definition: webdata.h:22
int x
Definition: webdata.h:29
int z
Definition: webdata.h:29
creates data for web site
Definition: webdata.h:42
config * c
BTP configuration to be used.
Definition: webdata.h:24
double minlon
Definition: webdata.h:20
QString src
source file name
Definition: webdata.h:31
int dy
Definition: webdata.h:29
QString dest
destination file name
Definition: webdata.h:25
OSM * osm
Definition: webdata.h:26
int height
rendering image size
Definition: webdata.h:23
multithreading working command, defines the task to be executed
Definition: webdata.h:16
double minlat
Definition: webdata.h:20
int dx
Definition: webdata.h:29
double maxlon
Definition: webdata.h:20
BTP3 database, created from OpenStreetMap data.
Definition: osm.h:34
double maxlat
Definition: webdata.h:20
main user setting container
Definition: DataTyps.h:324