From 9fa032b7aea6f2fbfdae05d21c3c10db174e1662 Mon Sep 17 00:00:00 2001 From: Roy Date: Sat, 3 Feb 2018 14:31:17 +0200 Subject: Same as previous.. --- .../Visual_Studio/Tango.Integration/Operators/MachineOperator.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs') diff --git a/Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs index 68f68d47c..17884b677 100644 --- a/Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operators/MachineOperator.cs @@ -10,6 +10,7 @@ using Tango.Transport.Transporters; using System.Reactive.Linq; using System.Reactive.Concurrency; using System.Reactive.Threading; +using Tango.PMR.Common; namespace Tango.Integration.Operators { @@ -18,7 +19,7 @@ namespace Tango.Integration.Operators /// /// Occurs when there is new diagnostics data available. /// - public event EventHandler DiagnosticsDataAvailable; + public event EventHandler DiagnosticsDataAvailable; private bool _enableDiagnostics; /// @@ -46,12 +47,12 @@ namespace Tango.Integration.Operators { if (value && State == TransportComponentState.Connected) { - SendContinuousRequest(new TangoMessage(new StartDiagnosticsRequest() + SendContinuousRequest(new TangoMessage(new PushDiagnosticsRequest() { PushMotors = true, PushSensors = true, - }, PMR.Common.MessageType.StartDiagnosticsRequest)).ObserveOn(new NewThreadScheduler()).Subscribe( + }, MessageType.PushDiagnosticsRequest)).ObserveOn(new NewThreadScheduler()).Subscribe( (response) => { OnDiagnosticsDataAvailable(response); @@ -71,7 +72,7 @@ namespace Tango.Integration.Operators /// Invokes the event. /// /// The sensors data. - protected virtual void OnDiagnosticsDataAvailable(StartDiagnosticsResponse data) + protected virtual void OnDiagnosticsDataAvailable(PushDiagnosticsResponse data) { DiagnosticsDataAvailable?.Invoke(this, data); } -- cgit v1.3.1