Menu

#2 tcm from outside target body orbit is not accurate

1.0
open
None
2023-02-04
2019-06-08
No

See title.

Discussion

  • Stäphen Goedzal

    • summary: tcm from outside body orbit is not accurate --> tcm from outside target body orbit is not accurate
     
  • Stäphen Goedzal

    Probably due to miscalculation of hyperbolic velocity. Particularly, the angle.

    B-frame maths seems to work nicely.

     

    Last edit: Stäphen Goedzal 2019-06-20
  • Stäphen Goedzal

    Figure out how to do lambertSolver() giving R1,V1,R2,V2 instead of R1,V1,R2,T (because we don't care about time; we never care about time, its space travel, for fucks sake),.
    That will give a proper normal to the B-plane instead of having to make it up and it should be several orders of magnitude more accurate.

     

    Last edit: Stäphen Goedzal 2020-08-23
  • Stäphen Goedzal

    The problem seems to be we cant figure out V2 accurately enough. KSP/kOS might not be able to calculate it well enough - it should be close to 90°,, but not exactly and the furthur away you are, the bigger the error.

     
  • Stäphen Goedzal

    I just noticed unity only uses 32-bit maths, so it will always be horribly wrong.
    Recommend only using tcm when closer to the body - it becomes more accurate as you get closer.
    Most recent attempt achieved 38km from a requested 40km orbit around Minmus. That was run a little over 1/2 way there.

     

    Last edit: Stäphen Goedzal 2021-05-12
  • Stäphen Goedzal

    correctout4() seems to be pretty precice, though not very accurate. We can now even run tcm before the periapse!
    Still working on it...

     
  • Stäphen Goedzal

    Some of the errors may have been caused by slightly inaccurate R2 vectors fed into the lambert solver. r97 has this fixed and tested. It is still slightly off but as mentioned above it's most probably caused by having to "guess" V2 (hyperbolic velocity).

     

    Last edit: Stäphen Goedzal 2023-02-04

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.