Uni.RegValve position can be changed by mouse-clicks on the set point bar, ver. 3.1.1792
This commit is contained in:
@@ -52,12 +52,12 @@ namespace TBF.Rig.Uni.RegValve
|
||||
///
|
||||
public void IncreaseSetpoint()
|
||||
{
|
||||
/// TODO
|
||||
IncrementalMovement(true, 0.5);
|
||||
}
|
||||
///
|
||||
public void DecreaseSetpoint()
|
||||
{
|
||||
/// TODO
|
||||
IncrementalMovement(true, -0.5);
|
||||
}
|
||||
|
||||
int adcChannel;
|
||||
@@ -145,6 +145,14 @@ namespace TBF.Rig.Uni.RegValve
|
||||
{
|
||||
adcChannel = regValveCfg.Idx1 - 1;
|
||||
this.dict = new Dictionary<double, double>();
|
||||
|
||||
TBF.UiBridge.Bridge.SetpointChangeHandler += delegate(object sndr, TBF.UiBridge.SetpointChangeArgs args)
|
||||
{
|
||||
if (args.Name == Name)
|
||||
{
|
||||
if (args.Increase) IncreaseSetpoint(); else DecreaseSetpoint();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user