|
@@ -55,7 +55,7 @@ namespace PunkHPX8_MainPages.ViewModels
|
|
|
private ModuleInfo m_srd2ModuleInfo;
|
|
|
|
|
|
private List<EFEMModule> m_EFEMModules = new List<EFEMModule>();
|
|
|
- private List<EFEMModule> m_PUFModules = new List<EFEMModule>();
|
|
|
+ private List<Flip> m_FlipNames = new List<Flip>();
|
|
|
private EFEMBlade m_PickSelectedBlade;
|
|
|
private EFEMBlade m_PlaceSelectedBlade;
|
|
|
private EFEMBlade m_ExtendSelectedBlade;
|
|
@@ -65,6 +65,9 @@ namespace PunkHPX8_MainPages.ViewModels
|
|
|
private ObservableCollection<int> m_ExtendSoltItemsSource = new ObservableCollection<int>();
|
|
|
private ObservableCollection<int> m_RetractSoltItemsSource = new ObservableCollection<int>();
|
|
|
|
|
|
+ private Flip m_PickSoltSelectedFlip;
|
|
|
+ private Flip m_PlaceSoltSelectedFlip;
|
|
|
+
|
|
|
private int m_PickSoltSelectedIndex;
|
|
|
private int m_PlaceSoltSelectedIndex;
|
|
|
private int m_ExtendSoltSelectedIndex;
|
|
@@ -177,10 +180,10 @@ namespace PunkHPX8_MainPages.ViewModels
|
|
|
get { return m_EFEMModules; }
|
|
|
set { SetProperty(ref m_EFEMModules, value); }
|
|
|
}
|
|
|
- public List<EFEMModule> PUFModules
|
|
|
+ public List<Flip> FlipNames
|
|
|
{
|
|
|
- get { return m_PUFModules; }
|
|
|
- set { SetProperty(ref m_PUFModules, value); }
|
|
|
+ get { return m_FlipNames; }
|
|
|
+ set { SetProperty(ref m_FlipNames, value); }
|
|
|
}
|
|
|
public EFEMBlade PickSelectedBlade
|
|
|
{
|
|
@@ -224,6 +227,16 @@ namespace PunkHPX8_MainPages.ViewModels
|
|
|
get { return m_RetractSoltItemsSource; }
|
|
|
set { SetProperty(ref m_RetractSoltItemsSource, value); }
|
|
|
}
|
|
|
+ public Flip PickSoltSelectedFlip
|
|
|
+ {
|
|
|
+ get { return m_PickSoltSelectedFlip; }
|
|
|
+ set { SetProperty(ref m_PickSoltSelectedFlip, value); }
|
|
|
+ }
|
|
|
+ public Flip PlaceSoltSelectedFlip
|
|
|
+ {
|
|
|
+ get { return m_PlaceSoltSelectedFlip; }
|
|
|
+ set { SetProperty(ref m_PlaceSoltSelectedFlip, value); }
|
|
|
+ }
|
|
|
public int PickSoltSelectedIndex
|
|
|
{
|
|
|
get { return m_PickSoltSelectedIndex; }
|
|
@@ -701,6 +714,8 @@ namespace PunkHPX8_MainPages.ViewModels
|
|
|
EFEMModules.Add(EFEMModule.PlatingCell4);
|
|
|
OnModuleChange("Pick");
|
|
|
OnModuleChange("Place");
|
|
|
+ FlipNames.Add(Flip.Upper);
|
|
|
+ FlipNames.Add(Flip.Down);
|
|
|
|
|
|
Init();
|
|
|
|
|
@@ -793,7 +808,7 @@ namespace PunkHPX8_MainPages.ViewModels
|
|
|
Queue<MoveItem> moveItems = new Queue<MoveItem>();
|
|
|
var moduleName = (ModuleName)Enum.Parse(typeof(ModuleName), PickSelectedModule.ToString(), true);
|
|
|
var selectedHand = (Hand)Enum.Parse(typeof(Hand), PickSelectedBlade.ToString(), true);
|
|
|
- MoveItem moveItem = new MoveItem(moduleName, PickSoltItemsSource[PickSoltSelectedIndex]-1, ModuleName.EfemRobot, 0, selectedHand, Flip.Upper);
|
|
|
+ MoveItem moveItem = new MoveItem(moduleName, PickSoltItemsSource[PickSoltSelectedIndex]-1, ModuleName.EfemRobot, 0, selectedHand, PickSoltSelectedFlip);
|
|
|
moveItems.Enqueue(moveItem);
|
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName.EfemRobot}.{EfemOperation.Pick}", moveItems);
|
|
|
}
|
|
@@ -802,7 +817,7 @@ namespace PunkHPX8_MainPages.ViewModels
|
|
|
Queue<MoveItem> moveItems = new Queue<MoveItem>();
|
|
|
var moduleName = (ModuleName)Enum.Parse(typeof(ModuleName), PlaceSelectedModule.ToString(), true);
|
|
|
var selectedHand = (Hand)Enum.Parse(typeof(Hand), PlaceSelectedBlade.ToString(), true);
|
|
|
- MoveItem moveItem = new MoveItem(ModuleName.EfemRobot, 0, moduleName, PlaceSoltItemsSource[PlaceSoltSelectedIndex]-1, selectedHand,Flip.Upper);
|
|
|
+ MoveItem moveItem = new MoveItem(ModuleName.EfemRobot, 0, moduleName, PlaceSoltItemsSource[PlaceSoltSelectedIndex]-1, selectedHand, PlaceSoltSelectedFlip);
|
|
|
moveItems.Enqueue(moveItem);
|
|
|
InvokeClient.Instance.Service.DoOperation($"{ModuleName.EfemRobot}.{EfemOperation.Place}", moveItems);
|
|
|
}
|