示例#1
0
 public Dot(DotCmd dotCmd, CoordinateCorrector coordinateCorrector)
 {
     //this.Valve = dotCmd.Valve;
     this.RunnableModule = dotCmd.RunnableModule;
     if (this.RunnableModule.Mode == ModuleMode.AssignMode1 || this.RunnableModule.Mode == ModuleMode.MainMode)
     {
         this.Valve = ValveType.Valve1;
     }
     else if (this.RunnableModule.Mode == ModuleMode.DualFallow)
     {
         this.Valve = ValveType.Both;
     }
     else
     {
         this.Valve = ValveType.Valve2;
     }
     position = coordinateCorrector.Correct(dotCmd.RunnableModule, dotCmd.Position, Executor.Instance.Program.ExecutantOriginOffset);
     Log.Dprint("Dot position : " + dotCmd.Position + ", real : " + position);
     param           = dotCmd.RunnableModule.CommandsModule.Program.ProgramSettings.GetDotParam(dotCmd.DotStyle);
     isWeightControl = dotCmd.IsWeightControl;
     weight          = dotCmd.Weight;
     this.isAssign   = dotCmd.IsAssign;
     this.numShots   = dotCmd.NumShots;
     Program         = dotCmd.RunnableModule.CommandsModule.Program;
     if (dotCmd.AssociatedMeasureHeightCmd != null)
     {
         curMeasureHeightValue = dotCmd.AssociatedMeasureHeightCmd.RealHtValue;
     }
     else
     {
         curMeasureHeightValue = this.RunnableModule.MeasuredHt;
     }
     this.Tilt = dotCmd.Tilt;
 }
示例#2
0
 public Dot(DotCmd dotCmd)
 {
     //this.Valve = dotCmd.Valve;
     this.RunnableModule = dotCmd.RunnableModule;
     if (this.RunnableModule.Mode == ModuleMode.AssignMode1 || this.RunnableModule.Mode == ModuleMode.MainMode)
     {
         this.Valve = ValveType.Valve1;
     }
     else if (this.RunnableModule.Mode == ModuleMode.DualFallow)
     {
         this.Valve = ValveType.Both;
     }
     else
     {
         this.Valve = ValveType.Valve2;
     }
     position        = dotCmd.Position;
     param           = dotCmd.RunnableModule.CommandsModule.Program.ProgramSettings.GetDotParam(dotCmd.DotStyle);
     isWeightControl = dotCmd.IsWeightControl;
     weight          = dotCmd.Weight;
     this.isAssign   = dotCmd.IsAssign;
     this.numShots   = dotCmd.NumShots;
     Program         = dotCmd.RunnableModule.CommandsModule.Program;
     if (dotCmd.AssociatedMeasureHeightCmd != null)
     {
         curMeasureHeightValue = dotCmd.AssociatedMeasureHeightCmd.RealHtValue;
     }
     else
     {
         curMeasureHeightValue = this.RunnableModule.MeasuredHt;
     }
 }