SSU V1.25 Release

Status
Not open for further replies.
DaveS: Try it now. The PID code is running now, but the code that actually gimbals the engines is still disabled.
OK, no freeze, so I guess that exhonorates the PID controller code.
 
OK, no freeze, so I guess that exhonorates the PID controller code.

That leaves the part which turns the gimbal actuator commands into engine orientation.
 
That's interesting. All the code I commented out earlier is now working again, and it doesn't seem to be causing freezes.
 
Mine is !! It freezes just before tower clear.

Code:
BEGIN_SHIPS
ISS:ProjectAlpha_ISS
  STATUS Orbiting Earth
  RPOS -6025002.08 -2396043.70 1843678.15
  RVEL -3146.174 6884.841 -1333.517
  AROT 110.00 -10.00 80.00
  PRPLEVEL 0:1.000
  IDS 0:1 100 1:2 100 2:3 100 3:4 100 4:5 100
  NAVFREQ 0 0
  XPDR 466
END
STS-101:SpaceShuttleUltra
  STATUS Landed Earth
  POS 0.0000000 0.0000000
  HEADING 0.00
  ATTACHED 0:0,MLP2
  PRPLEVEL 0:1.000 1:1.000 2:1.000 3:0.998 4:0.998 5:0.998 6:1.000 7:1.000 8:1.000 11:0.020
  NAVFREQ 0 0
  CONFIGURATION 0
  ODS
  MET 0.000
  WING_NAME Atlantis
  GEAR 0 0.0000
  RMS
  ARM_STATUS 0.500000 0.013600 0.014688 0.500000 0.500000 0.500000
  ROLLOUT 0 0.000000
  SHOULDER_BRACE 0.000
  MRL 0.000000 0.000000
  GRAPPLE 1 1.0000
  RIGIDIZE 1 1.0000
  EXTEND 1 1.0000
  SAT_OFS_X 0.000
  SAT_OFS_Y 0.000
  SAT_OFS_Z 0.000
  OPS 101
  AUTOPILOT 28.650000 80.500000 103000.000000 7859.700000 0.730000
  ASSIST 135.000000 235.000000
  THROTTLE_BUCKET 834.000000 1174.000000
  HEADS_UP 328083.990
  TGT_ID 2
  BODY_VECT 1
  ROLL 0.000
  PITCH 0.000
  YAW 0.000
  P_ANGLE 0.000
  Y_ANGLE 0.000
  OM_ANGLE -1.000
  DAP MODE 0 0
  ROT MODE 0 0 0
  TRANS MODE 0 0 0
  CONTROL MODE 1
   PAYLOAD CACTIVE1 8.000000 0.000000 0
   PAYLOAD CACTIVE2 0.000000 0.000000 0
   PAYLOAD CACTIVE3 -8.000000 0.000000 0
   PAYLOAD CPASSIVE1 4.000000 0.000000 0
   PAYLOAD CPASSIVE2 2.000000 0.000000 0
   PAYLOAD CPASSIVE3 -6.000000 0.000000 0
   PAYLOAD CPASSIVE4 7.000000 0.000000 0
   PAYLOAD PORT1 3.000000 0.000000 0
   PAYLOAD PORT2 -2.000000 0.000000 0
   PAYLOAD PORT3 -8.000000 0.000000 0
   PAYLOAD PORT4 7.000000 0.000000 0
   PAYLOAD STBD1 3.000000 0.000000 0
   PAYLOAD STBD2 -2.000000 0.000000 0
   PAYLOAD STBD3 -8.000000 0.000000 0
   PAYLOAD STBD4 0.000000 0.000000 0
  SWITCH_MPM_DPLY 1 1 1 1
  SWITCH_RMS_POWER 1 1
  SWITCH_RMS_RET_LATCH 1 1
  EE MODE 1
  CRT_SEL 1 1
  LPROBEARM 1
  LPROBE 2
  RPROBEARM 1
  RPROBE 2
  LOMS 1
  ROMS 1
  BOILERN2SPLY0 0
  BOILERN2SPLY1 0
  BOILERN2SPLY2 0
  BOILERCNTLR0 0
  BOILERCNTLR1 0
  BOILERCNTLR2 0
  BOILERHTR0 0
  BOILERHTR1 0
  BOILERHTR2 0
  APUFUTKVLV0 0
  APUFUTKVLV1 0
  APUFUTKVLV2 0
  APUCNTLRPWR0 0
  APUCNTLRPWR1 0
  APUCNTLRPWR2 0
  HYDCIRCPUMP0 2
  HYDCIRCPUMP1 2
  HYDCIRCPUMP2 2
  APUAUTOSHTDN 0
  APUSPDSEL0 1
  APUSPDSEL1 1
  APUSPDSEL2 1
  APUCNTRL0 0
  APUCNTRL1 0
  APUCNTRL2 0
  HYDMNPMPPRESS0 0
  HYDMNPMPPRESS1 0
  HYDMNPMPPRESS2 0
  MPSENGPWR00 0
  MPSENGPWR01 0
  MPSENGPWR02 0
  MPSENGPWR10 0
  MPSENGPWR11 0
  MPSENGPWR12 0
  HEISOLA0 0
  HEISOLA1 0
  HEISOLA2 0
  HEISOLB0 0
  HEISOLB1 0
  HEISOLB2 0
  MPS0 1
  MPS1 1
  MPS2 1
  L_ET_UMB_DOOR 1.000
  R_ET_UMB_DOOR 1.000
  ET_DOOR_LATCHES 0.000000 1.000000 1.000000
  @PANEL F2
  @ENDPANEL 
  @PANEL F4
  @ENDPANEL 
  @PANEL F6
  @ENDPANEL 
  @PANEL F7
  @ENDPANEL 
  @PANEL F8
  @ENDPANEL 
  @PANEL O6
  "L GLRSHLD FLOOD" OFF
  "S TRK DR CNTL SYS1" CLOSE
  "S TRK DR CNTL SYS2" CLOSE
  @ENDPANEL 
  @PANEL R11
  @ENDPANEL 
  @PANEL A6
  "SENSE" [0]
  @ENDPANEL 
  @PANEL AftMDU
  @ENDPANEL 
  @PANEL A7A3/A8A3
  "SYSTEM POWER MNA" [0]
  "SYSTEM POWER MNB" [0]
  "PYRO POWER MNA" [0]
  "PYRO POWER MNC" [0]
  "SYS1 VENT ISOL" [0]
  "SYS1 VENT" [0]
  "SYS2 VENT ISOL" [0]
  "SYS2 VENT" [0]
  "PSU POWER MNA" [0]
  "PSU POWER MNB" [0]
  "LIGHTS AIRLOCK 1-4" [0]
  "LIGHTS AIRLOCK 2-3" [0]
  "LIGHTS DOCKING TRUSS FWD" [0]
  "LIGHTS DOCKING TRUSS AFT" [0]
  "ARLK/TNL FAN A" [0]
  "ARLK/TNL FAN B" [0]
  "LIGHTS C/L VESTIBULE PORT" [0]
  "LIGHTS C/L VESTIBULE STBD" [0]
  "CNTL PNL PWR A" OFF
  "CNTL PNL PWR B" OFF
  "CNTL PNL PWR C" OFF
  "HTRS/DCU PWR H1" OFF
  "HTRS/DCU PWR H2/DCU" OFF
  "HTRS/DCU PWR H3/DCU" OFF
  "APDS PWR A" OFF
  "APDS PWR B" OFF
  "APDS PWR C" OFF
  "PYROS Ap" [0]
  "PYROS Bp" [0]
  "PYROS Cp" [0]
  @ENDPANEL 
  MTU_MET_RUNNING 0
  MTU_MET0 0.000
  MTU_MET1 0.000
  MTU_MET2 0.000
   EVENT_TIMER0 540.000000 DOWN STOPPED
   EVENT_TIMER1 0.000000 DOWN STOPPED
  IDP1 SPEC 65535
  IDP1 DISP 65535
  IDP2 SPEC 65535
  IDP2 DISP 65535
  IDP3 SPEC 65535
  IDP3 DISP 65535
  IDP4 SPEC 65535
  IDP4 DISP 65535
  LEFT_AIRDATAPROBE 1 3 0.000000
  RIGHT_AIRDATAPROBE 1 3 0.000000
  APU1_State 2
  APU1_FuelPress 1473.383
  APU1_HydPress 2654.671
  APU1_Speed 98.387
  APU2_State 2
  APU2_FuelPress 1463.459
  APU2_HydPress 2624.647
  APU2_Speed 92.506
  APU3_State 2
  APU3_FuelPress 1435.394
  APU3_HydPress 2647.471
  APU3_Speed 103.869
END
LC39A:SSU_Pad
  STATUS Landed Earth
  POS -80.6070900 28.6008890
  HEADING 270.00
  NAVFREQ 0 0
  ACCESS_ARM 0 0.0000
  GVA 0 0.0000
  VENTHOOD 0 0.0000
  FSS_OWP 0 0.0000
  RSS_OWP 0 0.0000
  RSS 1 1.0000
  GOX_SEQUENCE 1
END
LCC:SSU_LCC
  STATUS Landed Earth
  POS -80.6040745 28.6083855
  HEADING 270.00
  NAVFREQ 0 0
  LAUNCH_MJD 51982.950000
  PAD_NAME LC39A
  SHUTTLE_NAME STS-101
END
MLP2:Atlantis_MLP
  STATUS Landed Earth
  POS -80.6070840 28.6009090
  HEADING 0.00
  NAVFREQ 0 0
  T0_UMB 0 0.0000
END
END_SHIPS
 
What about using assertions finally, instead of just assuming that the PID output will not cause the NormZ function to throw a invalid vector into the Orbiter functions.

Integrative and derivative parts have both good reasons to cause the controller outputs to become large, once the frame rates are far enough away from normal frame rates used for testing.
 
I've added error logging to the NormZ function.
Donamy: I've sent you the new dlls. After you run a launch scenario, see if there are any error messages in the log.


-----Post Added-----


Figured out what the bug was (I think). When the roll starts, the target rate goes from 0 to 12 deg/sec, which would cause a spike in the derivative term from the PID controller. On my computer, the framerates must be low enough to smooth this own to acceptable values; higher framerates would be causing problems.
 
I don't see any errors in the orbit log
 
See if the latest version stops the freezing. It fixes the problem mentioned above, although there seems to be something else going on here.
 
The freezing has stopped however, there are more issues.

1. There is still a slight wabble during the roll program. At t-2 sec the SSMEs get real close together and act as one, with the the SRB gimbaling also. Is this simulated?

2. I can't have the STBD MPMs stowed on the pad and the payload is shifted forward in the bay quite abit when on the pad. It is in the correct position on orbit.

3. When I'm in the center aft flightdeck position and I flip the STBS latch release, I loose the payloadbay, it returns if I press X to zoom out, then disappears again when I press Z to zoom in.

4. I can't move the RMS once grappled again, is there a way to release the payload from the bay ?
 
The freezing has stopped however, there are more issues.

1. There is still a slight wabble during the roll program. At t-2 sec the SSMEs get real close together and act as one, with the the SRB gimbaling also. Is this simulated?

2. I can't have the STBD MPMs stowed on the pad and the payload is shifted forward in the bay quite abit when on the pad. It is in the correct position on orbit.

3. When I'm in the center aft flightdeck position and I flip the STBS latch release, I loose the payloadbay, it returns if I press X to zoom out, then disappears again when I press Z to zoom in.

4. I can't move the RMS once grappled again, is there a way to release the payload from the bay ?
I'll look at the roll program wobble and the other bugs. At the moment, gimballing before liftoff is not simulated. Also, can you post a screenshot of #3? I'm not quite sure what you mean here.

Can everyone else confirm that the freezing has disappeared?
 
2. I can't have the STBD MPMs stowed on the pad and the payload is shifted forward in the bay quite abit when on the pad. It is in the correct position on orbit.
I haven't been able to reproduce the payload shifting. Which scenario are you using?
 
I've found out that it is only attachment 5 that is shifted, so I think you ignore this one. DaveS doesn't have it.


-----Post Added-----


Any luck on the OBSS MPMs bug ?
 
Any luck on the OBSS MPMs bug ?
And speaking of that, it seems that the STO/DPY talkback for the OBSS isn't working. It's stuck in DPY.
 
Donamy: The OBSS bug should be fixed now. I've changed the scenario file entries a bit, though. The 'STBD_MPM' entry is used to add the OBSS MPMs to the shuttle, and the 'STBD_MPM_ROLLOUT' entry is used to set the MPMs to the deployed or stowed state.
 
I have this at the end of the Discovery in the 119 Launch scenario, and the STBD MPMs are deployed and won't retract.

Code:
  MPM
  STBD_MPM_ROLLOUT 0 0.0000
  STBD_MPM_LATCHES 0 0.0000
  RMS
  ARM_STATUS 0.500537 0.012731 0.014874 
0.505084 0.507947 0.504748
  RMS_ELBOW_CAM 0.0000 0.0000
  RMS_ROLLOUT 0 0.0000
  RMS_LATCHES 0 0.0000
END

Are these new .dlls or the ones you sent me a few days ago ?
 
Status
Not open for further replies.
Back
Top