-
Notifications
You must be signed in to change notification settings - Fork 31
Emilyyu/doppler shift calc changes #668
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
base: main
Are you sure you want to change the base?
Conversation
Pull reviewers statsStats of the last 120 days for UWOrbital:
|
camspec
left a comment
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.
Looks good but we should double-check the formula, if we could get a confirmation from Finn it would be nice but that may not be possible
| """ | ||
| @brief Computes relative velocity between satellite and observer | ||
| @param satellite: EarthSatellite object | ||
| @param observer_latitude_degree: Latitude of observer in degrees |
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.
This docstring should match the param name
| @returns Doppler-shift frequency in Hz | ||
| """ | ||
| return frequency_hz * ( | ||
| ((SPEED_OF_LIGHT_METERS_PER_SECOND + relative_velocity_m_s) / SPEED_OF_LIGHT_METERS_PER_SECOND) - 1 |
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.
Finn might've made a mistake with his formula, this simplifies to frequency_hz * (relative_velocity_m_s / speed of light), but I'm pretty sure it's frequency_hz * (speed of light / (speed of light + relative_velocity_m_s))
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.
We're trying to get the observed frequency itself but this seems closer to an approximation of the shift
Purpose
Closes #355
Addresses changes requested to doppler shift calculator
New Changes
Addresses changes requested to doppler shift calculator
Testing
Outstanding Changes
If there are non-critical changes (i.e. additional features) that can be made to this feature in the future, indicate them here.