Tags:
create new tag
view all tags
The rts do_slew was modified with a 10 s delay at the start simply to ensure code is sitting at 'weak' point when SAA interruption occurs.

The following test is first run to demonstrate the problem.

The proc ncr143_1 is run. This performs a normal PT exposure with the filter in the V position.

APID 373 ICU     pkg=dc evt=79 DCS Starting RTS                  0014 0000 0000   process_slew_warn                              Pkt 2004-09-22 03:39:58.02 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0302 0000 0000   do_slew                                        Pkt 2004-09-22 03:39:58.70 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Stop Mode                                                                               Pkt 2004-09-22 03:39:58.97 
APID 385 DPU     Mode Cmpl ID 0x0c05 Mode=Idle            SubMode=none             Mode compltn NOT USE                          Pkt 2004-09-22 03:39:58.99 
APID 373 ICU     pkg=24 evt=57 FONEXTOBSINFO Processing Stat     1005 0000 0001                                                  Pkt 2004-09-22 03:40:03.22 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0001 0000 0000   Cathode                                        Pkt 2004-09-22 03:40:10.35 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Stop Mode                                                                               Pkt 2004-09-22 03:40:10.58 
APID 385 DPU     Mode Cmpl ID 0x0c05 Mode=Idle            SubMode=none             Mode compltn NOT USE                          Pkt 2004-09-22 03:40:10.60 
APID 373 ICU     pkg=5c evt=41 State Transition Complete         0002 0000 0000   SLEW                                           Pkt 2004-09-22 03:40:10.83 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0003 0654 0000   MCP23                                          Pkt 2004-09-22 03:40:12.06 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0002 0262 0000   MCP1                                           Pkt 2004-09-22 03:40:12.24 
APID 373 ICU     pkg=24 evt=53 Automatic State Trans'n Req'd     0326 0002 00aa                                                  Pkt 2004-09-22 03:40:12.69 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0326 0000 0000   slew_to_pt                                     Pkt 2004-09-22 03:40:12.70 
APID 3a2 ICU     pkg=24 evt=dc Catalogue Star                    RA=2802 Dec=08e4 m=0065 Dist=000f Col=0004 Area=2c9d Offs=569b  Pkt 2004-09-22 03:40:14.92 
APID 3a2 ICU     pkg=24 evt=dc Catalogue Star                    RA=27f1 Dec=08f7 m=006c Dist=000d Col=0007 Area=2c9d Offs=4d88  Pkt 2004-09-22 03:40:15.00 
APID 3a2 ICU     pkg=24 evt=dc Catalogue Star                    RA=27df Dec=08f0 m=005c Dist=0006 Col=0001 Area=2c9d Offs=438f  Pkt 2004-09-22 03:40:15.05 
APID 3a2 ICU     pkg=24 evt=dc Catalogue Star                    RA=27dd Dec=08ec m=006d Dist=0005 Col=000e Area=2c9d Offs=4293  Pkt 2004-09-22 03:40:15.06 
APID 373 ICU     pkg=40 evt=67 FW at Requested Position          0004 0258 0258                                                  Pkt 2004-09-22 03:40:17.64 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0003 0654 0000   MCP23                                          Pkt 2004-09-22 03:40:19.01 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0002 0262 0000   MCP1                                           Pkt 2004-09-22 03:40:19.30 
APID 373 ICU     pkg=da evt=13 HV Ramp Succeeded                 0001 0186 0000   Cathode                                        Pkt 2004-09-22 03:40:28.23 
APID 373 ICU     pkg=5c evt=41 State Transition Complete         0006 0000 0000   PLANNED                                        Pkt 2004-09-22 03:40:28.46 
APID 373 ICU     pkg=dd evt=5f Window Table Already Loaded       0000 0000 0000                                                  Pkt 2004-09-22 03:40:28.64 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Mode                                                                                    Pkt 2004-09-22 03:40:29.28 
APID 384 DPU     Mode Rdy  ID 0x0c04 Mode=ImageEvent      SubMode=none                                                           Pkt 2004-09-22 03:40:29.30

The proc ncr143_2 is then run. This performs a PT exposure in blocked but with the SAA starting 4 seconds after the slew warning.

APID 373 ICU     pkg=dc evt=70 DCS Aborting                      0326 0000 0000   slew_to_pt                                     Pkt 2004-09-22 03:41:08.11 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0014 0000 0000   process_slew_warn                              Pkt 2004-09-22 03:41:08.12 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0302 0000 0000   do_slew                                        Pkt 2004-09-22 03:41:08.75 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Stop Mode                                                                               Pkt 2004-09-22 03:41:09.11 
APID 385 DPU     Mode Cmpl ID 0x0c05 Mode=Idle            SubMode=none             Mode compltn NOT USE                          Pkt 2004-09-22 03:41:09.13 
APID 373 ICU     pkg=dc evt=70 DCS Aborting                      0302 0000 0000   do_slew                                        Pkt 2004-09-22 03:41:12.68 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0013 0000 0000   autostate                                      Pkt 2004-09-22 03:41:12.69 
APID 373 ICU     pkg=24 evt=53 Automatic State Trans'n Req'd     0302 0006 00aa                                                  Pkt 2004-09-22 03:41:12.97 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0302 0000 0000   do_slew                                        Pkt 2004-09-22 03:41:12.98 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Stop Mode                                                                               Pkt 2004-09-22 03:41:13.24 
APID 385 DPU     Mode Cmpl ID 0x0c05 Mode=Idle            SubMode=none             Mode compltn NOT USE                          Pkt 2004-09-22 03:41:13.26 
APID 373 ICU     pkg=24 evt=57 FONEXTOBSINFO Processing Stat     000a 0000 0001                                                  Pkt 2004-09-22 03:41:14.62 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0001 0000 0000   Cathode                                        Pkt 2004-09-22 03:41:24.58 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0308 0000 0000   gotosaa                                        Pkt 2004-09-22 03:41:24.69 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Stop Mode                                                                               Pkt 2004-09-22 03:41:24.92 
APID 385 DPU     Mode Cmpl ID 0x0c05 Mode=Idle            SubMode=none             Mode compltn NOT USE                          Pkt 2004-09-22 03:41:24.94 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0001 0000 0000   Cathode                                        Pkt 2004-09-22 03:41:26.26 
APID 373 ICU     pkg=5c evt=41 State Transition Complete         0008 0000 0000   SAA                                            Pkt 2004-09-22 03:41:26.38 
APID 373 ICU     pkg=da evt=13 HV Ramp Succeeded                 0002 01ab 0000   MCP1                                           Pkt 2004-09-22 03:41:35.19 
APID 373 ICU     pkg=da evt=13 HV Ramp Succeeded                 0003 046e 0000   MCP23                                          Pkt 2004-09-22 03:41:57.82 
APID 373 ICU     pkg=5c evt=41 State Transition Complete         0008 0000 0000   SAA                                            Pkt 2004-09-22 03:41:57.96 
APID 373 ICU     pkg=dc evt=83 DCS Exiting RTS                   0308 0000 0000   gotosaa                                        Pkt 2004-09-22 03:41:57.97 

The proc saaoff is then run. This forces an exit from the SAA.

APID 373 ICU     pkg=dc evt=79 DCS Starting RTS                  0013 0000 0000   autostate                                      Pkt 2004-09-22 03:42:24.59 
APID 373 ICU     pkg=24 evt=53 Automatic State Trans'n Req'd     0302 0008 00aa                                                  Pkt 2004-09-22 03:42:24.86 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0302 0000 0000   do_slew                                        Pkt 2004-09-22 03:42:24.87 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Stop Mode                                                                               Pkt 2004-09-22 03:42:25.35 
APID 385 DPU     Mode Cmpl ID 0x0c05 Mode=Idle            SubMode=none             Mode compltn NOT USE                          Pkt 2004-09-22 03:42:25.37 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0001 0000 0000   Cathode                                        Pkt 2004-09-22 03:42:36.06 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Stop Mode                                                                               Pkt 2004-09-22 03:42:36.48 
APID 385 DPU     Mode Cmpl ID 0x0c05 Mode=Idle            SubMode=none             Mode compltn NOT USE                          Pkt 2004-09-22 03:42:36.50 
APID 373 ICU     pkg=5c evt=41 State Transition Complete         0002 0000 0000   SLEW                                           Pkt 2004-09-22 03:42:36.69 
APID 373 ICU     pkg=da evt=13 HV Ramp Succeeded                 0003 0654 0000   MCP23                                          Pkt 2004-09-22 03:43:00.79 
APID 373 ICU     pkg=da evt=13 HV Ramp Succeeded                 0002 0262 0000   MCP1                                           Pkt 2004-09-22 03:43:09.81 
APID 373 ICU     pkg=24 evt=53 Automatic State Trans'n Req'd     0326 0002 00aa                                                  Pkt 2004-09-22 03:43:10.12 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0326 0000 0000   slew_to_pt                                     Pkt 2004-09-22 03:43:10.14
*********************************************************************************************************************************************************** 
APID 373 ICU     pkg=40 evt=67 FW at Requested Position          0004 0898 0258                                                  Pkt 2004-09-22 03:43:10.21 
***********************************************************************************************************************************************************
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0003 0654 0000   MCP23                                          Pkt 2004-09-22 03:43:11.40 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0002 0262 0000   MCP1                                           Pkt 2004-09-22 03:43:11.60 
APID 373 ICU     pkg=da evt=13 HV Ramp Succeeded                 0001 0186 0000   Cathode                                        Pkt 2004-09-22 03:43:16.84 
APID 373 ICU     pkg=5c evt=41 State Transition Complete         0006 0000 0000   PLANNED                                        Pkt 2004-09-22 03:43:16.96 
APID 373 ICU     pkg=dd evt=5f Window Table Already Loaded       0000 0000 0000                                                  Pkt 2004-09-22 03:43:17.09 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Mode                                                                                    Pkt 2004-09-22 03:43:17.34 
APID 384 DPU     Mode Rdy  ID 0x0c04 Mode=ImageEvent      SubMode=none                                                           Pkt 2004-09-22 03:43:17.36 
APID 373 ICU     pkg=dc evt=70 DCS Aborting                      0326 0000 0000   slew_to_pt                                     Pkt 2004-09-22 03:43:57.19 

The line highlighted with

****
shows that the filter wheel was still at the V position (hex value 0258, 3rd parameter shown) i.e. the observation commanded by ncr143_2 was not restarted as expected. Instead the observation commanded by ncr143_1 was restarted.


The above test was repeated with the modified code.

The proc ncr143_1 is run. This performs a normal PT exposure with the filter in the V position

APID 373 ICU     pkg=dc evt=79 DCS Starting RTS                  0014 0000 0000   process_slew_warn                              Pkt 2004-09-22 03:49:17.83 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0302 0000 0000   do_slew                                        Pkt 2004-09-22 03:49:18.51 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Stop Mode                                                                               Pkt 2004-09-22 03:49:19.07 
APID 385 DPU     Mode Cmpl ID 0x0c05 Mode=Idle            SubMode=none             Mode compltn NOT USE                          Pkt 2004-09-22 03:49:19.10 
APID 373 ICU     pkg=24 evt=57 FONEXTOBSINFO Processing Stat     1005 0000 0001                                                  Pkt 2004-09-22 03:49:23.01 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0001 0000 0000   Cathode                                        Pkt 2004-09-22 03:49:30.55 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Stop Mode                                                                               Pkt 2004-09-22 03:49:31.18 
APID 385 DPU     Mode Cmpl ID 0x0c05 Mode=Idle            SubMode=none             Mode compltn NOT USE                          Pkt 2004-09-22 03:49:31.20 
APID 373 ICU     pkg=5c evt=41 State Transition Complete         0002 0000 0000   SLEW                                           Pkt 2004-09-22 03:49:31.44 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0003 0654 0000   MCP23                                          Pkt 2004-09-22 03:49:32.64 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0002 0262 0000   MCP1                                           Pkt 2004-09-22 03:49:33.03 
APID 373 ICU     pkg=24 evt=53 Automatic State Trans'n Req'd     0326 0002 00aa                                                  Pkt 2004-09-22 03:49:33.49 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0326 0000 0000   slew_to_pt                                     Pkt 2004-09-22 03:49:33.50 
APID 3a2 ICU     pkg=24 evt=dc Catalogue Star                    RA=2802 Dec=08e4 m=0065 Dist=000f Col=0004 Area=2c9d Offs=569b  Pkt 2004-09-22 03:49:35.71 
APID 3a2 ICU     pkg=24 evt=dc Catalogue Star                    RA=27f1 Dec=08f7 m=006c Dist=000d Col=0007 Area=2c9d Offs=4d88  Pkt 2004-09-22 03:49:35.77 
APID 3a2 ICU     pkg=24 evt=dc Catalogue Star                    RA=27df Dec=08f0 m=005c Dist=0006 Col=0001 Area=2c9d Offs=438f  Pkt 2004-09-22 03:49:35.83 
APID 3a2 ICU     pkg=24 evt=dc Catalogue Star                    RA=27dd Dec=08ec m=006d Dist=0005 Col=000e Area=2c9d Offs=4293  Pkt 2004-09-22 03:49:35.84 
APID 373 ICU     pkg=40 evt=67 FW at Requested Position          0004 0258 0258                                                  Pkt 2004-09-22 03:49:38.42 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0003 0654 0000   MCP23                                          Pkt 2004-09-22 03:49:39.60 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0002 0262 0000   MCP1                                           Pkt 2004-09-22 03:49:39.79 
APID 373 ICU     pkg=da evt=13 HV Ramp Succeeded                 0001 0186 0000   Cathode                                        Pkt 2004-09-22 03:49:48.26 
APID 373 ICU     pkg=5c evt=41 State Transition Complete         0006 0000 0000   PLANNED                                        Pkt 2004-09-22 03:49:48.46 
APID 373 ICU     pkg=dd evt=5f Window Table Already Loaded       0000 0000 0000                                                  Pkt 2004-09-22 03:49:48.59 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Mode                                                                                    Pkt 2004-09-22 03:49:48.83 
APID 384 DPU     Mode Rdy  ID 0x0c04 Mode=ImageEvent      SubMode=none                                                           Pkt 2004-09-22 03:49:48.85 

The proc ncr143_2 is then run. This performs a PT exposure in blocked but with the SAA starting 4 seconds after the slew warning.

APID 373 ICU     pkg=dc evt=70 DCS Aborting                      0326 0000 0000   slew_to_pt                                     Pkt 2004-09-22 03:50:19.38 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0014 0000 0000   process_slew_warn                              Pkt 2004-09-22 03:50:19.39 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0302 0000 0000   do_slew                                        Pkt 2004-09-22 03:50:20.08 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Stop Mode                                                                               Pkt 2004-09-22 03:50:20.54 
APID 385 DPU     Mode Cmpl ID 0x0c05 Mode=Idle            SubMode=none             Mode compltn NOT USE                          Pkt 2004-09-22 03:50:20.57 
APID 373 ICU     pkg=dc evt=70 DCS Aborting                      0302 0000 0000   do_slew                                        Pkt 2004-09-22 03:50:25.43 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0013 0000 0000   autostate                                      Pkt 2004-09-22 03:50:25.44 
APID 373 ICU     pkg=24 evt=57 FONEXTOBSINFO Processing Stat     000a 0000 0001                                                  Pkt 2004-09-22 03:50:25.62 
APID 373 ICU     pkg=24 evt=53 Automatic State Trans'n Req'd     0308 0006 00aa                                                  Pkt 2004-09-22 03:50:25.70 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0308 0000 0000   gotosaa                                        Pkt 2004-09-22 03:50:25.72 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Stop Mode                                                                               Pkt 2004-09-22 03:50:26.17 
APID 385 DPU     Mode Cmpl ID 0x0c05 Mode=Idle            SubMode=none             Mode compltn NOT USE                          Pkt 2004-09-22 03:50:26.19 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0001 0000 0000   Cathode                                        Pkt 2004-09-22 03:50:27.51 
APID 373 ICU     pkg=5c evt=41 State Transition Complete         0008 0000 0000   SAA                                            Pkt 2004-09-22 03:50:27.63 
APID 373 ICU     pkg=da evt=13 HV Ramp Succeeded                 0002 01ab 0000   MCP1                                           Pkt 2004-09-22 03:50:36.91 
APID 373 ICU     pkg=da evt=13 HV Ramp Succeeded                 0003 046e 0000   MCP23                                          Pkt 2004-09-22 03:50:59.43 
APID 373 ICU     pkg=5c evt=41 State Transition Complete         0008 0000 0000   SAA                                            Pkt 2004-09-22 03:50:59.64 
APID 373 ICU     pkg=dc evt=83 DCS Exiting RTS                   0308 0000 0000   gotosaa                                        Pkt 2004-09-22 03:50:59.64 

The proc saaoff is then run. This forces an exit from the SAA.

APID 373 ICU     pkg=dc evt=79 DCS Starting RTS                  0013 0000 0000   autostate                                      Pkt 2004-09-22 03:51:37.39 
APID 373 ICU     pkg=24 evt=53 Automatic State Trans'n Req'd     0302 0008 00aa                                                  Pkt 2004-09-22 03:51:37.67 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0302 0000 0000   do_slew                                        Pkt 2004-09-22 03:51:37.68 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Stop Mode                                                                               Pkt 2004-09-22 03:51:38.25 
APID 385 DPU     Mode Cmpl ID 0x0c05 Mode=Idle            SubMode=none             Mode compltn NOT USE                          Pkt 2004-09-22 03:51:38.28 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0001 0000 0000   Cathode                                        Pkt 2004-09-22 03:51:49.60 
APID 38f DPU     Ack/Nack  ID 0x0c0f ACK Stop Mode                                                                               Pkt 2004-09-22 03:51:49.91 
APID 385 DPU     Mode Cmpl ID 0x0c05 Mode=Idle            SubMode=none             Mode compltn NOT USE                          Pkt 2004-09-22 03:51:49.95 
APID 373 ICU     pkg=5c evt=41 State Transition Complete         0002 0000 0000   SLEW                                           Pkt 2004-09-22 03:51:50.09 
APID 373 ICU     pkg=da evt=13 HV Ramp Succeeded                 0003 0654 0000   MCP23                                          Pkt 2004-09-22 03:52:13.75 
APID 373 ICU     pkg=da evt=13 HV Ramp Succeeded                 0002 0262 0000   MCP1                                           Pkt 2004-09-22 03:52:23.03 
APID 373 ICU     pkg=24 evt=53 Automatic State Trans'n Req'd     0326 0002 00aa                                                  Pkt 2004-09-22 03:52:23.40 
APID 373 ICU     pkg=dc evt=78 Switching RTS                     0326 0000 0000   slew_to_pt                                     Pkt 2004-09-22 03:52:23.41 
***********************************************************************************************************************************************************
APID 373 ICU     pkg=40 evt=67 FW at Requested Position          0004 0640 0000                                                  Pkt 2004-09-22 03:52:28.22
*********************************************************************************************************************************************************** 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0003 0654 0000   MCP23                                          Pkt 2004-09-22 03:52:29.62 
APID 373 ICU     pkg=da evt=15 Already at Requested HV           0002 0262 0000   MCP1                                           Pkt 2004-09-22 03:52:29.91 
APID 373 ICU     pkg=5c evt=41 State Transition Complete         0006 0000 0000   PLANNED                                        Pkt 2004-09-22 03:52:30.08 

The line highlighted with

****
shows that the filter wheel is now at the blocked position (hex value 0000, 3rd parameter shown) i.e. the observation commanded by ncr143_2 was restarted as expected.

-- HowardHuckle - 07 Nov 2005

When all NCR/ECR code patches were merged, the latter part of this test was rerun, with the same results.

-- HowardHuckle - 17 Nov 2005

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | More topic actions
Topic revision: r6 - 2006-04-26 - HowardHuckle
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback