Skip to content

Commit 1aa5597

Browse files
committed
adjusted doppler formula
1 parent ce0673c commit 1aa5597

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gs/backend/positioning/doppler_shift.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def calculate_relative_velocity(
3535
"""
3636
@brief Computes relative velocity between satellite and observer
3737
@param satellite: EarthSatellite object
38-
@param observer_latitude_degree: Latitude of observer in degrees
38+
@param observer_latitude_deg: Latitude of observer in degrees
3939
@param observer_longitude_deg: Longitude of observer in degrees
4040
@param observer_altitude_m: Altitude of observer in meters
4141
@param time_current: Time for which relative velocity is being calculated
@@ -75,7 +75,7 @@ def compute_doppler_shift(frequency_hz: float, relative_velocity_m_s: float) ->
7575
@returns Doppler-shift frequency in Hz
7676
"""
7777
return frequency_hz * (
78-
((SPEED_OF_LIGHT_METERS_PER_SECOND + relative_velocity_m_s) / SPEED_OF_LIGHT_METERS_PER_SECOND) - 1
78+
SPEED_OF_LIGHT_METERS_PER_SECOND / (SPEED_OF_LIGHT_METERS_PER_SECOND + relative_velocity_m_s)
7979
)
8080

8181

0 commit comments

Comments
 (0)