Aircraft Position Program in C

CUTM  *tqc (time_diff, aircraft_altitude, radar_altitude,
            radar_angle, radar_utm)
  long time_diff, aircraft_altitude, radar_altitude,
       radar_angle;
  CUTM  *radar_utm;
  {
    long out7;
    CUTM  *output;
    float d3, out8, x5, y3, x6;
    CUTM  *relpos,  *glvar4796;
    out7 = aircraft_altitude - radar_altitude;
    d3 = 2.997925E8 * time_diff;
    out8 = d3 / 2;
    x5 = sqrt(square(out8) - 9.2903039999999988E14
                             * lsquare(out7));
    y3 = x5 * sin(0.0015339807878856412 * radar_angle);
    x6 = x5 * cos(0.0015339807878856412 * radar_angle);
    relpos = (CUTM*) malloc(sizeof(CUTM));
    relpos-> north = 1.0000000000000001E-7 * y3;
    relpos-> east = 1.0000000000000001E-7 * x6;
    glvar4796 = (CUTM*) malloc(sizeof(CUTM));
    glvar4796-> east = relpos-> east + radar_utm-> east;
    glvar4796-> north = relpos-> north + radar_utm-> north;
    output = glvar4796;
    return output;
  }

Contents    Page-10    Prev    Next    Page+10    Index