Контур по параметрам съемочного устройства

This commit is contained in:
emelianov
2026-06-15 15:38:09 +03:00
parent 60ddec0928
commit 88fb380be4
4 changed files with 83 additions and 9 deletions
@@ -21,6 +21,7 @@ import space.nstart.pcp.pcp_types_lib.dto.ballistics.ExactTimePositionRequestDTO
import space.nstart.pcp.pcp_types_lib.dto.ballistics.OrbPointDTO
import kotlin.math.PI
import kotlin.math.abs
import kotlin.math.atan
import kotlin.math.max
import kotlin.math.roundToLong
@@ -91,7 +92,8 @@ class AngularMotionService(
} catch (error: RuntimeException) {
throw CustomValidationException(error.message ?: "Ошибка расчета ПУУД")
}
val contourWkt = SurveyContourCalculator(EarthType.PZ90d02).calculate(result, request.captureAngleDeg)
val contourWkt = SurveyContourCalculator(EarthType.PZ90d02).calculate(result, 0.0, AngularMotionConfig().focus * atan(request.captureAngleDeg * PI / 180),
AngularMotionConfig().focus)
return AngularMotionCalculationResultDTO(
mode = result.mode,