|
@@ -10,8 +10,8 @@ namespace Venus_RT.Modules
|
|
|
public class TransferModule
|
|
|
{
|
|
|
protected SchedulerEfemRobot _efemRobot = new SchedulerEfemRobot();
|
|
|
- protected SchedulerTMRobot _tmRobot = new SchedulerTMRobot();
|
|
|
- protected SchedulerSETMRobot _setm = new SchedulerSETMRobot() ;
|
|
|
+ protected SchedulerTMRobot _tmRobot = null;
|
|
|
+ protected SchedulerSETMRobot _setm = null;
|
|
|
|
|
|
protected SchedulerLoadPort _lp1 = new SchedulerLoadPort(ModuleName.LP1);
|
|
|
protected SchedulerLoadPort _lp2 = new SchedulerLoadPort(ModuleName.LP2);
|
|
@@ -74,9 +74,19 @@ namespace Venus_RT.Modules
|
|
|
{
|
|
|
case ConfigType.VenusSE:
|
|
|
case ConfigType.VenusDE:
|
|
|
- return _setm;
|
|
|
+ {
|
|
|
+ if (_setm == null)
|
|
|
+ _setm = new SchedulerSETMRobot();
|
|
|
+
|
|
|
+ return _setm;
|
|
|
+ }
|
|
|
default:
|
|
|
- return _tmRobot;
|
|
|
+ {
|
|
|
+ if(_tmRobot == null)
|
|
|
+ _tmRobot = new SchedulerTMRobot();
|
|
|
+
|
|
|
+ return _tmRobot;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
case ModuleName.PMA:
|