diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index cef9497d8..d246acf05 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -856,7 +856,8 @@ endif () # For Satellite Tracker feature and APT demod if(ENABLE_FEATURE_SATELLITETRACKER OR ENABLE_CHANNELRX_DEMODAPT) - # No tags for this in github - but doesn't change often + # No tags for this in github. Pin the commit to keep builds reproducible. + set(SGP4_TAG 1c0d4ee99404538572037fabfdcbc7133917eae8) # Fails to build with CMAKE_INTERPROCEDURAL_OPTIMIZATION=ON on Windows if (WIN32) set(SGP4_LIBRARIES "${SDRANGEL_BINARY_LIB_DIR}/sgp4s.lib" CACHE INTERNAL "") @@ -867,6 +868,8 @@ if(ENABLE_FEATURE_SATELLITETRACKER OR ENABLE_CHANNELRX_DEMODAPT) endif() ExternalProject_Add(sgp4 GIT_REPOSITORY https://github.com/dnwrnr/sgp4.git + GIT_TAG ${SGP4_TAG} + UPDATE_DISCONNECTED TRUE PREFIX "${EXTERNAL_BUILD_LIBRARIES}/sgp4" CMAKE_ARGS ${COMMON_CMAKE_ARGS} -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF diff --git a/plugins/feature/satellitetracker/satellitetrackersgp4.cpp b/plugins/feature/satellitetracker/satellitetrackersgp4.cpp index 33022dc0b..c8afa0f38 100644 --- a/plugins/feature/satellitetracker/satellitetrackersgp4.cpp +++ b/plugins/feature/satellitetracker/satellitetrackersgp4.cpp @@ -499,7 +499,7 @@ void getSatelliteState(QDateTime dateTime, satState->m_azimuth = Units::radiansToDegrees(topo.azimuth); satState->m_elevation = Units::radiansToDegrees(topo.elevation); satState->m_range = topo.range; - satState->m_rangeRate = topo.range_rate; + satState->m_rangeRate = topo.rangeRate; OrbitalElements ele(tle); satState->m_speed = eci.Velocity().Magnitude(); satState->m_period = ele.Period();