Meadville Space Center Forum Index Meadville Space Center
Know the future through the past
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Virtual AGC
Goto page 1, 2, 3 ... 16, 17, 18  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Meadville Space Center Forum Index -> Programming
View previous topic :: View next topic  
Author Message
movieman



Joined: 25 Nov 2004
Posts: 1018

PostPosted: Thu Aug 11, 2005 1:28 am    Post subject: Virtual AGC Reply with quote

Ok, it's time to:

Update source.
Update Config directory.
Update Scenarios directory.

Build source.

Load 'AS-506 Apollo 11 Yaagc Launch.scn' Smile.

It doesn't do a lot at the moment: the IMU isn't talking to it properly. But it's now wired in and can be enabled by adding:

AGC_BEGIN
YAAGC 1
AGC_END

To any of the scenario files (I recommend deleting any other AGC saved data in the file when switching between C++ AGC and Virtual AGC). It does save all essential state to the scenario, and it seems that it will happily continue running when reloading the scenario afterwards.

Code is in for Saturn V, Saturn 1b and LEM (running the Luminary binary). Now it's integrated I may have to let someone else do the debugging to get it working as well as the Virtual Apollo did Smile

I've also updated the screenshot on my web site: you can tell it's the Virtual AGC as the 'Prog' entry is blank.

http://mysite.wanadoo-members.co.uk/marui/orbiter_agc.jpg

As usual, let me know what I've broken Smile.

P.S. I presume there's no problem with us having the Virtual AGC code in CVS? It's a lot easier than having to download it from elsewhere, and I've had to make a couple of changes anyway.
Back to top
View user's profile Send private message
movieman



Joined: 25 Nov 2004
Posts: 1018

PostPosted: Thu Aug 11, 2005 1:43 am    Post subject: Reply with quote

One other thing: we need to get the 'COMP ACTY' light working on the DSKY now, since the Virtual AGC will light it up when running Smile.
Back to top
View user's profile Send private message
Tschachim



Joined: 26 Nov 2004
Posts: 1272

PostPosted: Thu Aug 11, 2005 11:19 am    Post subject: Reply with quote

Hey movieman, that's great! Very Happy Very Happy Very Happy

Building was fine, I took only a very quick look (still busy with the LM regarding VESSEL2 and these instabilities), I think there are a fews odds and ends to fix (V35 lamp test for example), but a lot of work is done!
I can help getting the Virtual Apollo stuff working again in a few days (too busy at the moment), if you like (and it's necessary then, you are really fast!)

Ahh, and yaAGC and the GPL is no problem, Ron gave us the "Orbiter special permission" already a few months ago!

Many thanks and cheers
Tschachim
Back to top
View user's profile Send private message Send e-mail Visit poster's website
movieman



Joined: 25 Nov 2004
Posts: 1018

PostPosted: Thu Aug 11, 2005 11:43 am    Post subject: Reply with quote

I'm not going to have much time for the next few days myself. I'm pretty sure it must be something to do with the I/O channel simulation as the IMU is tracking acceleration but the AGC doesn't think it's running.

It does use the 'special' channels which are inverted in the real AGC, so there could be bugs in that code. I found and fixed a couple and checked in the fixes, but that still don't make it work.
Back to top
View user's profile Send private message
movieman



Joined: 25 Nov 2004
Posts: 1018

PostPosted: Thu Aug 11, 2005 10:10 pm    Post subject: Reply with quote

Double post.

Last edited by movieman on Thu Aug 11, 2005 10:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
movieman



Joined: 25 Nov 2004
Posts: 1018

PostPosted: Thu Aug 11, 2005 10:11 pm    Post subject: Reply with quote

Ok, I fixed the main problem with the VERB 35 lights, I created a function to set them but forgot to call it Smile. I still don't really know how the STBY and RESTART lights are lit on the real AGC.

The biggest issue now is probably getting the IMU working properly: I don't know what I've changed that would have broken it. I get 211 and 1601 alarms.
Back to top
View user's profile Send private message
movieman



Joined: 25 Nov 2004
Posts: 1018

PostPosted: Thu Aug 11, 2005 11:54 pm    Post subject: Reply with quote

I also fixed the 1107 alarm when the AGC starts up: we need to force it to do a 'hard reset' by setting the AGCWarning flag.
Back to top
View user's profile Send private message
movieman



Joined: 25 Nov 2004
Posts: 1018

PostPosted: Fri Aug 12, 2005 2:00 pm    Post subject: Reply with quote

Since the version of Virtual AGC we're running is a few months old and has some bugs, I think I'll try tonight to split out the few functions we've changed and then update to the latest version.

Hopefully then future updates will just be a matter of putting a few #if 0 lines in the code for functions we've replaced and dropping it in.
Back to top
View user's profile Send private message
movieman



Joined: 25 Nov 2004
Posts: 1018

PostPosted: Fri Aug 12, 2005 5:52 pm    Post subject: Reply with quote

Ok, the IMU is now up and running Smile.
Back to top
View user's profile Send private message
movieman



Joined: 25 Nov 2004
Posts: 1018

PostPosted: Fri Aug 12, 2005 6:38 pm    Post subject: Reply with quote

And the AGC now works all the way to orbit, though the numbers it displays are a little off from the correct values.
Back to top
View user's profile Send private message
movieman



Joined: 25 Nov 2004
Posts: 1018

PostPosted: Fri Aug 12, 2005 7:32 pm    Post subject: Reply with quote

Now updated to the latest version of Virtual AGC. The numbers displayed look closer to the correct values, but still aren't quite right.
Back to top
View user's profile Send private message
movieman



Joined: 25 Nov 2004
Posts: 1018

PostPosted: Sat Aug 13, 2005 12:12 am    Post subject: Reply with quote

We now start up with the IMU caged. So to begin a flight with the Virtual AGC you first need to click down the 'IMU Cage' switch to turn it on, and then the AGC will see the data come through. If you leave it caged, you'll get whacky values on the DSKY during launch and errors and 'NO ATT' lights.

I'm not sure quite how we're meant to turn the IMU on and off, so for the moment this seemed like an easy solution.

BTW, there's no Prog 15 (TLI burn program) in Colossus 249. I wonder if that was a new program added for the version used on Apollo 15? At the moment we'll have no way to fly to the Moon with this version of the software, other than to hand-fly the SIVB.
Back to top
View user's profile Send private message
x15



Joined: 12 Jul 2005
Posts: 63

PostPosted: Sat Aug 13, 2005 6:34 pm    Post subject: Reply with quote

ok I just did my first powerup of the LEM yaAGC computer

I'm still getting the 1107 program alarm on startup

what did you do exactly to get rid of it in the CSM, movieman

thanks
Back to top
View user's profile Send private message
Tschachim



Joined: 26 Nov 2004
Posts: 1272

PostPosted: Sat Aug 13, 2005 7:00 pm    Post subject: Reply with quote

Hi movieman,

as I already assumed you were really fast integrating all this stuff! It's really fantastic! Smile Smile

movieman wrote:
Now updated to the latest version of Virtual AGC. The numbers displayed look closer to the correct values, but still aren't quite right.

I'm very curious, what are the AGC and Orbiter values for apoapsis altitude and periapsis altitude in earth orbit (V82)?

movieman wrote:
I'm not sure quite how we're meant to turn the IMU on and off, so for the moment this seemed like an easy solution.

With the G/N IMU PWR switch located on Panel 100, but since there's no panel 100 at the moment this is a good solution IMHO!

movieman wrote:
BTW, there's no Prog 15 (TLI burn program) in Colossus 249.

That's strange, Ron means it was used by Apollo 8 and 9, and Apollo 8 did a TLI burn?

Cheers
Tschachim
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Tschachim



Joined: 26 Nov 2004
Posts: 1272

PostPosted: Sat Aug 13, 2005 7:30 pm    Post subject: Reply with quote

You are right about TLI:

"... the TLI maneuver is controlled by the IU (Instrument Unit) on the launch vehicle, and not the computer in the CM" (from here: http://history.nasa.gov/ap08fj/02earth_orbit_tli.htm)

... Ron is working on Artemis 072 aka Colossus 3 (Apollo 15-17), but this will take some time...

Cheers
Tschachim
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Meadville Space Center Forum Index -> Programming All times are GMT
Goto page 1, 2, 3 ... 16, 17, 18  Next
Page 1 of 18

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group