-
-
Notifications
You must be signed in to change notification settings - Fork 804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navstar Sun limb size and direction fix #2021
Conversation
…ogic correction for +/- direction
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
double obj_radius_in_degrees = selectedObject->getAngularSize(core); | ||
if (!upperLimb) | ||
obj_radius_in_degrees *= -1; | ||
calc.addAltAppRad((obj_radius_in_degrees * M_PI) / 180.); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@A-j-K congratulations for using expressive variable names! and I love your copious use of whitespace (see higher in the code).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems OK for me.
Hello @A-j-K! Please check the fresh version (development snapshot) of Stellarium: |
Hello @A-j-K! Please check the latest stable version of Stellarium: |
Use actual radius as returned and not assumed diameter. Also a bool logic correction for +/- direction
Description
The value of Ho as displayed in the extrainfo panel was incorrect and failed to match other tools such as the Pointing Tool or AltAz grid.
Fixes reported issue #2019
As patch;
selectedObject->getAngularSize(core); returns radius not diameter
Logic on upperLimb was inverted.
n/a
None.
Fixes # (issue)
#2019
Type of change
How Has This Been Tested?
Created new test scripts that setup Stellarium with place, date and time as reported in issue 2019.
Observed fault.
Fixed.
Run script again and observed correct.
Also created script for Northern hemisphere to double check the fix (the report was for a location in the Southern hemisphere but was broke in both).
n/a
n/a
Checklist: