|
@@ -752,7 +752,7 @@ namespace Venus_RT.Devices
|
|
|
|
|
|
OP.Subscribe($"{Module}.{Name}.{AITRfOperation.SetMatchProcessMode}", (out string reason, int time, object[] param) =>
|
|
|
{
|
|
|
- SetMatchMode((string)param[0], out reason);
|
|
|
+ SetMatchMode((string)param[0] == "Auto" ? EnumRfMatchTuneMode.Auto : EnumRfMatchTuneMode.Manual, out reason);
|
|
|
return true;
|
|
|
});
|
|
|
|
|
@@ -794,15 +794,15 @@ namespace Venus_RT.Devices
|
|
|
/// <param name="c2"></param>
|
|
|
public override void SetMatchPosition(float c1, float c2, out string reason)
|
|
|
{
|
|
|
- //base.SetMatchPosition(c1, c2, out reason);
|
|
|
+ base.SetMatchPosition(c1, c2, out reason);
|
|
|
|
|
|
- ////this.SetWorkMode(EnumRfMatchTuneMode.Manual);
|
|
|
- //this.SetPosition(c1, c2);
|
|
|
- ////this.SetPresetMemory(0);
|
|
|
- ////this.SetWorkMode(EnumRfMatchTuneMode.Auto);
|
|
|
+ this.SetWorkMode(EnumRfMatchTuneMode.Manual);
|
|
|
+ this.SetPosition(c1, c2);
|
|
|
+ this.SetPresetMemory(0);
|
|
|
+ this.SetWorkMode(EnumRfMatchTuneMode.Auto);
|
|
|
|
|
|
- //TunePosition1 = c1;
|
|
|
- //TunePosition2 = c2;
|
|
|
+ TunePosition1 = c1;
|
|
|
+ TunePosition2 = c2;
|
|
|
reason = "";
|
|
|
}
|
|
|
|
|
@@ -875,6 +875,14 @@ namespace Venus_RT.Devices
|
|
|
this.SendCmd(cmd);
|
|
|
}
|
|
|
|
|
|
+ public override bool SetMatchMode(EnumRfMatchTuneMode enumRfMatchTuneMode, out string reason)
|
|
|
+ {
|
|
|
+ reason = string.Empty;
|
|
|
+ SetWorkMode(enumRfMatchTuneMode);
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
private void SetWorkMode(EnumRfMatchTuneMode mode)
|
|
|
{
|
|
|
this.SendCmd(mode == EnumRfMatchTuneMode.Auto ? AdTecMatchMessage.AUTO :
|