IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2008, 8:08:31 AM (18 years ago)
Author:
eugene
Message:

replace poor code with ohana_normalize_angle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/skycoverage.c

    r14590 r19823  
    128128      for (Xi = x[0] + 0.5*dPix; Xi < x[1]; Xi += dPix) {
    129129        XY_to_RD (&r, &d, Xi, Yi, &image[i].coords);
    130         while (r <   0.0) { r += 360.0; }
    131         while (r > 360.0) { r -= 360.0; }
     130        r = ohana_normalize_angle (r);
    132131        status = RD_to_XY (&Xs, &Ys, r, d, &coords);
    133132        if (status) {
Note: See TracChangeset for help on using the changeset viewer.