/* <<<<< Begin of AOCS ORL File >>>>> */
/* #include "FIXED_OG_AOCS.orl" */
/* re-pointing and tracking schedule */

START:2026/06/02.08:34:49{SEQ:AOCS_Mem-Upload-01;}

START:2026/06/02.08:34:50{SEQ:AOCS_ORBITAL_ELEMENT_UPDATE;}

START:2026/06/02.11:34:00{SEQ:AOCS_ORe-point_Start_1;}
DEFSEQ(OP): AOCS_ORe-point_Start_1{
	OG: AOCS_ORe-point_Start_1_OG;
}
/* ORe-pointing No.1
   Tracking Curve No.2
   Offset-X  0.0189 (deg)
   Offset-Y  0.0053 (deg) */
DEFSEQ(OG): AOCS_ORe-point_Start_1_OG{
	NUMBER: 151;
	CMD: AOCU_NM 02 06 0C 01 B2;
}

START:2026/06/02.13:00:00{SEQ:AOCS_ORe-point_Start_2;}
DEFSEQ(OP): AOCS_ORe-point_Start_2{
	OG: AOCS_ORe-point_Start_2_OG;
}
/* ORe-pointing No.2
   Tracking Curve No.0
   Offset-X  0.2744 (deg)
   Offset-Y  0.0053 (deg) */
DEFSEQ(OG): AOCS_ORe-point_Start_2_OG{
	NUMBER: 152;
	CMD: AOCU_NM 00 57 CE 01 B2;
}

START:2026/06/02.18:06:00{SEQ:AOCS_ORe-point_Start_3;}
DEFSEQ(OP): AOCS_ORe-point_Start_3{
	OG: AOCS_ORe-point_Start_3_OG;
}
/* ORe-pointing No.3
   Tracking Curve No.0
   Offset-X  0.0000 (deg)
   Offset-Y  0.0000 (deg) */
DEFSEQ(OG): AOCS_ORe-point_Start_3_OG{
	NUMBER: 153;
	CMD: AOCU_NM 00 00 00 00 00;
}

START:2026/06/02.18:16:00{SEQ:AOCS_ORe-point_Start_1;}

START:2026/06/03.04:00:00{SEQ:AOCS_ORe-point_Start_3;}

START:2026/06/03.05:44:00{SEQ:AOCS_ORe-point_Start_1;}

START:2026/06/03.18:22:00{SEQ:AOCS_ORe-point_Start_3;}

START:2026/06/03.18:32:00{SEQ:AOCS_ORe-point_Start_1;}

START:2026/06/04.04:00:00{SEQ:AOCS_ORe-point_Start_3;}

START:2026/06/04.06:14:30{SEQ:AOCS_ORe-point_Start_1;}

START:2026/06/04.13:00:00{SEQ:AOCS_ORe-point_Start_4;}
DEFSEQ(OP): AOCS_ORe-point_Start_4{
	OG: AOCS_ORe-point_Start_4_OG;
}
/* ORe-pointing No.4
   Tracking Curve No.0
   Offset-X -0.2311 (deg)
   Offset-Y  0.0053 (deg) */
DEFSEQ(OG): AOCS_ORe-point_Start_4_OG{
	NUMBER: 154;
	CMD: AOCU_NM 00 B6 0D 01 B2;
}

START:2026/06/04.18:00:00{SEQ:AOCS_ORe-point_Start_3;}

START:2026/06/04.18:10:00{SEQ:AOCS_ORe-point_Start_1;}

START:2026/06/05.04:00:00{SEQ:AOCS_ORe-point_Start_3;}

START:2026/06/05.06:29:30{SEQ:AOCS_ORe-point_Start_1;}

START:2026/06/05.18:02:30{SEQ:AOCS_ORe-point_Start_3;}

START:2026/06/05.18:12:30{SEQ:AOCS_ORe-point_Start_1;}

START:2026/06/06.04:00:00{SEQ:AOCS_ORe-point_Start_3;}

START:2026/06/06.05:41:00{SEQ:AOCS_ORe-point_Start_1;}

START:2026/06/06.18:19:00{SEQ:AOCS_ORe-point_Start_3;}

START:2026/06/06.18:29:00{SEQ:AOCS_ORe-point_Start_1;}

START:2026/06/07.04:00:00{SEQ:AOCS_ORe-point_Start_3;}

START:2026/06/07.06:11:00{SEQ:AOCS_ORe-point_Start_1;}

START:2026/06/07.17:58:00{SEQ:AOCS_ORe-point_Start_3;}

START:2026/06/07.18:08:00{SEQ:AOCS_ORe-point_Start_1;}

START:2026/06/08.06:16:30{SEQ:AOCS_ORe-point_Start_3;}

START:2026/06/08.06:26:30{SEQ:AOCS_ORe-point_Start_1;}

START:2026/06/08.18:00:00{SEQ:AOCS_ORe-point_Start_3;}

START:2026/06/08.18:10:00{SEQ:AOCS_ORe-point_Start_1;}

START:2026/06/09.05:28:00{SEQ:AOCS_ORe-point_Start_3;}

START:2026/06/09.05:38:00{SEQ:AOCS_ORe-point_Start_5;}
DEFSEQ(OP): AOCS_ORe-point_Start_5{
	OG: AOCS_ORe-point_Start_5_OG;
}
/* ORe-pointing No.5
   Tracking Curve No.0
   Offset-X -0.0431 (deg)
   Offset-Y -0.2497 (deg) */
DEFSEQ(OG): AOCS_ORe-point_Start_5_OG{
	NUMBER: 155;
	CMD: AOCU_NM 00 F2 36 B0 19;
}

START:2026/06/09.11:28:00{SEQ:AOCS_ORe-point_Start_3;}

DEFSEQ(REAL): AOCS_Mem-Upload-01{
	C.: "***** AOCS Commands (Tracking Curve Upload) ******";
	NP_C.: "Upload the Orbit Element and the Target Attitude";
	NP_C.: "RAM-ID:TARGET_ATT";
	ENTRY: RAM TARGET_ATT 150 150;
	NP_C.: " ";
	NP_C.: " ";
	NP_C.: "Set the dump memory area of TARGET_ATT";
	CMD: AOCU_DUMP_SET 07 00 00 00 18 00;
	NP_C.: " ";
	NP_C.: "   <A_STS1>[MEMORY OPERATE SATUS] ADRS = 070000 [ ]";
	NP_C.: " ";
	NP_C.: " ";
	NP_C.: "Change the TLMFormatNo for the AOCS Dump Format";
	CMD: DHU_MODE_CHNG 04 0B F8;
	NP_C.: " ";
	NP_C.: "Wait for AOCSDUMP to end";
	NP_C.: " ";
	C.: "Check the dump memory";
	NP_C.: " ";
	NP_C.: "                                    Result = OK [ ]";
	NP_C.: " ";
	CMD: DHU_MODE_CHNG 02 0A F8;
	NP_C.: " ";
	NP_C.: "                       <A_***>[TLM STS] FMT = 2 [ ]";
	NP_C.: " ";
	CMD: AOCU_ORB_UPD;
	C.: " ";
}

/* Orbital Element and Timer Setup Command */

DEFSEQ(REAL): AOCS_ORBITAL_ELEMENT_UPDATE{
	C.: "***** AOCS Commands (Orbital Element Update) *****";
	NP_C.: "Update the orbital element";
	CMD: AOCU_ORB_PRPGT_START;
	NP_CMD: AOCU_ORB_UPD;
	NP_C.: " ";
	NP_C.: "      <A_ORB>[ORBIT] EPC = 8096830.6 +- 1.0 (s) [ ]";
	NP_C.: " ";
	C.: " ";
}

START:2026/06/02.15:00:00{SEQ:AOCS_M-EARTH_GREENWICH_SETUP;}
DEFSEQ(OP): AOCS_M-EARTH_GREENWICH_SETUP{
	OG: AOCS_M-EARTH_SETUP_OG;
	INTERVAL: 1;
	OG: AOCS_GREENWICH_SETUP_OG;
}
/* M-Earth(2026/06/02 15:00:00) =  147.7724 [deg] */
DEFSEQ(OG): AOCS_M-EARTH_SETUP_OG{
	NUMBER: 101;
	CMD: AOCU_SET_M-EARTH 00 C5 A8 81;
}
/* Greenwich Angle(2026/06/02 15:00:01) =  116.7155 [deg] */
DEFSEQ(OG): AOCS_GREENWICH_SETUP_OG{
	NUMBER: 102;
	CMD: AOCU_SET_GREENWICH 52 FF;
}

START:2026/06/02.15:01:00{SEQ:AOCS_H/W_TIMER_SETUP;}
DEFSEQ(OP): AOCS_H/W_TIMER_SETUP{
	OG: AOCS_H/W_TIMER_SETUP_OG;
}
/* D/N Period =  98.1087 [min]
   N Start DownCount =  12.0834 [min]
   N End   DownCount =  86.0253 [min]
   Preset  DownCount =  48.6647 [min] */
DEFSEQ(OG): AOCS_H/W_TIMER_SETUP_OG{
	NUMBER: 103;
	CMD: AOCU_DN_TIM_SET 5B 3F;
	CMD: NULL_DUMMY_CMD;
	CMD: AOCU_DN_TIM_PRESET;
	CMD: AOCU_DN_TIM_SET B7 F4;
	CMD: AOCU_NIGHT_START_SET 16 A8;
	CMD: AOCU_NIGHT_END_SET A1 4C;
	CMD: AOCU_DAY_SET;
}
/* <<<<< End of AOCS ORL File >>>>> */
