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/cmd.astro/drizzle.c

    r8427 r19823  
    221221  *phi   = DEG_RAD*atan2(y,x) + rot_phi;
    222222 
    223   while (*phi <   0.0) *phi += 360.0;
    224   while (*phi > 360.0) *phi -= 360.0;
     223  *phi = ohana_normalize_angle(*phi);
    225224  return (TRUE);
    226225}
Note: See TracChangeset for help on using the changeset viewer.