//Beginn wrapper (Sammeln der Daten) int ips::wrapper() { int numstations =9; int i = 0; int j = 0; for (i=0;i<numstations;i++) { if ((posStation[i][3]==1) && (gettimef(i)!=0)) { qDebug()<<"Nummer i"<<i; base_x[j] = posStation[i][0]; //Die Koordinaten der base_y[j] = posStation[i][1]; //Bodenstationen werden base_z[j] = posStation[i][2]; //abgepeichert //Berechnung des Abstandes des Zeppelins zu den einzelnen Bodenstationen anhand der Laufzeiten r[j] = gettimef(i)*0.343; j++; } } qDebug()<<"Anzahl"<<j; n = j; if (xList.size()!=0){ start_x = xList.at(0); start_y = yList.at(0); start_z = 5000;//zList.at(0); } else { start_x = 0; start_y = 0; start_z = 5000; } rechne(); pos_filter(); qDebug()<<"Position z"<<posz; qDebug() << "Posx: " << xList.at(0) << "Posy: " << yList.at(0) <<"Posz: "<< zList.at(0); int genauigkeit = BetragVektor(posx, posy, xList.at(0), yList.at(0)); return genauigkeit; }
double wrapper (double station[][3], double start[3], double radius[], int nn, double *refx, double *refy, double *refz) { int i=0; for (i=0;i<nn;i++) { base_x[i] = station[i][0]; base_y[i] = station[i][1]; base_z[i] = station[i][2]; r[i] = radius[i]; } n = nn; start_x = start[0]; start_y = start[1]; start_z = start[2]; rechne(); *refx = posx; *refy = posy; *refz = posz; double genauigkeit = 0.0; return genauigkeit; }