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/imbox.c

    r19130 r19823  
    7070    for (j = 0; j < 4; j++) {
    7171      XY_to_RD (&r, &d, x[j], y[j], &coords);
     72      r = ohana_normalize_angle (r);
    7273      while ((j == 0) && (r < Rmin)) { flipped = TRUE; r += 360.0; }
    7374      while ((j == 0) && (r > Rmax)) { flipped = TRUE; r -= 360.0; }
Note: See TracChangeset for help on using the changeset viewer.