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

    r15999 r19823  
    179179      status = XY_to_RD (&r[j], &d[j], x[j], y[j], &image[i].coords);
    180180      if (!status) break;
     181      r[j] = ohana_normalize_angle (r[j]);
    181182      while (r[j] < Rmin) { r[j] += 360.0; }
    182183      while (r[j] > Rmax) { r[j] -= 360.0; }
     
    216217          status = XY_to_RD (&r[j], &d[j], x[jp], y[jp], &image[i].coords);
    217218          if (!status) continue;
     219          r[j] = ohana_normalize_angle (r[j]);
    218220          while (r[j] < Rmin) { r[j] += 360.0; }
    219221          while (r[j] > Rmax) { r[j] -= 360.0; }
Note: See TracChangeset for help on using the changeset viewer.