1 #ifndef POWERANALYSIS_H 
    2 #define POWERANALYSIS_H 
    6 #include <QtWidgets/QLabel> 
    7 #include <QtWidgets/QLineEdit> 
    8 #include <QtWidgets/QPushButton> 
    9 #include <QtWidgets/QCheckBox> 
   10 #include <QtWidgets/QMessageBox> 
   11 #include <QtWidgets/QLayout> 
   12 #include <QtWidgets/QSlider> 
   14 #include "btp3setups.h" 
   15 #include <QtWidgets/QPlainTextEdit> 
   22     Inputs(QString labeltext,
double min, 
double max, 
double* 
v);
 
   43     void set_para(
double *ws, 
double *wd);
 
   44     void paintEvent(QPaintEvent *);
 
   45     void resizeEvent(QResizeEvent *);
 
   46     void mouseReleaseEvent(QMouseEvent *event);
 
   52     void refresh_pixmap();
 
   94     double get_v(
double d);             
 
   97     double get_P(
double d);             
 
   98     double get_v(
double dmin, 
double dmax);
 
  101     double get_P(
double dmin, 
double dmax);
 
  110     void show_slopespeed_table();
 
  138     double vmax(
double slope, 
double direction);
 
  140     double veff(
double v, 
double direction);
 
  142     double rho(
double h);
 
  148     double P(
double v,
double slope, 
double direction, 
double rho0);
 
  150     double cwA(
double v);
 
  164     QPushButton bdefault;
 
  166     QPushButton btoggletimestamp;
 
  169     QPlainTextEdit textbox;
 
  182     double* d[9],ds,Ebrake,Eout,*Pdata[2],*vdata[2];
 
  187 #endif // POWERANALYSIS_H 
double get_P()
return average power 
void track_to_data(Track *t)
extracs calculation data 
double ** get_vdata()
returns data array pointer 
double ** get_Pdata()
returns data array pointer 
double vwind
wind velocity 
double * plotdata[2]
container to collect plotting data 
plot2D Pv
user defined power output 
double rho(double h)
physics: air pressure dependend from height (barometric formula) 
void update_cwAl(double v)
update info label 
int get_datacount()
returns data array length 
double cwA(double v)
velocity depend cwA value, parametrised with fermi function 
void update_Pvl(double v)
update info label 
void set_default_refresh()
reset PowerAnalysisSetting s 
setting for poweranalysis 
plot2D cwAv
user defined cwA value 
double get_v()
return average velocity 
void recalced()
informs about finished calculation 
void draw_Pv()
draw P(v) distriubtion 
double vmax(double slope, double direction)
physics: calculate the resulting velocity from P(v) at specific slope 
define wind strength and direction by clicking a wind rose picture 
official representation of Track in BTP3 
double bft_to_mpros()
wind speed in m/s from beaufort 
plotting 2D-Data sets as the height profile of a track or poweranalysis data 
double T(double h)
physics: temperature from height with 0.7 K/100m temperature decrease 
void set_default(PowerAnalysisSetting *s)
apply default setting to the PowerAnalysisSetting s 
void toggle_timestamp()
makes poweranalysis ignoring or subordinate time stamp 
double P(double v)
velocity depend output power, parametrised with fermi function 
QLabel cwAvl
plot2d info area 
WindLabel * wl
wind visualization 
QCheckBox fwcb
fight wind checkbox 
Inputs * ip[15]
user interface 
void calc_power()
execute the calculation 
double get_t(double d)
interpolate time in data 
power calculation for height-distance datasets 
void draw_cwAv()
draw cwA(v) distriubtion 
bool timeexisting
is time data existing? 
int count
data array length 
int isready()
returns whether data is loaded 
PowerAnalysisSetting * s
assigned settings to be used 
PowerAnalysisSetting s0
intrinsic settings 
void calc_track(Track *t)
calc power from P(v) distribution 
void toggle_fightwind()
switch wind handling in fightwind of PowerAnalysisSetting 
double veff(double v, double direction)
physics: total air speed from movement speed v and wind 
plot2D Pt
calculated power-time distriubtion