Replies: 2 comments
-
Hello, It appears that the unit tests of the groundLocation module (the only BSk module to ever call PCPF2LLA() at Update()) do not actually call this function, and as such this bug may have gone unnoticed until now. In summary, a fix is required, as well as an augmented unit test. |
Beta Was this translation helpful? Give feedback.
-
Howdy Michael and Ben, had a chance to look at this and yes, this |
Beta Was this translation helpful? Give feedback.
-
I may have identified a potential bug in geodeticConversion::PCPF2LLA. The latitude is computed as:
llaPosition[0] = atan2( sqrt(pow(pcpfPosition[0],2.) + pow(pcpfPosition[1],2.)), pcpfPosition.norm());
I believe this should be:
llaPosition[0] = atan2(pcpfPosition[2], sqrt(pow(pcpfPosition[0], 2.0) + pow(pcpfPosition[1], 2.0)));
Is this function depreciated, or is a fix required?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions