IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 4, 2012, 9:48:44 AM (14 years ago)
Author:
eugene
Message:

the posangle was wrong : wrong args to atan2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceOutputs.c

    r34403 r34499  
    233233
    234234    float posAngle_x = atan2 (+dTPy_dCHx, +dTPx_dCHx);
    235     float posAngle_y = atan2 (-dTPy_dCHy, +dTPx_dCHy);
     235    float posAngle_y = atan2 (-dTPx_dCHy, +dTPy_dCHy);
    236236    *posAngle = 0.5*(posAngle_x + posAngle_y);
    237237
Note: See TracChangeset for help on using the changeset viewer.