Commit Graph

53 Commits

Author SHA1 Message Date
Krafpy
81e9869f3e Get atmospheres in CFG converter 2022-08-20 21:08:25 +02:00
Krafpy
4467a5095a Atmosphere height consideration
Added an optional `atmosphereAlt` paramater in bodies's descrptions.
The flyby calculation now prevents a periapsis altitude below
the atmosphere limit.
2022-08-20 20:28:36 +02:00
Krafpy
ac1a99f7ae Commented trajectory-solver.ts 2022-08-20 15:32:52 +02:00
Krafpy
337c1c26fc Combine with stock checkbox 2022-08-20 14:05:07 +02:00
Krafpy
c75ba94cf8 Added insertion burn checkbox. 2022-08-20 01:34:02 +02:00
Krafpy
f9968fd139 Fixed relative path access ? 2022-08-19 16:18:03 +02:00
Krafpy
916550b18d Added Korpernicus CFG converter
- Added tools/cfg-to-yml page
- Removed `sideralPeriod` parameter from data and `orbit.ts`
- Replaced `jnsq/bodies.yml` using the new converter
2022-08-19 16:01:51 +02:00
Krafpy
4dd1c9a6ce Added per-body epoch to reference mean anomalies
Each (orbiting) body now has a custom `epoch` attribute defining the
date (in seconds) to which `meanAnomaly0` refers to.
2022-08-18 01:51:42 +02:00
Krafpy
6a31a2e80a Fixed selectors on system change. 2022-07-22 12:57:07 +02:00
Krafpy
6b0a5b752e Fixed jumping mean anomaly. 2022-07-22 12:49:42 +02:00
Krafpy
d3d56674eb Fixed sprite display for JSNQ. 2022-07-22 00:35:41 +02:00
Krafpy
a88aea6472 Added solar system selector. 2022-07-21 21:30:52 +02:00
Krafpy
9a8cba06e6 Refactored main loading. 2022-07-21 19:14:48 +02:00
Krafpy
8cd4410f42 Updated comment. 2022-07-17 12:21:18 +02:00
Krafpy
475b0e9344 Missing comments. 2022-07-17 11:42:58 +02:00
Krafpy
7178bc2778 Implemented vessel sprite display. 2022-07-17 10:08:30 +02:00
Krafpy
0f96aedf80 Commented trajectory.ts 2022-07-16 22:04:56 +02:00
Krafpy
a569721f3c Starting mean anomalies for steps. 2022-07-16 21:35:31 +02:00
Krafpy
a399f72d3b Fixed sprites display on slider change. 2022-07-15 16:07:42 +02:00
Krafpy
b92cd8d8ed Maneuver sprite distance-based visibility. 2022-07-15 15:30:57 +02:00
Krafpy
b3ff88dd92 Custom functions to be run at each frame. 2022-07-15 13:48:27 +02:00
Krafpy
ca8f3e4c38 System object display update refactoring.
- Grouped satellites's and SOIs' visibility managment in a
`SolarSystem.update` member function
- The visibility of the satellites and their orbits depends on the
distance to their attractor and not to them.
2022-07-15 13:32:46 +02:00
Krafpy
b8ca14519e Added new sprites. 2022-07-13 22:59:36 +02:00
Krafpy
08f5d824d0 Iterative hasNaN. 2022-07-13 19:13:46 +02:00
Krafpy
e0f592cdba Added SOI display
- Added SOI checkbox in the editor
- Added management of SOI displays during rendering in `system.ts`
- Replaced body sprites with spheres
2022-07-12 17:35:18 +02:00
Krafpy
bded3bd1b2 Moved hasNaN to a new Utils namespace. 2022-07-12 10:48:33 +02:00
Krafpy
ed9ab0cf6c Refactoring and improvement of the evolution.
- `ChunkedEvolver` has been moved to a namespace `Evolution` to avoid
useless member functions.

- The DE algorithm now uses a dynamic CR coefficient, which increases
exponentially from `minCrossProba` to `maxCrossProba` at a rate
defined by `crossProbaIncr`.
2022-07-12 03:07:39 +02:00
Krafpy
951038fd91 Fixed delta-V and fitness separation. 2022-07-11 19:45:20 +02:00
Krafpy
8795b09366 More visible trajectory lines. 2022-07-11 12:12:46 +02:00
Krafpy
49e638adf9 Developed rotate3 maths. 2022-07-10 17:26:36 +02:00
Krafpy
44beeeb1b5 Added flyby details display in maneuvers selector. 2022-07-10 02:06:52 +02:00
Krafpy
8bc28a294e Fixes and improvements
- Reenabled second leg arcs recalculations
- Empirically tested new values for CR and F of the differential evolution
2022-07-08 18:56:37 +02:00
Krafpy
9b3f2d5c4a Circularization implementation and minor fixes
The circularization step is now taken in account, with custom
altitude.
Double click offset on navigators other than Chrome has been fixed.
2022-07-08 16:44:55 +02:00
Krafpy
15ac83d18c Removed second leg arcs recalcuation.
For resonant swing bys, it looks like it makes the solver
privilege orbits with high apoapsis. Looking for a way to fix it.
2021-12-24 18:58:06 +01:00
Krafpy
01a733fbd1 Moved NaN check to the optimizer script. 2021-12-24 17:35:12 +01:00
Krafpy
c7cc922ba6 Removed useless return. 2021-12-24 17:23:17 +01:00
Krafpy
0a130de36a Fixed unconnected second leg arc and flyby orbit. 2021-12-24 17:18:53 +01:00
Krafpy
1d7b74ef00 Trajectory evaluation fix and time display.
- Moved the second leg arc recalculation to the evaluation fonction,
so it is always calculated for every trajectories, not the
bes one only. It led to wrong "best" deltaV calculations.
- Fixed the accuracy of the system time when clicking on a date displayed
in maneuver details.
2021-12-24 16:26:51 +01:00
Krafpy
54ecc54b76 Removed commented code. 2021-12-24 02:23:07 +01:00
Krafpy
e7e05e0073 Removed old commented code. 2021-12-24 02:19:19 +01:00
Krafpy
a05c9e5c9d Major 3D physics and calculation update.
- The 3D physics functions have been moved into a `Physics3D` namespace
- The `TrajectoryCalculator` has been completely recoded and commented
- The `TrajectoryOptimizer` has been recoded accordingly
- Various optimizations focusing on reducing the number of costly
function calls
2021-12-24 02:06:12 +01:00
Krafpy
de1930c3e6 Renamed periapsisDir into periapsisVec in Physics2D. 2021-12-20 13:25:50 +01:00
Krafpy
0210eb9390 Renamings. 2021-12-20 13:17:17 +01:00
Krafpy
8da935b047 2D physics fix and error handling consistency
- Reimplemented 2D orbital mechanics functions in physics-2d.ts
and encaspulated inside a `Physics2D` namespace.
- Deleted physics.ts and moved the required functions into physics-3d.ts
Further cleaning and reimplemntation will be done on the physics-3d.ts
content.
- Forced consistency on error handling : every raised error throws
an `Error` object.
- Commented sections relative to 2D physics and sequence generation.
2021-12-19 17:19:30 +01:00
Krafpy
5f6c1b8a53 Added custom sequence input. 2021-08-21 00:47:28 +02:00
Krafpy
4cfdce73e4 Updated worker scripts structure.
Created a `WorkerEnvironment` class to contain the scripts
in the dedicated workers.
2021-08-20 16:38:29 +02:00
Krafpy
b405bc4675 Update orbit.ts 2021-08-18 14:11:12 +02:00
Krafpy
b7e2ec92ab Added circularization maneuver.
- Added circularization calculation in `TrajectoryCalculator` with new maneuver type
- Added display of the circularization step
- Edited the related paragraph in the page
2021-08-17 13:16:24 +02:00
Krafpy
506244f08e Updated time class.
- Renamed `TimeAndDate` to `KSPTime`
- Updated how date is displayed to match the in game display
2021-08-17 11:56:04 +02:00
Krafpy
7d19427d18 Recompile and moved files. 2021-08-16 13:39:41 +02:00