Meadville Space Center
Welcome, Guest. Please login or register.
July 14, 2020, 06:31:08 PM

Login with username, password and session length
Search:     Advanced search
Gemini 060615 released!
25068 Posts in 2094 Topics by 2266 Members
Latest Member: twa517
* Home Help Search Login Register
+  Meadville Space Center
|-+  Project Apollo - NASSP
| |-+  Project Apollo - NASSP Development
| | |-+  Programming (Moderators: movieman, dseagrav, Swatch, lassombra)
| | | |-+  Auto vAGC State Vector Update
« previous next »
Pages: [1] 2 3 ... 10 Print
Author Topic: Auto vAGC State Vector Update  (Read 33014 times)
bluespace88
Project Team Member
Full Member
****
Posts: 241



View Profile
« on: April 13, 2008, 12:01:34 PM »

Hello

I just joined the dev team, and this will be my first time doing programming with Orbiter.  Pretty much continuing the work schneci did (from scratch) before he left, unless he miraculously reappears.  As requested by Tschachim, it will be in PAMFD.  And as such, I'll probably be asking for some help here and there.
Logged
lassombra
Moderator
Sr. Member
****
Posts: 410


View Profile Email
« Reply #1 on: April 13, 2008, 12:23:36 PM »

Welcome aboard.  I'll happily help where I can, though no one knows their way around PAMFD like Tschachim.
Logged

My current Project Apollo work:

Quickstart to the Moon initiative (Quickstart_to_the_Moon): Done through earth orbit.  Working on new method of calculating TLI.

Checklist Controller: 
  • MFD Interface 99%(Minor cleanup and future features remain)
  • Panel Interface 99%
  • Excel interface and logic 99%
  • LEM Event code.0%
  • DSKY Interface code. Framework complete, creating "buttons"
  Approximately 80% done. (Checklist Controller
bluespace88
Project Team Member
Full Member
****
Posts: 241



View Profile
« Reply #2 on: April 14, 2008, 02:16:50 AM »

thanks.  Right now, I'm just trying to understand the procedure used to get the emem values.  And thanks for the tip, I'll be sure to ask Tschachim about integrating it into PAMFD.
Logged
bluespace88
Project Team Member
Full Member
****
Posts: 241



View Profile
« Reply #3 on: April 14, 2008, 08:09:03 AM »

ok, I got the algorithm going using the data from the excel sheet and a few shortcuts.  I'm going to need some help getting a screen up on PAMFD and actually getting the state vectors from Orbiter for the calculations. 
Logged
Tschachim
Project Apollo - NASSP
Administrator
Hero Member
*****
Posts: 3700


nassp.sf.net


View Profile WWW
« Reply #4 on: April 14, 2008, 09:19:35 AM »

I'm going to need some help getting a screen up on PAMFD...

For me it's fine if you add that to the GNC screen, this screen doesn't do much except displaying some values to compare with P11 anyway.

...and actually getting the state vectors from Orbiter for the calculations.

That would be something like:

VECTOR3 vel, pos;
OBJHANDLE planet = saturn->GetGravityRef();
saturn->GetRelativeVel(planet, vel);
saturn->GetRelativePos(planet, pos);


Cheers
Tschachim
« Last Edit: April 14, 2008, 01:31:38 PM by Tschachim » Logged

bluespace88
Project Team Member
Full Member
****
Posts: 241



View Profile
« Reply #5 on: April 14, 2008, 10:06:33 AM »

thanks.  I'll see if I can get the numbers on the screen before tackling the AGC.
Logged
irnenginer
Project Team Member
Sr. Member
****
Posts: 271



View Profile
« Reply #6 on: April 14, 2008, 10:08:38 AM »

Is the intent to go through the uplink or write it directly?
Logged
Tschachim
Project Apollo - NASSP
Administrator
Hero Member
*****
Posts: 3700


nassp.sf.net


View Profile WWW
« Reply #7 on: April 14, 2008, 10:13:19 AM »

Through the uplink, via the existing TCP/IP interface would be the preferred solution.
Logged

bluespace88
Project Team Member
Full Member
****
Posts: 241



View Profile
« Reply #8 on: April 14, 2008, 10:15:56 AM »

I'll keep that in mind.  Just one question.  Which variable stores the launch mjd date, if there is one?

EDIT:  Nevermind, found it.
« Last Edit: April 14, 2008, 10:18:28 AM by BlueDragon8144 » Logged
Tschachim
Project Apollo - NASSP
Administrator
Hero Member
*****
Posts: 3700


nassp.sf.net


View Profile WWW
« Reply #9 on: April 14, 2008, 10:45:01 AM »

By the way, I forgot to mention that there's a CVS module called telemetryClient, which contains dseagrav's telemetry client, written in managed C++/WinForms, including an exe file (GroundStation.exe). It doesn't calculate anything, but you can test the downlink/uplink telemetry including state vector etc. and so see how it works: http://www.ibiblio.org/mscorbit/mscforum/index.php?topic=178.msg9828#msg9828

Cheers
Tschachim
Logged

bluespace88
Project Team Member
Full Member
****
Posts: 241



View Profile
« Reply #10 on: April 14, 2008, 10:57:45 AM »

ok, I'll check it out.
Logged
bluespace88
Project Team Member
Full Member
****
Posts: 241



View Profile
« Reply #11 on: April 14, 2008, 03:24:25 PM »

ok, finally got the pad values into Orbiter and calculated.  I'm going to look at the telemetry stuff to see how it would uplink to the AGC.

Also need to get it working under the moon's soi.  The code's there....I just don't know how to check which soi you're in.
« Last Edit: April 14, 2008, 03:38:11 PM by BlueDragon8144 » Logged
Admiral
Full Member
***
Posts: 40


View Profile
« Reply #12 on: April 15, 2008, 03:53:15 AM »

From what I can tell on IMFD, there is a time when you are outside Eath SOI and outside Moon SOI - just in Sun SOI.  I could be wrong. but may be worth checking or considering.  Others can advise if am I am inadvertently introducing a red herring.



The Admiral
Logged
bluespace88
Project Team Member
Full Member
****
Posts: 241



View Profile
« Reply #13 on: April 15, 2008, 05:55:41 AM »

you're not.  There is a time that you are in the sun's SOI.
Logged
Admiral
Full Member
***
Posts: 40


View Profile
« Reply #14 on: April 15, 2008, 06:54:01 AM »

Thanks for the info.  Do you know if we have a way of calculating state vectors while in sun soi?

The Admiral
Logged
Pages: [1] 2 3 ... 10 Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!