@sphera-it/orbit
v1.1.1
Published
This project is designed to visualize the orbits of spacecraft based on the SGP4/SDP4 ballistic models, in order to modify the ballistic parameters and evaluate the changes displayed on the Canvas using the ThreeJS library.
Maintainers
Readme
OrbitScene

Данный проект предназначен для визуализации орбит космических аппаратов, созданных на основе баллистических моделей SGP4/SDP4, с целью последующей модификации баллистических параметров и оценки изменений отображаемых на Canvas при помощи библиотеки ThreeJS
Сборка библиотеки
git clone https://gitflic.ru/project/sau_remote/orbitscene.git
npm install
npm run buildЗапуск и теcтирование
npm run previewУстановка библиотеки из репозитория NPM
npm install pkm/orbitИспользование
VueJS
<template>
<OrbitScene :props="props"></OrbitScene>
</template>
<script setup lang="ts">
import OrbitScene from './components/OrbitScene.vue'
import {Orbit} from '@pkm/orbit'
const props = new Orbit({
inclination: 98.3164,
raan: 103.8411,
semiMajorAxis: 6771,
eccentricity: 0.000583,
argOfPeriapsis: 20.5667,
trueAnomaly: 69.5789
})
</script>Описание параметров
export class Orbit {
constructor({
semiMajorAxis, // Большая полуось орбиты
eccentricity, // Эксцентриситет орбиты
inclination, // Наклонение орбиты
raan, // Долгота восходящего узла орбиты
argOfPeriapsis, // Аргумент перицентра орбиты
trueAnomaly // Истинная аномалия (для круговой орбиты допускается ввод средней аномалии)
}) {
return {
semiMajorAxis: semiMajorAxis,
eccentricity: eccentricity,
inclination: inclination,
raan: raan,
argOfPeriapsis: argOfPeriapsis,
trueAnomaly: trueAnomaly
}
}
}Отладка
npm run dev