From b934b152eea671fa06678baa0cdf7f8811e6d2d9 Mon Sep 17 00:00:00 2001 From: Roy Date: Wed, 14 Feb 2018 22:51:52 +0200 Subject: MERGE. --- .../DataCaptureModule.cs | 84 ++++ .../Images/capture-device.png | Bin 0 -> 1812 bytes .../Images/data-capture.jpg | Bin 0 -> 121309 bytes .../Images/recordings.png | Bin 0 -> 858 bytes .../Images/tape.png | Bin 0 -> 713 bytes .../Images/video-frame.png | Bin 0 -> 97254 bytes .../Properties/AssemblyInfo.cs | 18 + .../Properties/Resources.Designer.cs | 62 +++ .../Properties/Resources.resx | 117 +++++ .../Properties/Settings.Designer.cs | 30 ++ .../Properties/Settings.settings | 7 + .../Recording/DataRecording.cs | 37 ++ .../Tango.MachineStudio.DataCapture.csproj | 174 ++++++++ .../ViewModelLocator.cs | 33 ++ .../ViewModels/MainViewVM.cs | 297 +++++++++++++ .../Views/MainView.xaml | 250 +++++++++++ .../Views/MainView.xaml.cs | 28 ++ .../Views/RecordingBarView.xaml | 50 +++ .../Views/RecordingBarView.xaml.cs | 28 ++ .../packages.config | 8 + .../Converters/OneToPercentConverter.cs | 23 + .../Converters/TechIosToDigitalInsConverter.cs | 35 ++ .../Converters/TechIosToDigitalOutsConverter.cs | 35 ++ .../Editors/DigitalInElementEditor.xaml | 92 ++++ .../Editors/DigitalInElementEditor.xaml.cs | 90 ++++ .../Editors/DigitalOutElementEditor.xaml | 103 +++++ .../Editors/DigitalOutElementEditor.xaml.cs | 90 ++++ .../Images/digital-in.png | Bin 0 -> 2082 bytes .../PropertiesTemplates/DigitalInTemplate.xaml | 33 ++ .../PropertiesTemplates/DigitalInTemplate.xaml.cs | 28 ++ .../PropertiesTemplates/DigitalOutTemplate.xaml | 33 ++ .../PropertiesTemplates/DigitalOutTemplate.xaml.cs | 28 ++ .../TechItems/DigitalInItem.cs | 73 +++ .../TechItems/DigitalOutItem.cs | 98 ++++ .../TechItems/TechItemAttribute.cs | 29 ++ .../Diagnostics/DefaultDiagnosticsFrameProvider.cs | 84 ++++ .../Diagnostics/IDiagnosticsFrameProvider.cs | 31 ++ .../Notifications/BarItem.cs | 46 ++ .../Tango.MachineStudio.Common/StudioModuleBase.cs | 113 +++++ .../Video/DefaultVideoCaptureProvider.cs | 44 ++ .../Video/IVideoCaptureProvider.cs | 21 + .../PMR/ColorLab/InputCoordinates.pb-c.c | 248 +++++++++++ .../PMR/ColorLab/InputCoordinates.pb-c.h | 97 ++++ .../Tango.ColorLib/PMR/ColorLab/InputLiquid.pb-c.c | 131 ++++++ .../Tango.ColorLib/PMR/ColorLab/InputLiquid.pb-c.h | 79 ++++ .../Tango.ColorLib/PMR/ColorLab/LiquidType.pb-c.c | 43 ++ .../Tango.ColorLib/PMR/ColorLab/LiquidType.pb-c.h | 46 ++ .../PMR/ColorLab/OutputCoordinates.pb-c.c | 144 ++++++ .../PMR/ColorLab/OutputCoordinates.pb-c.h | 81 ++++ .../PMR/ColorLab/OutputLiquid.pb-c.c | 106 +++++ .../PMR/ColorLab/OutputLiquid.pb-c.h | 75 ++++ .../PMR/Diagnostics/DataFileFrame.pb-c.c | 105 +++++ .../PMR/Diagnostics/DataFileFrame.pb-c.h | 74 ++++ .../PMR/Diagnostics/DigitalPin.pb-c.c | 105 +++++ .../PMR/Diagnostics/DigitalPin.pb-c.h | 74 ++++ .../Diagnostics/DispenserAbortHomingRequest.pb-c.c | 92 ++++ .../Diagnostics/DispenserAbortHomingRequest.pb-c.h | 72 +++ .../DispenserAbortHomingResponse.pb-c.c | 72 +++ .../DispenserAbortHomingResponse.pb-c.h | 70 +++ .../DispenserAbortJoggingRequest.pb-c.c | 92 ++++ .../DispenserAbortJoggingRequest.pb-c.h | 72 +++ .../DispenserAbortJoggingResponse.pb-c.c | 92 ++++ .../DispenserAbortJoggingResponse.pb-c.h | 72 +++ .../PMR/Diagnostics/DispenserHomingRequest.pb-c.c | 105 +++++ .../PMR/Diagnostics/DispenserHomingRequest.pb-c.h | 74 ++++ .../PMR/Diagnostics/DispenserHomingResponse.pb-c.c | 105 +++++ .../PMR/Diagnostics/DispenserHomingResponse.pb-c.h | 74 ++++ .../PMR/Diagnostics/DispenserJoggingRequest.pb-c.c | 118 +++++ .../PMR/Diagnostics/DispenserJoggingRequest.pb-c.h | 77 ++++ .../Diagnostics/DispenserJoggingResponse.pb-c.c | 72 +++ .../Diagnostics/DispenserJoggingResponse.pb-c.h | 70 +++ .../PMR/Diagnostics/MotorAbortHomingRequest.pb-c.c | 92 ++++ .../PMR/Diagnostics/MotorAbortHomingRequest.pb-c.h | 72 +++ .../Diagnostics/MotorAbortHomingResponse.pb-c.c | 72 +++ .../Diagnostics/MotorAbortHomingResponse.pb-c.h | 70 +++ .../Diagnostics/MotorAbortJoggingRequest.pb-c.c | 92 ++++ .../Diagnostics/MotorAbortJoggingRequest.pb-c.h | 72 +++ .../Diagnostics/MotorAbortJoggingResponse.pb-c.c | 92 ++++ .../Diagnostics/MotorAbortJoggingResponse.pb-c.h | 72 +++ .../PMR/Diagnostics/MotorDirection.pb-c.c | 37 ++ .../PMR/Diagnostics/MotorDirection.pb-c.h | 43 ++ .../PMR/Diagnostics/MotorHomingRequest.pb-c.c | 105 +++++ .../PMR/Diagnostics/MotorHomingRequest.pb-c.h | 74 ++++ .../PMR/Diagnostics/MotorHomingResponse.pb-c.c | 105 +++++ .../PMR/Diagnostics/MotorHomingResponse.pb-c.h | 74 ++++ .../PMR/Diagnostics/MotorJoggingRequest.pb-c.c | 118 +++++ .../PMR/Diagnostics/MotorJoggingRequest.pb-c.h | 77 ++++ .../PMR/Diagnostics/MotorJoggingResponse.pb-c.c | 72 +++ .../PMR/Diagnostics/MotorJoggingResponse.pb-c.h | 70 +++ .../PMR/Diagnostics/SetDigitalOutRequest.pb-c.c | 105 +++++ .../PMR/Diagnostics/SetDigitalOutRequest.pb-c.h | 74 ++++ .../PMR/Diagnostics/SetDigitalOutResponse.pb-c.c | 72 +++ .../PMR/Diagnostics/SetDigitalOutResponse.pb-c.h | 70 +++ .../Diagnostics/ThreadAbortJoggingRequest.pb-c.c | 72 +++ .../Diagnostics/ThreadAbortJoggingRequest.pb-c.h | 70 +++ .../Diagnostics/ThreadAbortJoggingResponse.pb-c.c | 72 +++ .../Diagnostics/ThreadAbortJoggingResponse.pb-c.h | 70 +++ .../PMR/Diagnostics/ThreadJoggingRequest.pb-c.c | 106 +++++ .../PMR/Diagnostics/ThreadJoggingRequest.pb-c.h | 75 ++++ .../PMR/Diagnostics/ThreadJoggingResponse.pb-c.c | 72 +++ .../PMR/Diagnostics/ThreadJoggingResponse.pb-c.h | 70 +++ .../Visual_Studio/Tango.DAL.Remote/DB/TECH_IOS.cs | 28 ++ .../Dispensing/DispenserStepDivisions.cs | 27 ++ .../Observables/Entities/TechIo.cs | 162 +++++++ .../Observables/Enumerations/IOType.cs | 17 + .../Observables/Enumerations/TechIos.cs | 25 ++ .../ExtensionMethods/LiquidTypeExtensions.cs | 15 + .../Tango.PMR/ColorLab/InputCoordinates.cs | 492 +++++++++++++++++++++ .../Tango.PMR/ColorLab/InputLiquid.cs | 253 +++++++++++ .../Visual_Studio/Tango.PMR/ColorLab/LiquidType.cs | 49 ++ .../Tango.PMR/ColorLab/OutputCoordinates.cs | 266 +++++++++++ .../Tango.PMR/ColorLab/OutputLiquid.cs | 189 ++++++++ .../Tango.PMR/Diagnostics/DigitalPin.cs | 187 ++++++++ .../Tango.PMR/Diagnostics/SetDigitalOutRequest.cs | 188 ++++++++ .../Tango.PMR/Diagnostics/SetDigitalOutResponse.cs | 131 ++++++ 115 files changed, 9455 insertions(+) create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/DataCaptureModule.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/capture-device.png create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/data-capture.jpg create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/recordings.png create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/tape.png create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/video-frame.png create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/AssemblyInfo.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Resources.Designer.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Resources.resx create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Settings.Designer.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Settings.settings create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Recording/DataRecording.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Tango.MachineStudio.DataCapture.csproj create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/ViewModelLocator.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/ViewModels/MainViewVM.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/MainView.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/MainView.xaml.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/RecordingBarView.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/RecordingBarView.xaml.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/packages.config create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/OneToPercentConverter.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/TechIosToDigitalInsConverter.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/TechIosToDigitalOutsConverter.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalInElementEditor.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalInElementEditor.xaml.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalOutElementEditor.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalOutElementEditor.xaml.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Images/digital-in.png create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalInTemplate.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalInTemplate.xaml.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalOutTemplate.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalOutTemplate.xaml.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/DigitalInItem.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/DigitalOutItem.cs create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/TechItemAttribute.cs create mode 100644 Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/DefaultDiagnosticsFrameProvider.cs create mode 100644 Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/IDiagnosticsFrameProvider.cs create mode 100644 Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Notifications/BarItem.cs create mode 100644 Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioModuleBase.cs create mode 100644 Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Video/DefaultVideoCaptureProvider.cs create mode 100644 Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Video/IVideoCaptureProvider.cs create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputCoordinates.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputCoordinates.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputLiquid.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputLiquid.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/LiquidType.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/LiquidType.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputCoordinates.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputCoordinates.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputLiquid.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputLiquid.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DataFileFrame.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DataFileFrame.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DigitalPin.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DigitalPin.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingRequest.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingRequest.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingResponse.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingResponse.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingRequest.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingRequest.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingResponse.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingResponse.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingRequest.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingRequest.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingResponse.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingResponse.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingRequest.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingRequest.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingResponse.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingResponse.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingRequest.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingRequest.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingResponse.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingResponse.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingRequest.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingRequest.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingResponse.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingResponse.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorDirection.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorDirection.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingRequest.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingRequest.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingResponse.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingResponse.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingRequest.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingRequest.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingResponse.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingResponse.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutRequest.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutRequest.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutResponse.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutResponse.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingRequest.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingRequest.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingResponse.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingResponse.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingRequest.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingRequest.pb-c.h create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingResponse.pb-c.c create mode 100644 Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingResponse.pb-c.h create mode 100644 Software/Visual_Studio/Tango.DAL.Remote/DB/TECH_IOS.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Dispensing/DispenserStepDivisions.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Entities/TechIo.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/IOType.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/Enumerations/TechIos.cs create mode 100644 Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/LiquidTypeExtensions.cs create mode 100644 Software/Visual_Studio/Tango.PMR/ColorLab/InputCoordinates.cs create mode 100644 Software/Visual_Studio/Tango.PMR/ColorLab/InputLiquid.cs create mode 100644 Software/Visual_Studio/Tango.PMR/ColorLab/LiquidType.cs create mode 100644 Software/Visual_Studio/Tango.PMR/ColorLab/OutputCoordinates.cs create mode 100644 Software/Visual_Studio/Tango.PMR/ColorLab/OutputLiquid.cs create mode 100644 Software/Visual_Studio/Tango.PMR/Diagnostics/DigitalPin.cs create mode 100644 Software/Visual_Studio/Tango.PMR/Diagnostics/SetDigitalOutRequest.cs create mode 100644 Software/Visual_Studio/Tango.PMR/Diagnostics/SetDigitalOutResponse.cs (limited to 'Software/Visual_Studio') diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/DataCaptureModule.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/DataCaptureModule.cs new file mode 100644 index 000000000..ee650dc13 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/DataCaptureModule.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Media.Imaging; +using Tango.Integration.Observables; +using Tango.MachineStudio.Common; +using Tango.MachineStudio.DataCapture.Views; +using Tango.SharedUI.Helpers; + +namespace Tango.MachineStudio.DataCapture +{ + /// + /// Represents the machine studio data capturing and playing module. + /// + /// + public class DataCaptureModule : StudioModuleBase + { + /// + /// Gets the module name. + /// + public override string Name + { + get + { + return "Data Capture"; + } + } + + /// + /// Gets the module description. + /// + public override string Description + { + get + { + return "Capture and synchronize diagnostics machine data with video capturing devices for later analysis"; + } + } + + /// + /// Gets the module cover image. + /// + public override BitmapSource Image + { + get + { + return ResourceHelper.GetImageFromResources("Images/data-capture.jpg"); + } + } + + /// + /// Gets the module entry point view. + /// + public override FrameworkElement MainView + { + get + { + return new MainView(); + } + } + + /// + /// Gets the permission required to see and load this module. + /// + public override Permissions Permission + { + get + { + return Permissions.RunTechnicianModule; + } + } + + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + public override void Dispose() + { + + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/capture-device.png b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/capture-device.png new file mode 100644 index 000000000..5f04b660a Binary files /dev/null and b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/capture-device.png differ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/data-capture.jpg b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/data-capture.jpg new file mode 100644 index 000000000..87524f07a Binary files /dev/null and b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/data-capture.jpg differ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/recordings.png b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/recordings.png new file mode 100644 index 000000000..a965c62af Binary files /dev/null and b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/recordings.png differ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/tape.png b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/tape.png new file mode 100644 index 000000000..8a4739b23 Binary files /dev/null and b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/tape.png differ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/video-frame.png b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/video-frame.png new file mode 100644 index 000000000..9c29dc438 Binary files /dev/null and b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Images/video-frame.png differ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/AssemblyInfo.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..0fd6e93b2 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/AssemblyInfo.cs @@ -0,0 +1,18 @@ +using System.Reflection; +using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Windows; + +[assembly: AssemblyTitle("Tango - Machine Studio Data Capturing Module")] + +[assembly: ComVisible(false)] + +[assembly:ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Resources.Designer.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Resources.Designer.cs new file mode 100644 index 000000000..fdd6d78b8 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Resources.Designer.cs @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.MachineStudio.DataCapture.Properties { + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if ((resourceMan == null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Tango.MachineStudio.DataCapture.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Resources.resx b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Resources.resx new file mode 100644 index 000000000..af7dbebba --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Settings.Designer.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Settings.Designer.cs new file mode 100644 index 000000000..8a9ab67ad --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.MachineStudio.DataCapture.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Settings.settings b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Settings.settings new file mode 100644 index 000000000..033d7a5e9 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Recording/DataRecording.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Recording/DataRecording.cs new file mode 100644 index 000000000..a191c244e --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Recording/DataRecording.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Core; + +namespace Tango.MachineStudio.DataCapture.Recording +{ + public class DataRecording : ExtendedObject + { + private DateTime _date; + + public DateTime Date + { + get { return _date; } + set { _date = value; RaisePropertyChangedAuto(); } + } + + private String _name; + + public String Name + { + get { return _name; } + set { _name = value; RaisePropertyChangedAuto(); } + } + + private String _file; + + public String FilePath + { + get { return _file; } + set { _file = value; RaisePropertyChangedAuto(); } + } + + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Tango.MachineStudio.DataCapture.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Tango.MachineStudio.DataCapture.csproj new file mode 100644 index 000000000..1c13be809 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Tango.MachineStudio.DataCapture.csproj @@ -0,0 +1,174 @@ + + + + + Debug + AnyCPU + {FC337A7F-1214-41D8-9992-78092A3B961E} + library + Tango.MachineStudio.DataCapture + Tango.MachineStudio.DataCapture + v4.6 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + + + true + full + false + ..\..\..\Build\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\..\packages\MvvmLightLibs.5.3.0.0\lib\net45\GalaSoft.MvvmLight.dll + + + ..\..\..\packages\MvvmLightLibs.5.3.0.0\lib\net45\GalaSoft.MvvmLight.Extras.dll + + + ..\..\..\packages\MvvmLightLibs.5.3.0.0\lib\net45\GalaSoft.MvvmLight.Platform.dll + + + ..\..\..\packages\MahApps.Metro.1.5.0\lib\net45\MahApps.Metro.dll + + + ..\..\..\packages\MaterialDesignColors.1.1.2\lib\net45\MaterialDesignColors.dll + + + ..\..\..\packages\MaterialDesignThemes.2.3.1.953\lib\net45\MaterialDesignThemes.Wpf.dll + + + ..\..\..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll + + + + + ..\..\..\packages\MahApps.Metro.1.5.0\lib\net45\System.Windows.Interactivity.dll + + + + + + + + + 4.0 + + + + + + + + + + + MainView.xaml + + + GlobalVersionInfo.cs + + + + RecordingBarView.xaml + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + {a34ee0f0-649d-41c8-8489-b6f1cc6924ee} + Tango.Core + + + {4206ac58-3b57-4699-8835-90bf6db01a61} + Tango.Integration + + + {bc932dbd-7cdb-488c-99e4-f02cf441f55e} + Tango.Logging + + + {e4927038-348d-4295-aaf4-861c58cb3943} + Tango.PMR + + + {d8f1ad85-526a-4f50-b6dc-d437af63d8d8} + Tango.Settings + + + {8491d07b-c1f6-4b62-a412-41b9fd2d6538} + Tango.SharedUI + + + {74e700b0-1156-4126-be40-ee450d3c3026} + Tango.Transport + + + {9652f972-2bd1-4283-99cb-fc6240434c17} + Tango.Video + + + {cb0b0aa2-bb24-4bca-a720-45e397684e12} + Tango.MachineStudio.Common + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/ViewModelLocator.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/ViewModelLocator.cs new file mode 100644 index 000000000..98c5db8fe --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/ViewModelLocator.cs @@ -0,0 +1,33 @@ +using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Ioc; +using Microsoft.Practices.ServiceLocation; +using Tango.MachineStudio.DataCapture.ViewModels; +using Tango.MachineStudio.DataCapture.Views; + +namespace Tango.MachineStudio.DataCapture +{ + /// + /// This class contains static references to all the view models in the + /// application and provides an entry point for the bindings. + /// + public static class ViewModelLocator + { + /// + /// Initializes a new instance of the ViewModelLocator class. + /// + static ViewModelLocator() + { + ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default); + + SimpleIoc.Default.Register(); + } + + public static MainViewVM MainViewVM + { + get + { + return ServiceLocator.Current.GetInstance(); + } + } + } +} \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/ViewModels/MainViewVM.cs new file mode 100644 index 000000000..b63ee51d0 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/ViewModels/MainViewVM.cs @@ -0,0 +1,297 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Controls; +using Tango.Core.Commands; +using Tango.Integration.Diagnostics; +using Tango.Integration.Operators; +using Tango.MachineStudio.Common.Diagnostics; +using Tango.MachineStudio.Common.Notifications; +using Tango.MachineStudio.Common.StudioApplication; +using Tango.MachineStudio.Common.Video; +using Tango.MachineStudio.DataCapture.Recording; +using Tango.MachineStudio.DataCapture.Views; +using Tango.PMR.Diagnostics; +using Tango.Settings; +using Tango.SharedUI; +using Tango.Video.DirectCapture; + +namespace Tango.MachineStudio.DataCapture.ViewModels +{ + /// + /// Represents the data capture main view, view model. + /// + /// + public class MainViewVM : ViewModel + { + private INotificationProvider _notification; + private IStudioApplicationManager _applicationManager; + private IDiagnosticsFrameProvider _frameProvider; + private String _recordingsFolder; + + #region Properties + + private ObservableCollection _recordings; + /// + /// Gets or sets the recordings collection. + /// + public ObservableCollection Recordings + { + get { return _recordings; } + set { _recordings = value; RaisePropertyChangedAuto(); } + } + + private DataRecording _selectedRecording; + /// + /// Gets or sets the selected recording. + /// + public DataRecording SelectedRecording + { + get { return _selectedRecording; } + set { _selectedRecording = value; RaisePropertyChangedAuto(); } + } + + /// + /// Gets or sets the video capture provider. + /// + public IVideoCaptureProvider VideoCaptureProvider { get; set; } + + private DiagnosticsFileRecorder _recorder; + /// + /// Gets or sets the diagnostics file recorder. + /// + public DiagnosticsFileRecorder Recorder + { + get { return _recorder; } + set { _recorder = value; RaisePropertyChangedAuto(); } + } + + private DiagnosticsFilePlayer _player; + /// + /// Gets or sets the diagnostics file player. + /// + public DiagnosticsFilePlayer Player + { + get { return _player; } + set { _player = value; RaisePropertyChangedAuto(); } + } + + /// + /// Gets or sets the machine operator. + /// + public IMachineOperator MachineOperator { get; set; } + + #endregion + + #region Commands + + /// + /// Gets or sets the remove recording command. + /// + public RelayCommand RemoveRecordingCommand { get; set; } + + /// + /// Gets or sets the toggle camera command. + /// + public RelayCommand ToggleCameraCommand { get; set; } + + /// + /// Gets or sets the media recording command. + /// + public RelayCommand MediaRecordingCommand { get; set; } + + /// + /// Gets or sets the media stop command. + /// + public RelayCommand MediaStopCommand { get; set; } + + /// + /// Gets or sets the media toggle play pause command. + /// + public RelayCommand MediaTogglePlayPauseCommand { get; set; } + + /// + /// Gets or sets the media play pause command. + /// + public RelayCommand MediaPlayPauseCommand { get; set; } + + #endregion + + #region Constructors + + /// + /// Initializes a new instance of the class. + /// + public MainViewVM(IVideoCaptureProvider videoCaptureProvider, INotificationProvider notification, IStudioApplicationManager applicationManager, IDiagnosticsFrameProvider frameProvider) + { + _notification = notification; + _applicationManager = applicationManager; + _frameProvider = frameProvider; + + Recorder = new DiagnosticsFileRecorder(); + Player = new DiagnosticsFilePlayer(); + + VideoCaptureProvider = videoCaptureProvider; + Recordings = new ObservableCollection(); + + ToggleCameraCommand = new RelayCommand(ToggleCamera); + + Recordings.Add(new DataRecording() + { + Name = "Recording 1" + }); + Recordings.Add(new DataRecording() + { + Name = "Recording 2" + }); + Recordings.Add(new DataRecording() + { + Name = "Recording 3" + }); + + RemoveRecordingCommand = new RelayCommand(RemoveRecording); + + MediaRecordingCommand = new RelayCommand(StartDiagnosticsRecording, () => !Recorder.IsRecording && MachineOperator != null && !Player.IsPlaying); + MediaStopCommand = new RelayCommand(StopRecorderOrPlayer, () => Recorder.IsRecording || Player.IsPlaying); + MediaPlayPauseCommand = new RelayCommand(DiagnosticsTogglePlayPause, () => !Recorder.IsRecording && Player.IsLoaded); + + _recordingsFolder = Path.Combine(SettingsManager.DefaultFolder, "Recordings"); + Directory.CreateDirectory(_recordingsFolder); + + _frameProvider.FrameReceived += _frameProvider_FrameReceived; + + _notification.PushBarItem(new RecordingBarView() { DataContext = this }); + + applicationManager.ConnectedMachineChanged += ApplicationManager_ConnectedMachineChanged; + } + + private void ApplicationManager_ConnectedMachineChanged(object sender, Integration.Services.IExternalBridgeClient machine) + { + MachineOperator = machine; + InvalidateRelayCommands(); + } + + private void _frameProvider_FrameReceived(object sender, PushDiagnosticsResponse frame) + { + if (!_frameProvider.Disable) + { + if (Recorder.IsRecording) + { + Recorder.Write(frame); + } + } + } + + #endregion + + #region Private Methods + + /// + /// Removes the recording. + /// + /// The recording. + private void RemoveRecording(DataRecording recording) + { + Recordings.Remove(recording); + } + + /// + /// Toggles the camera. + /// + /// The capture device. + private void ToggleCamera(CaptureDevice captureDevice) + { + if (captureDevice.Device != null) + { + captureDevice.IsStarted = !captureDevice.IsStarted; + } + } + + private void DiagnosticsTogglePlayPause() + { + if (!Player.IsPlaying || Player.IsPaused) + { + _frameProvider.Disable = true; + Player.Play(); + } + else + { + Player.Pause(); + } + + InvalidateRelayCommands(); + } + + private async void LoadSelectedRecording() + { + using (_notification.PushTaskItem("Loading Recording...")) + { + if (Player != null) + { + Player.Dispose(); + } + + Player = new DiagnosticsFilePlayer(); + Player.FrameReceived += Player_FrameReceived; + await Player.Load(SelectedRecording.FilePath); + } + + InvalidateRelayCommands(); + } + + private void Player_FrameReceived(object sender, DataFileFrame frame) + { + if (_frameProvider.Disable) + { + _frameProvider.PushFrame(frame.PushDiagnosticsResponse); + } + } + + private void StartDiagnosticsRecording() + { + using (_notification.PushTaskItem("Starting Recording...")) + { + Recorder.Start(); + } + + InvalidateRelayCommands(); + } + + private async void StopRecorderOrPlayer() + { + if (Recorder.IsRecording) + { + using (_notification.PushTaskItem("Stopping Recording...")) + { + await Recorder.Stop(); + } + + String recordingName = _notification.ShowTextInput("Enter recording name", "Recording name"); + + if (!String.IsNullOrWhiteSpace(recordingName)) + { + using (_notification.PushTaskItem("Saving Recording...")) + { + await Recorder.Save(Path.Combine(_recordingsFolder, recordingName + ".tdr")); + } + } + + Recorder.Dispose(); + Recorder = new DiagnosticsFileRecorder(); + } + else if (Player.IsPlaying) + { + await Player.Stop(); + _frameProvider.Disable = false; + } + + InvalidateRelayCommands(); + } + + #endregion + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/MainView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/MainView.xaml new file mode 100644 index 000000000..74addf942 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/MainView.xaml @@ -0,0 +1,250 @@ + + + + + + + + + + + + + + + + + + + + + RECORDINGS + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + CAPTURE DEVICES + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Total Frames: + + + + File Size: + + + + + + + + + + + + + + + + + + + + / + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/MainView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/MainView.xaml.cs new file mode 100644 index 000000000..624840d66 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/MainView.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Tango.MachineStudio.DataCapture.Views +{ + /// + /// Interaction logic for MainView.xaml + /// + public partial class MainView : UserControl + { + public MainView() + { + InitializeComponent(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/RecordingBarView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/RecordingBarView.xaml new file mode 100644 index 000000000..d076eb631 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/RecordingBarView.xaml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/RecordingBarView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/RecordingBarView.xaml.cs new file mode 100644 index 000000000..97389a1e5 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/RecordingBarView.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Tango.MachineStudio.DataCapture.Views +{ + /// + /// Interaction logic for RecordingBarView.xaml + /// + public partial class RecordingBarView : UserControl + { + public RecordingBarView() + { + InitializeComponent(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/packages.config b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/packages.config new file mode 100644 index 000000000..4fd672b32 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/packages.config @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/OneToPercentConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/OneToPercentConverter.cs new file mode 100644 index 000000000..292de5cb4 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/Converters/OneToPercentConverter.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Data; + +namespace Tango.MachineStudio.Developer.Converters +{ + public class OneToPercentConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + return System.Convert.ToDouble(value) * 100d; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + return System.Convert.ToDouble(value) / 100d; + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/TechIosToDigitalInsConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/TechIosToDigitalInsConverter.cs new file mode 100644 index 000000000..4b587743d --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/TechIosToDigitalInsConverter.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Data; +using Tango.Integration.Observables; +using Tango.Integration.Observables.Enumerations; + +namespace Tango.MachineStudio.Technician.Converters +{ + public class TechIosToDigitalInsConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + ObservableCollection ios = value as ObservableCollection; + + if (ios != null) + { + return ios.Where(x => x.Type == IOType.DigitalInput.ToInt32()).ToObservableCollection(); + } + else + { + return null; + } + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/TechIosToDigitalOutsConverter.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/TechIosToDigitalOutsConverter.cs new file mode 100644 index 000000000..734c4bebf --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Converters/TechIosToDigitalOutsConverter.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Data; +using Tango.Integration.Observables; +using Tango.Integration.Observables.Enumerations; + +namespace Tango.MachineStudio.Technician.Converters +{ + public class TechIosToDigitalOutsConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + ObservableCollection ios = value as ObservableCollection; + + if (ios != null) + { + return ios.Where(x => x.Type == IOType.DigitalOutput.ToInt32()).ToObservableCollection(); + } + else + { + return null; + } + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotImplementedException(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalInElementEditor.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalInElementEditor.xaml new file mode 100644 index 000000000..29eab7042 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalInElementEditor.xaml @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalInElementEditor.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalInElementEditor.xaml.cs new file mode 100644 index 000000000..e884e70b9 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalInElementEditor.xaml.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Controls.Primitives; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Markup; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; +using Tango.Editors; +using Tango.Integration.Observables; +using Tango.MachineStudio.Technician.TechItems; + +namespace Tango.MachineStudio.Technician.Editors +{ + [ContentProperty("InnerContent")] + public partial class DigitalInElementEditor : ElementEditor + { + public DigitalInElementEditor() + : base() + { + InitializeComponent(); + } + + public DigitalInElementEditor(DigitalInItem digitalInItem) + : this() + { + DigitalInItem = digitalInItem; + DataContext = DigitalInItem; + } + + public DigitalInElementEditor(DigitalInItem digitalInItem, Rect bounds) + : this(digitalInItem) + { + Left = bounds.Left; + Top = bounds.Top; + Width = bounds.Width; + Height = bounds.Height; + } + + private DigitalInItem _digitalInItem; + + public DigitalInItem DigitalInItem + { + get { return _digitalInItem; } + set { _digitalInItem = value; RaisePropertyChanged(nameof(DigitalInItem)); } + } + + + /// + /// Clones this instance. + /// + /// + public override IElementEditor Clone() + { + try + { + var clonedItem = DigitalInItem.Clone() as DigitalInItem; + DigitalInElementEditor cloned = new DigitalInElementEditor(clonedItem); + cloned.Top = Top; + cloned.Left = Left; + cloned.Width = Width; + cloned.Height = Height; + cloned.Angle = Angle; + return cloned; + } + catch (Exception ex) + { + throw new InvalidOperationException("Could not clone this editor. You may have to create a custom editor and implement a custom Clone method.", ex); + } + } + + /// + /// Gets the hosted element. + /// + [ParameterIgnore] + public override Object HostedElement + { + get { return DigitalInItem; } + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalOutElementEditor.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalOutElementEditor.xaml new file mode 100644 index 000000000..dcf78ca69 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalOutElementEditor.xaml @@ -0,0 +1,103 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalOutElementEditor.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalOutElementEditor.xaml.cs new file mode 100644 index 000000000..6428ccf1d --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Editors/DigitalOutElementEditor.xaml.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Controls.Primitives; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Markup; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; +using Tango.Editors; +using Tango.Integration.Observables; +using Tango.MachineStudio.Technician.TechItems; + +namespace Tango.MachineStudio.Technician.Editors +{ + [ContentProperty("InnerContent")] + public partial class DigitalOutElementEditor : ElementEditor + { + public DigitalOutElementEditor() + : base() + { + InitializeComponent(); + } + + public DigitalOutElementEditor(DigitalOutItem digitalOutItem) + : this() + { + DigitalOutItem = digitalOutItem; + DataContext = DigitalOutItem; + } + + public DigitalOutElementEditor(DigitalOutItem digitalOutItem, Rect bounds) + : this(digitalOutItem) + { + Left = bounds.Left; + Top = bounds.Top; + Width = bounds.Width; + Height = bounds.Height; + } + + private DigitalOutItem _digitalOutItem; + + public DigitalOutItem DigitalOutItem + { + get { return _digitalOutItem; } + set { _digitalOutItem = value; RaisePropertyChanged(nameof(DigitalOutItem)); } + } + + + /// + /// Clones this instance. + /// + /// + public override IElementEditor Clone() + { + try + { + var clonedItem = DigitalOutItem.Clone() as DigitalOutItem; + DigitalOutElementEditor cloned = new DigitalOutElementEditor(clonedItem); + cloned.Top = Top; + cloned.Left = Left; + cloned.Width = Width; + cloned.Height = Height; + cloned.Angle = Angle; + return cloned; + } + catch (Exception ex) + { + throw new InvalidOperationException("Could not clone this editor. You may have to create a custom editor and implement a custom Clone method.", ex); + } + } + + /// + /// Gets the hosted element. + /// + [ParameterIgnore] + public override Object HostedElement + { + get { return DigitalOutItem; } + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Images/digital-in.png b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Images/digital-in.png new file mode 100644 index 000000000..3b5ebac18 Binary files /dev/null and b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/Images/digital-in.png differ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalInTemplate.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalInTemplate.xaml new file mode 100644 index 000000000..1121fe9e1 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalInTemplate.xaml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + Selected Pin + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalInTemplate.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalInTemplate.xaml.cs new file mode 100644 index 000000000..9862a95b9 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalInTemplate.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Tango.MachineStudio.Technician.PropertiesTemplates +{ + /// + /// Interaction logic for MonitorTemplate.xaml + /// + public partial class DigitalInTemplate : UserControl + { + public DigitalInTemplate() + { + InitializeComponent(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalOutTemplate.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalOutTemplate.xaml new file mode 100644 index 000000000..dafceefcb --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalOutTemplate.xaml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + Selected Pin + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalOutTemplate.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalOutTemplate.xaml.cs new file mode 100644 index 000000000..58a3fcb8f --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/PropertiesTemplates/DigitalOutTemplate.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Tango.MachineStudio.Technician.PropertiesTemplates +{ + /// + /// Interaction logic for MonitorTemplate.xaml + /// + public partial class DigitalOutTemplate : UserControl + { + public DigitalOutTemplate() + { + InitializeComponent(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/DigitalInItem.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/DigitalInItem.cs new file mode 100644 index 000000000..7f1548254 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/DigitalInItem.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Media; +using System.Xml.Serialization; +using Tango.Integration.Observables; +using Tango.SharedUI.Helpers; + +namespace Tango.MachineStudio.Technician.TechItems +{ + /// + /// Represents a digital input pin item. + /// + /// + [TechItem(0)] + public class DigitalInItem : TechItem + { + private TechIo _techIo; + /// + /// Gets or sets the DB tech item. + /// + [XmlIgnore] + public TechIo TechIo + { + get { return _techIo; } + set { _techIo = value; RaisePropertyChangedAuto(); TechName = _techIo != null ? _techIo.Description : null; ItemGuid = value != null ? value.Guid : null; } + } + + private bool _value; + /// + /// Gets or sets whether the input is on. + /// + [XmlIgnore] + public bool Value + { + get { return _value; } + set { _value = value; RaisePropertyChangedAuto(); } + } + + /// + /// Initializes a new instance of the class. + /// + public DigitalInItem() : base() + { + Name = "Digital In"; + Description = "Digital Input Pin LED"; + Image = ResourceHelper.GetImageFromResources("Images/digital-in.png"); + Color = Colors.White; + } + + /// + /// Initializes a new instance of the class. + /// + /// The db tech. + public DigitalInItem(TechIo techIo) : this() + { + TechIo = techIo; + } + + /// + /// Clones this instance. + /// + /// + public override TechItem Clone() + { + DigitalInItem cloned = base.Clone() as DigitalInItem; + cloned.TechIo = TechIo; + return cloned; + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/DigitalOutItem.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/DigitalOutItem.cs new file mode 100644 index 000000000..2a0625c53 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/DigitalOutItem.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Media; +using System.Xml.Serialization; +using Tango.Integration.Observables; +using Tango.SharedUI.Helpers; + +namespace Tango.MachineStudio.Technician.TechItems +{ + /// + /// Represents a digital output pin item. + /// + /// + [TechItem(1)] + public class DigitalOutItem : TechItem + { + /// + /// Occurs when the user has changed the current value. + /// + public event EventHandler ValueChanged; + + private TechIo _techIo; + /// + /// Gets or sets the db tech item. + /// + [XmlIgnore] + public TechIo TechIo + { + get { return _techIo; } + set { _techIo = value; RaisePropertyChangedAuto(); TechName = _techIo != null ? _techIo.Description : null; ItemGuid = value != null ? value.Guid : null; } + } + + private bool _value; + /// + /// Gets or sets a value indicating whether this is on. + /// + [XmlIgnore] + public bool Value + { + get { return _value; } + set { _value = value; RaisePropertyChangedAuto(); ValueChanged?.Invoke(this, value); } + } + + private bool _effectiveValue; + /// + /// Gets or sets the effective value received from the embedded device. + /// + [XmlIgnore] + public bool EffectiveValue + { + get { return _effectiveValue; } + set + { + if (_effectiveValue != value) + { + _effectiveValue = value; + RaisePropertyChangedAuto(); + _value = value; + RaisePropertyChanged(nameof(Value)); + } + } + } + + /// + /// Initializes a new instance of the class. + /// + public DigitalOutItem() : base() + { + Name = "Digital Out"; + Description = "Digital Output Pin Controller"; + Image = ResourceHelper.GetImageFromResources("Images/binary.png"); + Color = Colors.White; + } + + /// + /// Initializes a new instance of the class. + /// + /// The db tech item. + public DigitalOutItem(TechIo techIo) : this() + { + TechIo = techIo; + } + + /// + /// Clones this instance. + /// + /// + public override TechItem Clone() + { + DigitalOutItem cloned = base.Clone() as DigitalOutItem; + cloned.TechIo = TechIo; + return cloned; + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/TechItemAttribute.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/TechItemAttribute.cs new file mode 100644 index 000000000..fafd00954 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Technician/TechItems/TechItemAttribute.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.MachineStudio.Technician.TechItems +{ + /// + /// Represents a tech item attribute + /// + /// + public class TechItemAttribute : Attribute + { + /// + /// Gets or sets the item index. + /// + public int Index { get; set; } + + /// + /// Initializes a new instance of the class. + /// + /// The index. + public TechItemAttribute(int index) + { + Index = index; + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/DefaultDiagnosticsFrameProvider.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/DefaultDiagnosticsFrameProvider.cs new file mode 100644 index 000000000..b77619ac2 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/DefaultDiagnosticsFrameProvider.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Integration.Operators; +using Tango.MachineStudio.Common.StudioApplication; +using Tango.PMR.Diagnostics; + +namespace Tango.MachineStudio.Common.Diagnostics +{ + /// + /// Represents the default diagnostics frame provider. + /// + /// + public class DefaultDiagnosticsFrameProvider : IDiagnosticsFrameProvider + { + /// + /// Disables the frame delivery from the current connected machine and enables the manual push frame method. + /// + public bool Disable { get; set; } + + /// + /// Occurs when a new data frame is available. + /// + public event EventHandler FrameReceived; + + /// + /// Initializes a new instance of the class. + /// + /// The application manager. + public DefaultDiagnosticsFrameProvider(IStudioApplicationManager applicationManager) + { + applicationManager.ConnectedMachineChanged += ApplicationManager_ConnectedMachineChanged; + } + + /// + /// Applications the manager connected machine changed. + /// + /// The sender. + /// The machine. + private void ApplicationManager_ConnectedMachineChanged(object sender, Integration.Services.IExternalBridgeClient machine) + { + if (machine != null) + { + (machine as MachineOperator).DiagnosticsDataAvailable += DefaultDiagnosticsFrameProvider_DiagnosticsDataAvailable; + } + } + + /// + /// Defaults the diagnostics frame provider diagnostics data available. + /// + /// The sender. + /// The frame. + private void DefaultDiagnosticsFrameProvider_DiagnosticsDataAvailable(object sender, PushDiagnosticsResponse frame) + { + if (!Disable) + { + OnFrameReceived(frame); + } + } + + /// + /// Push frames manual. (Only when Disable = true) + /// + /// The frame. + public void PushFrame(PushDiagnosticsResponse frame) + { + if (Disable) + { + OnFrameReceived(frame); + } + } + + /// + /// Raises the event. + /// + /// The frame. + protected virtual void OnFrameReceived(PushDiagnosticsResponse frame) + { + FrameReceived?.Invoke(this, frame); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/IDiagnosticsFrameProvider.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/IDiagnosticsFrameProvider.cs new file mode 100644 index 000000000..0d63b59b6 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Diagnostics/IDiagnosticsFrameProvider.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.PMR.Diagnostics; + +namespace Tango.MachineStudio.Common.Diagnostics +{ + /// + /// Represents a tango machine diagnostics frame provider. + /// + public interface IDiagnosticsFrameProvider + { + /// + /// Occurs when a new data frame is available. + /// + event EventHandler FrameReceived; + + /// + /// Disables the frame delivery from the current connected machine and enables the manual push frame method. + /// + bool Disable { get; set; } + + /// + /// Push frames manual. (Only when Disable = true) + /// + /// The frame. + void PushFrame(PushDiagnosticsResponse frame); + } +} diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Notifications/BarItem.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Notifications/BarItem.cs new file mode 100644 index 000000000..8d3cefa40 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Notifications/BarItem.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using Tango.Core; + +namespace Tango.MachineStudio.Common.Notifications +{ + public class BarItem : ExtendedObject, IDisposable + { + private INotificationProvider _notificationProvider; + + public FrameworkElement Element { get; set; } + + public BarItem(INotificationProvider notificationProvider) + { + _notificationProvider = notificationProvider; + } + + /// + /// Removed this item from the queue. + /// + public void Pop() + { + _notificationProvider.PopBarItem(this); + } + + /// + /// Pushes this item to the queue. + /// + public void Push() + { + _notificationProvider.PushBarItem(this); + } + + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + public void Dispose() + { + Pop(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioModuleBase.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioModuleBase.cs new file mode 100644 index 000000000..5c594ab70 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/StudioModuleBase.cs @@ -0,0 +1,113 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Media.Imaging; +using Tango.Integration.Observables; + +namespace Tango.MachineStudio.Common +{ + /// + /// Represents a base class for studio modules. + /// + /// + public abstract class StudioModuleBase : IStudioModule + { + private bool _isInitialized; + private bool _isLoaded; + + /// + /// Occurs when the user has navigated into or out of this module. + /// + public event EventHandler IsLoadedChanged; + + /// + /// Gets the module name. + /// + public abstract string Name { get; } + + /// + /// Gets the module description. + /// + public abstract string Description { get; } + + /// + /// Gets the module cover image. + /// + public abstract BitmapSource Image { get; } + + /// + /// Gets the module entry point view. + /// + public abstract FrameworkElement MainView { get; } + + /// + /// Gets the permission required to see and load this module. + /// + public abstract Permissions Permission { get; } + + /// + /// Gets a value indicating whether this module has been initialized. + /// + public bool IsInitialized + { + get + { + return _isInitialized; + } + private set + { + _isInitialized = value; + } + } + + /// + /// Sets a value indicating whether this module is loaded. + /// + public bool IsLoaded + { + get + { + return _isLoaded; + } + set + { + _isLoaded = value; + IsLoadedChanged?.Invoke(this, value); + } + } + + /// + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + /// + public abstract void Dispose(); + + /// + /// Perform any operations required to initialize this module. + /// + public void Initialize() + { + OnInitialized(); + IsInitialized = true; + } + + /// + /// Called when machine studio initializes this module. + /// + protected virtual void OnInitialized() + { + + } + + /// + /// Raises the event. + /// + /// if set to true the module is loaded. + protected virtual void OnLoadedChanged(bool loaded) + { + + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Video/DefaultVideoCaptureProvider.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Video/DefaultVideoCaptureProvider.cs new file mode 100644 index 000000000..3aa9d4c88 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Video/DefaultVideoCaptureProvider.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Video.DirectCapture; + +namespace Tango.MachineStudio.Common.Video +{ + /// + /// Represents the default implementation of . + /// + /// + public class DefaultVideoCaptureProvider : IVideoCaptureProvider + { + /// + /// Gets the available capture devices. + /// + public ObservableCollection AvailableCaptureDevices { get; private set; } + + /// + /// Initializes a new instance of the class. + /// + public DefaultVideoCaptureProvider() + { + AvailableCaptureDevices = new ObservableCollection(); + + var availableDevices = CaptureDevice.GetAvailableCaptureDevices(); + + for (int i = 0; i < 3; i++) + { + if (i > availableDevices.Count - 1) + { + AvailableCaptureDevices.Add(new CaptureDevice() { Device = null }); + } + else + { + AvailableCaptureDevices.Add(new CaptureDevice() { Device = availableDevices[i] }); + } + } + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Video/IVideoCaptureProvider.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Video/IVideoCaptureProvider.cs new file mode 100644 index 000000000..cd797dce2 --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Video/IVideoCaptureProvider.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Video.DirectCapture; + +namespace Tango.MachineStudio.Common.Video +{ + /// + /// Represents a video capturing device provider. + /// + public interface IVideoCaptureProvider + { + /// + /// Gets the available capture devices. + /// + ObservableCollection AvailableCaptureDevices { get; } + } +} diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputCoordinates.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputCoordinates.pb-c.c new file mode 100644 index 000000000..a12759a89 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputCoordinates.pb-c.c @@ -0,0 +1,248 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: InputCoordinates.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "InputCoordinates.pb-c.h" +void input_coordinates__init + (InputCoordinates *message) +{ + static const InputCoordinates init_value = INPUT_COORDINATES__INIT; + *message = init_value; +} +size_t input_coordinates__get_packed_size + (const InputCoordinates *message) +{ + assert(message->base.descriptor == &input_coordinates__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t input_coordinates__pack + (const InputCoordinates *message, + uint8_t *out) +{ + assert(message->base.descriptor == &input_coordinates__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t input_coordinates__pack_to_buffer + (const InputCoordinates *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &input_coordinates__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +InputCoordinates * + input_coordinates__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (InputCoordinates *) + protobuf_c_message_unpack (&input_coordinates__descriptor, + allocator, len, data); +} +void input_coordinates__free_unpacked + (InputCoordinates *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &input_coordinates__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor input_coordinates__field_descriptors[13] = +{ + { + "Length", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputCoordinates, has_length), + offsetof(InputCoordinates, length), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Red", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(InputCoordinates, has_red), + offsetof(InputCoordinates, red), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Green", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(InputCoordinates, has_green), + offsetof(InputCoordinates, green), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Blue", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(InputCoordinates, has_blue), + offsetof(InputCoordinates, blue), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Cyan", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputCoordinates, has_cyan), + offsetof(InputCoordinates, cyan), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Magenta", + 6, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputCoordinates, has_magenta), + offsetof(InputCoordinates, magenta), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Yellow", + 7, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputCoordinates, has_yellow), + offsetof(InputCoordinates, yellow), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Key", + 8, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputCoordinates, has_key), + offsetof(InputCoordinates, key), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "L", + 9, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputCoordinates, has_l), + offsetof(InputCoordinates, l), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "A", + 10, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputCoordinates, has_a), + offsetof(InputCoordinates, a), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "B", + 11, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputCoordinates, has_b), + offsetof(InputCoordinates, b), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "PantonCode", + 12, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(InputCoordinates, has_pantoncode), + offsetof(InputCoordinates, pantoncode), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "InputLiquids", + 13, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(InputCoordinates, n_inputliquids), + offsetof(InputCoordinates, inputliquids), + &input_liquid__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned input_coordinates__field_indices_by_name[] = { + 9, /* field[9] = A */ + 10, /* field[10] = B */ + 3, /* field[3] = Blue */ + 4, /* field[4] = Cyan */ + 2, /* field[2] = Green */ + 12, /* field[12] = InputLiquids */ + 7, /* field[7] = Key */ + 8, /* field[8] = L */ + 0, /* field[0] = Length */ + 5, /* field[5] = Magenta */ + 11, /* field[11] = PantonCode */ + 1, /* field[1] = Red */ + 6, /* field[6] = Yellow */ +}; +static const ProtobufCIntRange input_coordinates__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 13 } +}; +const ProtobufCMessageDescriptor input_coordinates__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "InputCoordinates", + "InputCoordinates", + "InputCoordinates", + "", + sizeof(InputCoordinates), + 13, + input_coordinates__field_descriptors, + input_coordinates__field_indices_by_name, + 1, input_coordinates__number_ranges, + (ProtobufCMessageInit) input_coordinates__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputCoordinates.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputCoordinates.pb-c.h new file mode 100644 index 000000000..0b159cd59 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputCoordinates.pb-c.h @@ -0,0 +1,97 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: InputCoordinates.proto */ + +#ifndef PROTOBUF_C_InputCoordinates_2eproto__INCLUDED +#define PROTOBUF_C_InputCoordinates_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "InputLiquid.pb-c.h" + +typedef struct _InputCoordinates InputCoordinates; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _InputCoordinates +{ + ProtobufCMessage base; + protobuf_c_boolean has_length; + double length; + protobuf_c_boolean has_red; + int32_t red; + protobuf_c_boolean has_green; + int32_t green; + protobuf_c_boolean has_blue; + int32_t blue; + protobuf_c_boolean has_cyan; + double cyan; + protobuf_c_boolean has_magenta; + double magenta; + protobuf_c_boolean has_yellow; + double yellow; + protobuf_c_boolean has_key; + double key; + protobuf_c_boolean has_l; + double l; + protobuf_c_boolean has_a; + double a; + protobuf_c_boolean has_b; + double b; + protobuf_c_boolean has_pantoncode; + int32_t pantoncode; + size_t n_inputliquids; + InputLiquid **inputliquids; +}; +#define INPUT_COORDINATES__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&input_coordinates__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,NULL } + + +/* InputCoordinates methods */ +void input_coordinates__init + (InputCoordinates *message); +size_t input_coordinates__get_packed_size + (const InputCoordinates *message); +size_t input_coordinates__pack + (const InputCoordinates *message, + uint8_t *out); +size_t input_coordinates__pack_to_buffer + (const InputCoordinates *message, + ProtobufCBuffer *buffer); +InputCoordinates * + input_coordinates__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void input_coordinates__free_unpacked + (InputCoordinates *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*InputCoordinates_Closure) + (const InputCoordinates *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor input_coordinates__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_InputCoordinates_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputLiquid.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputLiquid.pb-c.c new file mode 100644 index 000000000..2d033e2a1 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputLiquid.pb-c.c @@ -0,0 +1,131 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: InputLiquid.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "InputLiquid.pb-c.h" +void input_liquid__init + (InputLiquid *message) +{ + static const InputLiquid init_value = INPUT_LIQUID__INIT; + *message = init_value; +} +size_t input_liquid__get_packed_size + (const InputLiquid *message) +{ + assert(message->base.descriptor == &input_liquid__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t input_liquid__pack + (const InputLiquid *message, + uint8_t *out) +{ + assert(message->base.descriptor == &input_liquid__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t input_liquid__pack_to_buffer + (const InputLiquid *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &input_liquid__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +InputLiquid * + input_liquid__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (InputLiquid *) + protobuf_c_message_unpack (&input_liquid__descriptor, + allocator, len, data); +} +void input_liquid__free_unpacked + (InputLiquid *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &input_liquid__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor input_liquid__field_descriptors[4] = +{ + { + "LiquidType", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(InputLiquid, has_liquidtype), + offsetof(InputLiquid, liquidtype), + &liquid_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "CalibrationData", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(InputLiquid, calibrationdata), + &calibration_data__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MaxNanoliterPerCentimeter", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputLiquid, has_maxnanoliterpercentimeter), + offsetof(InputLiquid, maxnanoliterpercentimeter), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Volume", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(InputLiquid, has_volume), + offsetof(InputLiquid, volume), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned input_liquid__field_indices_by_name[] = { + 1, /* field[1] = CalibrationData */ + 0, /* field[0] = LiquidType */ + 2, /* field[2] = MaxNanoliterPerCentimeter */ + 3, /* field[3] = Volume */ +}; +static const ProtobufCIntRange input_liquid__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 4 } +}; +const ProtobufCMessageDescriptor input_liquid__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "InputLiquid", + "InputLiquid", + "InputLiquid", + "", + sizeof(InputLiquid), + 4, + input_liquid__field_descriptors, + input_liquid__field_indices_by_name, + 1, input_liquid__number_ranges, + (ProtobufCMessageInit) input_liquid__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputLiquid.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputLiquid.pb-c.h new file mode 100644 index 000000000..c2a47b166 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/InputLiquid.pb-c.h @@ -0,0 +1,79 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: InputLiquid.proto */ + +#ifndef PROTOBUF_C_InputLiquid_2eproto__INCLUDED +#define PROTOBUF_C_InputLiquid_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "LiquidType.pb-c.h" +#include "CalibrationData.pb-c.h" + +typedef struct _InputLiquid InputLiquid; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _InputLiquid +{ + ProtobufCMessage base; + protobuf_c_boolean has_liquidtype; + LiquidType liquidtype; + CalibrationData *calibrationdata; + protobuf_c_boolean has_maxnanoliterpercentimeter; + double maxnanoliterpercentimeter; + protobuf_c_boolean has_volume; + double volume; +}; +#define INPUT_LIQUID__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&input_liquid__descriptor) \ + , 0, LIQUID_TYPE__Cyan, NULL, 0, 0, 0, 0 } + + +/* InputLiquid methods */ +void input_liquid__init + (InputLiquid *message); +size_t input_liquid__get_packed_size + (const InputLiquid *message); +size_t input_liquid__pack + (const InputLiquid *message, + uint8_t *out); +size_t input_liquid__pack_to_buffer + (const InputLiquid *message, + ProtobufCBuffer *buffer); +InputLiquid * + input_liquid__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void input_liquid__free_unpacked + (InputLiquid *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*InputLiquid_Closure) + (const InputLiquid *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor input_liquid__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_InputLiquid_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/LiquidType.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/LiquidType.pb-c.c new file mode 100644 index 000000000..10b061dd6 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/LiquidType.pb-c.c @@ -0,0 +1,43 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LiquidType.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "LiquidType.pb-c.h" +static const ProtobufCEnumValue liquid_type__enum_values_by_number[5] = +{ + { "Cyan", "LIQUID_TYPE__Cyan", 0 }, + { "Magenta", "LIQUID_TYPE__Magenta", 1 }, + { "Yellow", "LIQUID_TYPE__Yellow", 2 }, + { "Black", "LIQUID_TYPE__Black", 3 }, + { "TransparentInk", "LIQUID_TYPE__TransparentInk", 4 }, +}; +static const ProtobufCIntRange liquid_type__value_ranges[] = { +{0, 0},{0, 5} +}; +static const ProtobufCEnumValueIndex liquid_type__enum_values_by_name[5] = +{ + { "Black", 3 }, + { "Cyan", 0 }, + { "Magenta", 1 }, + { "TransparentInk", 4 }, + { "Yellow", 2 }, +}; +const ProtobufCEnumDescriptor liquid_type__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "LiquidType", + "LiquidType", + "LiquidType", + "", + 5, + liquid_type__enum_values_by_number, + 5, + liquid_type__enum_values_by_name, + 1, + liquid_type__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/LiquidType.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/LiquidType.pb-c.h new file mode 100644 index 000000000..3559cc09c --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/LiquidType.pb-c.h @@ -0,0 +1,46 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: LiquidType.proto */ + +#ifndef PROTOBUF_C_LiquidType_2eproto__INCLUDED +#define PROTOBUF_C_LiquidType_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _LiquidType { + LIQUID_TYPE__Cyan = 0, + LIQUID_TYPE__Magenta = 1, + LIQUID_TYPE__Yellow = 2, + LIQUID_TYPE__Black = 3, + LIQUID_TYPE__TransparentInk = 4 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(LIQUID_TYPE) +} LiquidType; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor liquid_type__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_LiquidType_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputCoordinates.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputCoordinates.pb-c.c new file mode 100644 index 000000000..c41585415 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputCoordinates.pb-c.c @@ -0,0 +1,144 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: OutputCoordinates.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "OutputCoordinates.pb-c.h" +void output_coordinates__init + (OutputCoordinates *message) +{ + static const OutputCoordinates init_value = OUTPUT_COORDINATES__INIT; + *message = init_value; +} +size_t output_coordinates__get_packed_size + (const OutputCoordinates *message) +{ + assert(message->base.descriptor == &output_coordinates__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t output_coordinates__pack + (const OutputCoordinates *message, + uint8_t *out) +{ + assert(message->base.descriptor == &output_coordinates__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t output_coordinates__pack_to_buffer + (const OutputCoordinates *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &output_coordinates__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +OutputCoordinates * + output_coordinates__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (OutputCoordinates *) + protobuf_c_message_unpack (&output_coordinates__descriptor, + allocator, len, data); +} +void output_coordinates__free_unpacked + (OutputCoordinates *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &output_coordinates__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor output_coordinates__field_descriptors[5] = +{ + { + "Red", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(OutputCoordinates, has_red), + offsetof(OutputCoordinates, red), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Green", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(OutputCoordinates, has_green), + offsetof(OutputCoordinates, green), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Blue", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(OutputCoordinates, has_blue), + offsetof(OutputCoordinates, blue), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "OutputLiquids", + 4, + PROTOBUF_C_LABEL_REPEATED, + PROTOBUF_C_TYPE_MESSAGE, + offsetof(OutputCoordinates, n_outputliquids), + offsetof(OutputCoordinates, outputliquids), + &output_liquid__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "ProcessParametersTableIndex", + 5, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(OutputCoordinates, has_processparameterstableindex), + offsetof(OutputCoordinates, processparameterstableindex), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned output_coordinates__field_indices_by_name[] = { + 2, /* field[2] = Blue */ + 1, /* field[1] = Green */ + 3, /* field[3] = OutputLiquids */ + 4, /* field[4] = ProcessParametersTableIndex */ + 0, /* field[0] = Red */ +}; +static const ProtobufCIntRange output_coordinates__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 5 } +}; +const ProtobufCMessageDescriptor output_coordinates__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "OutputCoordinates", + "OutputCoordinates", + "OutputCoordinates", + "", + sizeof(OutputCoordinates), + 5, + output_coordinates__field_descriptors, + output_coordinates__field_indices_by_name, + 1, output_coordinates__number_ranges, + (ProtobufCMessageInit) output_coordinates__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputCoordinates.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputCoordinates.pb-c.h new file mode 100644 index 000000000..410f0660a --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputCoordinates.pb-c.h @@ -0,0 +1,81 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: OutputCoordinates.proto */ + +#ifndef PROTOBUF_C_OutputCoordinates_2eproto__INCLUDED +#define PROTOBUF_C_OutputCoordinates_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "OutputLiquid.pb-c.h" + +typedef struct _OutputCoordinates OutputCoordinates; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _OutputCoordinates +{ + ProtobufCMessage base; + protobuf_c_boolean has_red; + int32_t red; + protobuf_c_boolean has_green; + int32_t green; + protobuf_c_boolean has_blue; + int32_t blue; + size_t n_outputliquids; + OutputLiquid **outputliquids; + protobuf_c_boolean has_processparameterstableindex; + int32_t processparameterstableindex; +}; +#define OUTPUT_COORDINATES__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&output_coordinates__descriptor) \ + , 0, 0, 0, 0, 0, 0, 0,NULL, 0, 0 } + + +/* OutputCoordinates methods */ +void output_coordinates__init + (OutputCoordinates *message); +size_t output_coordinates__get_packed_size + (const OutputCoordinates *message); +size_t output_coordinates__pack + (const OutputCoordinates *message, + uint8_t *out); +size_t output_coordinates__pack_to_buffer + (const OutputCoordinates *message, + ProtobufCBuffer *buffer); +OutputCoordinates * + output_coordinates__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void output_coordinates__free_unpacked + (OutputCoordinates *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*OutputCoordinates_Closure) + (const OutputCoordinates *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor output_coordinates__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_OutputCoordinates_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputLiquid.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputLiquid.pb-c.c new file mode 100644 index 000000000..73f47bb20 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputLiquid.pb-c.c @@ -0,0 +1,106 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: OutputLiquid.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "OutputLiquid.pb-c.h" +void output_liquid__init + (OutputLiquid *message) +{ + static const OutputLiquid init_value = OUTPUT_LIQUID__INIT; + *message = init_value; +} +size_t output_liquid__get_packed_size + (const OutputLiquid *message) +{ + assert(message->base.descriptor == &output_liquid__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t output_liquid__pack + (const OutputLiquid *message, + uint8_t *out) +{ + assert(message->base.descriptor == &output_liquid__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t output_liquid__pack_to_buffer + (const OutputLiquid *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &output_liquid__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +OutputLiquid * + output_liquid__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (OutputLiquid *) + protobuf_c_message_unpack (&output_liquid__descriptor, + allocator, len, data); +} +void output_liquid__free_unpacked + (OutputLiquid *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &output_liquid__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor output_liquid__field_descriptors[2] = +{ + { + "LiquidType", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(OutputLiquid, has_liquidtype), + offsetof(OutputLiquid, liquidtype), + &liquid_type__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Volume", + 4, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(OutputLiquid, has_volume), + offsetof(OutputLiquid, volume), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned output_liquid__field_indices_by_name[] = { + 0, /* field[0] = LiquidType */ + 1, /* field[1] = Volume */ +}; +static const ProtobufCIntRange output_liquid__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 4, 1 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor output_liquid__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "OutputLiquid", + "OutputLiquid", + "OutputLiquid", + "", + sizeof(OutputLiquid), + 2, + output_liquid__field_descriptors, + output_liquid__field_indices_by_name, + 2, output_liquid__number_ranges, + (ProtobufCMessageInit) output_liquid__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputLiquid.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputLiquid.pb-c.h new file mode 100644 index 000000000..5401b8114 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/ColorLab/OutputLiquid.pb-c.h @@ -0,0 +1,75 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: OutputLiquid.proto */ + +#ifndef PROTOBUF_C_OutputLiquid_2eproto__INCLUDED +#define PROTOBUF_C_OutputLiquid_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "LiquidType.pb-c.h" + +typedef struct _OutputLiquid OutputLiquid; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _OutputLiquid +{ + ProtobufCMessage base; + protobuf_c_boolean has_liquidtype; + LiquidType liquidtype; + protobuf_c_boolean has_volume; + double volume; +}; +#define OUTPUT_LIQUID__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&output_liquid__descriptor) \ + , 0, LIQUID_TYPE__Cyan, 0, 0 } + + +/* OutputLiquid methods */ +void output_liquid__init + (OutputLiquid *message); +size_t output_liquid__get_packed_size + (const OutputLiquid *message); +size_t output_liquid__pack + (const OutputLiquid *message, + uint8_t *out); +size_t output_liquid__pack_to_buffer + (const OutputLiquid *message, + ProtobufCBuffer *buffer); +OutputLiquid * + output_liquid__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void output_liquid__free_unpacked + (OutputLiquid *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*OutputLiquid_Closure) + (const OutputLiquid *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor output_liquid__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_OutputLiquid_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DataFileFrame.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DataFileFrame.pb-c.c new file mode 100644 index 000000000..e50aa5c2c --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DataFileFrame.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DataFileFrame.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DataFileFrame.pb-c.h" +void data_file_frame__init + (DataFileFrame *message) +{ + static const DataFileFrame init_value = DATA_FILE_FRAME__INIT; + *message = init_value; +} +size_t data_file_frame__get_packed_size + (const DataFileFrame *message) +{ + assert(message->base.descriptor == &data_file_frame__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t data_file_frame__pack + (const DataFileFrame *message, + uint8_t *out) +{ + assert(message->base.descriptor == &data_file_frame__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t data_file_frame__pack_to_buffer + (const DataFileFrame *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &data_file_frame__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DataFileFrame * + data_file_frame__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DataFileFrame *) + protobuf_c_message_unpack (&data_file_frame__descriptor, + allocator, len, data); +} +void data_file_frame__free_unpacked + (DataFileFrame *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &data_file_frame__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor data_file_frame__field_descriptors[2] = +{ + { + "Milliseconds", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(DataFileFrame, has_milliseconds), + offsetof(DataFileFrame, milliseconds), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "PushDiagnosticsResponse", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_MESSAGE, + 0, /* quantifier_offset */ + offsetof(DataFileFrame, pushdiagnosticsresponse), + &push_diagnostics_response__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned data_file_frame__field_indices_by_name[] = { + 0, /* field[0] = Milliseconds */ + 1, /* field[1] = PushDiagnosticsResponse */ +}; +static const ProtobufCIntRange data_file_frame__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor data_file_frame__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DataFileFrame", + "DataFileFrame", + "DataFileFrame", + "", + sizeof(DataFileFrame), + 2, + data_file_frame__field_descriptors, + data_file_frame__field_indices_by_name, + 1, data_file_frame__number_ranges, + (ProtobufCMessageInit) data_file_frame__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DataFileFrame.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DataFileFrame.pb-c.h new file mode 100644 index 000000000..9ad0da792 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DataFileFrame.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DataFileFrame.proto */ + +#ifndef PROTOBUF_C_DataFileFrame_2eproto__INCLUDED +#define PROTOBUF_C_DataFileFrame_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "PushDiagnosticsResponse.pb-c.h" + +typedef struct _DataFileFrame DataFileFrame; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DataFileFrame +{ + ProtobufCMessage base; + protobuf_c_boolean has_milliseconds; + int32_t milliseconds; + PushDiagnosticsResponse *pushdiagnosticsresponse; +}; +#define DATA_FILE_FRAME__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&data_file_frame__descriptor) \ + , 0, 0, NULL } + + +/* DataFileFrame methods */ +void data_file_frame__init + (DataFileFrame *message); +size_t data_file_frame__get_packed_size + (const DataFileFrame *message); +size_t data_file_frame__pack + (const DataFileFrame *message, + uint8_t *out); +size_t data_file_frame__pack_to_buffer + (const DataFileFrame *message, + ProtobufCBuffer *buffer); +DataFileFrame * + data_file_frame__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void data_file_frame__free_unpacked + (DataFileFrame *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DataFileFrame_Closure) + (const DataFileFrame *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor data_file_frame__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DataFileFrame_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DigitalPin.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DigitalPin.pb-c.c new file mode 100644 index 000000000..48e358d3d --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DigitalPin.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DigitalPin.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DigitalPin.pb-c.h" +void digital_pin__init + (DigitalPin *message) +{ + static const DigitalPin init_value = DIGITAL_PIN__INIT; + *message = init_value; +} +size_t digital_pin__get_packed_size + (const DigitalPin *message) +{ + assert(message->base.descriptor == &digital_pin__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t digital_pin__pack + (const DigitalPin *message, + uint8_t *out) +{ + assert(message->base.descriptor == &digital_pin__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t digital_pin__pack_to_buffer + (const DigitalPin *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &digital_pin__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DigitalPin * + digital_pin__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DigitalPin *) + protobuf_c_message_unpack (&digital_pin__descriptor, + allocator, len, data); +} +void digital_pin__free_unpacked + (DigitalPin *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &digital_pin__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor digital_pin__field_descriptors[2] = +{ + { + "Port", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(DigitalPin, has_port), + offsetof(DigitalPin, port), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Value", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(DigitalPin, has_value), + offsetof(DigitalPin, value), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned digital_pin__field_indices_by_name[] = { + 0, /* field[0] = Port */ + 1, /* field[1] = Value */ +}; +static const ProtobufCIntRange digital_pin__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor digital_pin__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DigitalPin", + "DigitalPin", + "DigitalPin", + "", + sizeof(DigitalPin), + 2, + digital_pin__field_descriptors, + digital_pin__field_indices_by_name, + 1, digital_pin__number_ranges, + (ProtobufCMessageInit) digital_pin__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DigitalPin.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DigitalPin.pb-c.h new file mode 100644 index 000000000..2fd18cdff --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DigitalPin.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DigitalPin.proto */ + +#ifndef PROTOBUF_C_DigitalPin_2eproto__INCLUDED +#define PROTOBUF_C_DigitalPin_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _DigitalPin DigitalPin; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DigitalPin +{ + ProtobufCMessage base; + protobuf_c_boolean has_port; + int32_t port; + protobuf_c_boolean has_value; + protobuf_c_boolean value; +}; +#define DIGITAL_PIN__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&digital_pin__descriptor) \ + , 0, 0, 0, 0 } + + +/* DigitalPin methods */ +void digital_pin__init + (DigitalPin *message); +size_t digital_pin__get_packed_size + (const DigitalPin *message); +size_t digital_pin__pack + (const DigitalPin *message, + uint8_t *out); +size_t digital_pin__pack_to_buffer + (const DigitalPin *message, + ProtobufCBuffer *buffer); +DigitalPin * + digital_pin__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void digital_pin__free_unpacked + (DigitalPin *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DigitalPin_Closure) + (const DigitalPin *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor digital_pin__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DigitalPin_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingRequest.pb-c.c new file mode 100644 index 000000000..57826af15 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserAbortHomingRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DispenserAbortHomingRequest.pb-c.h" +void dispenser_abort_homing_request__init + (DispenserAbortHomingRequest *message) +{ + static const DispenserAbortHomingRequest init_value = DISPENSER_ABORT_HOMING_REQUEST__INIT; + *message = init_value; +} +size_t dispenser_abort_homing_request__get_packed_size + (const DispenserAbortHomingRequest *message) +{ + assert(message->base.descriptor == &dispenser_abort_homing_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t dispenser_abort_homing_request__pack + (const DispenserAbortHomingRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &dispenser_abort_homing_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t dispenser_abort_homing_request__pack_to_buffer + (const DispenserAbortHomingRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &dispenser_abort_homing_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DispenserAbortHomingRequest * + dispenser_abort_homing_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DispenserAbortHomingRequest *) + protobuf_c_message_unpack (&dispenser_abort_homing_request__descriptor, + allocator, len, data); +} +void dispenser_abort_homing_request__free_unpacked + (DispenserAbortHomingRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &dispenser_abort_homing_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor dispenser_abort_homing_request__field_descriptors[1] = +{ + { + "Code", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(DispenserAbortHomingRequest, has_code), + offsetof(DispenserAbortHomingRequest, code), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned dispenser_abort_homing_request__field_indices_by_name[] = { + 0, /* field[0] = Code */ +}; +static const ProtobufCIntRange dispenser_abort_homing_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor dispenser_abort_homing_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DispenserAbortHomingRequest", + "DispenserAbortHomingRequest", + "DispenserAbortHomingRequest", + "", + sizeof(DispenserAbortHomingRequest), + 1, + dispenser_abort_homing_request__field_descriptors, + dispenser_abort_homing_request__field_indices_by_name, + 1, dispenser_abort_homing_request__number_ranges, + (ProtobufCMessageInit) dispenser_abort_homing_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingRequest.pb-c.h new file mode 100644 index 000000000..2e2395277 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingRequest.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserAbortHomingRequest.proto */ + +#ifndef PROTOBUF_C_DispenserAbortHomingRequest_2eproto__INCLUDED +#define PROTOBUF_C_DispenserAbortHomingRequest_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _DispenserAbortHomingRequest DispenserAbortHomingRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DispenserAbortHomingRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_code; + int32_t code; +}; +#define DISPENSER_ABORT_HOMING_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&dispenser_abort_homing_request__descriptor) \ + , 0, 0 } + + +/* DispenserAbortHomingRequest methods */ +void dispenser_abort_homing_request__init + (DispenserAbortHomingRequest *message); +size_t dispenser_abort_homing_request__get_packed_size + (const DispenserAbortHomingRequest *message); +size_t dispenser_abort_homing_request__pack + (const DispenserAbortHomingRequest *message, + uint8_t *out); +size_t dispenser_abort_homing_request__pack_to_buffer + (const DispenserAbortHomingRequest *message, + ProtobufCBuffer *buffer); +DispenserAbortHomingRequest * + dispenser_abort_homing_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void dispenser_abort_homing_request__free_unpacked + (DispenserAbortHomingRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DispenserAbortHomingRequest_Closure) + (const DispenserAbortHomingRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor dispenser_abort_homing_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DispenserAbortHomingRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingResponse.pb-c.c new file mode 100644 index 000000000..a5de8be16 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingResponse.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserAbortHomingResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DispenserAbortHomingResponse.pb-c.h" +void dispenser_abort_homing_response__init + (DispenserAbortHomingResponse *message) +{ + static const DispenserAbortHomingResponse init_value = DISPENSER_ABORT_HOMING_RESPONSE__INIT; + *message = init_value; +} +size_t dispenser_abort_homing_response__get_packed_size + (const DispenserAbortHomingResponse *message) +{ + assert(message->base.descriptor == &dispenser_abort_homing_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t dispenser_abort_homing_response__pack + (const DispenserAbortHomingResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &dispenser_abort_homing_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t dispenser_abort_homing_response__pack_to_buffer + (const DispenserAbortHomingResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &dispenser_abort_homing_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DispenserAbortHomingResponse * + dispenser_abort_homing_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DispenserAbortHomingResponse *) + protobuf_c_message_unpack (&dispenser_abort_homing_response__descriptor, + allocator, len, data); +} +void dispenser_abort_homing_response__free_unpacked + (DispenserAbortHomingResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &dispenser_abort_homing_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define dispenser_abort_homing_response__field_descriptors NULL +#define dispenser_abort_homing_response__field_indices_by_name NULL +#define dispenser_abort_homing_response__number_ranges NULL +const ProtobufCMessageDescriptor dispenser_abort_homing_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DispenserAbortHomingResponse", + "DispenserAbortHomingResponse", + "DispenserAbortHomingResponse", + "", + sizeof(DispenserAbortHomingResponse), + 0, + dispenser_abort_homing_response__field_descriptors, + dispenser_abort_homing_response__field_indices_by_name, + 0, dispenser_abort_homing_response__number_ranges, + (ProtobufCMessageInit) dispenser_abort_homing_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingResponse.pb-c.h new file mode 100644 index 000000000..73e37250d --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortHomingResponse.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserAbortHomingResponse.proto */ + +#ifndef PROTOBUF_C_DispenserAbortHomingResponse_2eproto__INCLUDED +#define PROTOBUF_C_DispenserAbortHomingResponse_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _DispenserAbortHomingResponse DispenserAbortHomingResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DispenserAbortHomingResponse +{ + ProtobufCMessage base; +}; +#define DISPENSER_ABORT_HOMING_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&dispenser_abort_homing_response__descriptor) \ + } + + +/* DispenserAbortHomingResponse methods */ +void dispenser_abort_homing_response__init + (DispenserAbortHomingResponse *message); +size_t dispenser_abort_homing_response__get_packed_size + (const DispenserAbortHomingResponse *message); +size_t dispenser_abort_homing_response__pack + (const DispenserAbortHomingResponse *message, + uint8_t *out); +size_t dispenser_abort_homing_response__pack_to_buffer + (const DispenserAbortHomingResponse *message, + ProtobufCBuffer *buffer); +DispenserAbortHomingResponse * + dispenser_abort_homing_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void dispenser_abort_homing_response__free_unpacked + (DispenserAbortHomingResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DispenserAbortHomingResponse_Closure) + (const DispenserAbortHomingResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor dispenser_abort_homing_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DispenserAbortHomingResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingRequest.pb-c.c new file mode 100644 index 000000000..1a7a595d6 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserAbortJoggingRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DispenserAbortJoggingRequest.pb-c.h" +void dispenser_abort_jogging_request__init + (DispenserAbortJoggingRequest *message) +{ + static const DispenserAbortJoggingRequest init_value = DISPENSER_ABORT_JOGGING_REQUEST__INIT; + *message = init_value; +} +size_t dispenser_abort_jogging_request__get_packed_size + (const DispenserAbortJoggingRequest *message) +{ + assert(message->base.descriptor == &dispenser_abort_jogging_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t dispenser_abort_jogging_request__pack + (const DispenserAbortJoggingRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &dispenser_abort_jogging_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t dispenser_abort_jogging_request__pack_to_buffer + (const DispenserAbortJoggingRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &dispenser_abort_jogging_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DispenserAbortJoggingRequest * + dispenser_abort_jogging_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DispenserAbortJoggingRequest *) + protobuf_c_message_unpack (&dispenser_abort_jogging_request__descriptor, + allocator, len, data); +} +void dispenser_abort_jogging_request__free_unpacked + (DispenserAbortJoggingRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &dispenser_abort_jogging_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor dispenser_abort_jogging_request__field_descriptors[1] = +{ + { + "Code", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(DispenserAbortJoggingRequest, has_code), + offsetof(DispenserAbortJoggingRequest, code), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned dispenser_abort_jogging_request__field_indices_by_name[] = { + 0, /* field[0] = Code */ +}; +static const ProtobufCIntRange dispenser_abort_jogging_request__number_ranges[1 + 1] = +{ + { 2, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor dispenser_abort_jogging_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DispenserAbortJoggingRequest", + "DispenserAbortJoggingRequest", + "DispenserAbortJoggingRequest", + "", + sizeof(DispenserAbortJoggingRequest), + 1, + dispenser_abort_jogging_request__field_descriptors, + dispenser_abort_jogging_request__field_indices_by_name, + 1, dispenser_abort_jogging_request__number_ranges, + (ProtobufCMessageInit) dispenser_abort_jogging_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingRequest.pb-c.h new file mode 100644 index 000000000..342d3fd25 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingRequest.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserAbortJoggingRequest.proto */ + +#ifndef PROTOBUF_C_DispenserAbortJoggingRequest_2eproto__INCLUDED +#define PROTOBUF_C_DispenserAbortJoggingRequest_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _DispenserAbortJoggingRequest DispenserAbortJoggingRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DispenserAbortJoggingRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_code; + int32_t code; +}; +#define DISPENSER_ABORT_JOGGING_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&dispenser_abort_jogging_request__descriptor) \ + , 0, 0 } + + +/* DispenserAbortJoggingRequest methods */ +void dispenser_abort_jogging_request__init + (DispenserAbortJoggingRequest *message); +size_t dispenser_abort_jogging_request__get_packed_size + (const DispenserAbortJoggingRequest *message); +size_t dispenser_abort_jogging_request__pack + (const DispenserAbortJoggingRequest *message, + uint8_t *out); +size_t dispenser_abort_jogging_request__pack_to_buffer + (const DispenserAbortJoggingRequest *message, + ProtobufCBuffer *buffer); +DispenserAbortJoggingRequest * + dispenser_abort_jogging_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void dispenser_abort_jogging_request__free_unpacked + (DispenserAbortJoggingRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DispenserAbortJoggingRequest_Closure) + (const DispenserAbortJoggingRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor dispenser_abort_jogging_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DispenserAbortJoggingRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingResponse.pb-c.c new file mode 100644 index 000000000..70c7f1ee0 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingResponse.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserAbortJoggingResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DispenserAbortJoggingResponse.pb-c.h" +void dispenser_abort_jogging_response__init + (DispenserAbortJoggingResponse *message) +{ + static const DispenserAbortJoggingResponse init_value = DISPENSER_ABORT_JOGGING_RESPONSE__INIT; + *message = init_value; +} +size_t dispenser_abort_jogging_response__get_packed_size + (const DispenserAbortJoggingResponse *message) +{ + assert(message->base.descriptor == &dispenser_abort_jogging_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t dispenser_abort_jogging_response__pack + (const DispenserAbortJoggingResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &dispenser_abort_jogging_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t dispenser_abort_jogging_response__pack_to_buffer + (const DispenserAbortJoggingResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &dispenser_abort_jogging_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DispenserAbortJoggingResponse * + dispenser_abort_jogging_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DispenserAbortJoggingResponse *) + protobuf_c_message_unpack (&dispenser_abort_jogging_response__descriptor, + allocator, len, data); +} +void dispenser_abort_jogging_response__free_unpacked + (DispenserAbortJoggingResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &dispenser_abort_jogging_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor dispenser_abort_jogging_response__field_descriptors[1] = +{ + { + "Code", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(DispenserAbortJoggingResponse, has_code), + offsetof(DispenserAbortJoggingResponse, code), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned dispenser_abort_jogging_response__field_indices_by_name[] = { + 0, /* field[0] = Code */ +}; +static const ProtobufCIntRange dispenser_abort_jogging_response__number_ranges[1 + 1] = +{ + { 2, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor dispenser_abort_jogging_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DispenserAbortJoggingResponse", + "DispenserAbortJoggingResponse", + "DispenserAbortJoggingResponse", + "", + sizeof(DispenserAbortJoggingResponse), + 1, + dispenser_abort_jogging_response__field_descriptors, + dispenser_abort_jogging_response__field_indices_by_name, + 1, dispenser_abort_jogging_response__number_ranges, + (ProtobufCMessageInit) dispenser_abort_jogging_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingResponse.pb-c.h new file mode 100644 index 000000000..e9ddef6cb --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserAbortJoggingResponse.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserAbortJoggingResponse.proto */ + +#ifndef PROTOBUF_C_DispenserAbortJoggingResponse_2eproto__INCLUDED +#define PROTOBUF_C_DispenserAbortJoggingResponse_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _DispenserAbortJoggingResponse DispenserAbortJoggingResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DispenserAbortJoggingResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_code; + int32_t code; +}; +#define DISPENSER_ABORT_JOGGING_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&dispenser_abort_jogging_response__descriptor) \ + , 0, 0 } + + +/* DispenserAbortJoggingResponse methods */ +void dispenser_abort_jogging_response__init + (DispenserAbortJoggingResponse *message); +size_t dispenser_abort_jogging_response__get_packed_size + (const DispenserAbortJoggingResponse *message); +size_t dispenser_abort_jogging_response__pack + (const DispenserAbortJoggingResponse *message, + uint8_t *out); +size_t dispenser_abort_jogging_response__pack_to_buffer + (const DispenserAbortJoggingResponse *message, + ProtobufCBuffer *buffer); +DispenserAbortJoggingResponse * + dispenser_abort_jogging_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void dispenser_abort_jogging_response__free_unpacked + (DispenserAbortJoggingResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DispenserAbortJoggingResponse_Closure) + (const DispenserAbortJoggingResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor dispenser_abort_jogging_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DispenserAbortJoggingResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingRequest.pb-c.c new file mode 100644 index 000000000..83e8f0f36 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingRequest.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserHomingRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DispenserHomingRequest.pb-c.h" +void dispenser_homing_request__init + (DispenserHomingRequest *message) +{ + static const DispenserHomingRequest init_value = DISPENSER_HOMING_REQUEST__INIT; + *message = init_value; +} +size_t dispenser_homing_request__get_packed_size + (const DispenserHomingRequest *message) +{ + assert(message->base.descriptor == &dispenser_homing_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t dispenser_homing_request__pack + (const DispenserHomingRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &dispenser_homing_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t dispenser_homing_request__pack_to_buffer + (const DispenserHomingRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &dispenser_homing_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DispenserHomingRequest * + dispenser_homing_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DispenserHomingRequest *) + protobuf_c_message_unpack (&dispenser_homing_request__descriptor, + allocator, len, data); +} +void dispenser_homing_request__free_unpacked + (DispenserHomingRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &dispenser_homing_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor dispenser_homing_request__field_descriptors[2] = +{ + { + "Code", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(DispenserHomingRequest, has_code), + offsetof(DispenserHomingRequest, code), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Speed", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(DispenserHomingRequest, has_speed), + offsetof(DispenserHomingRequest, speed), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned dispenser_homing_request__field_indices_by_name[] = { + 0, /* field[0] = Code */ + 1, /* field[1] = Speed */ +}; +static const ProtobufCIntRange dispenser_homing_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor dispenser_homing_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DispenserHomingRequest", + "DispenserHomingRequest", + "DispenserHomingRequest", + "", + sizeof(DispenserHomingRequest), + 2, + dispenser_homing_request__field_descriptors, + dispenser_homing_request__field_indices_by_name, + 1, dispenser_homing_request__number_ranges, + (ProtobufCMessageInit) dispenser_homing_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingRequest.pb-c.h new file mode 100644 index 000000000..ba7ab19cf --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingRequest.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserHomingRequest.proto */ + +#ifndef PROTOBUF_C_DispenserHomingRequest_2eproto__INCLUDED +#define PROTOBUF_C_DispenserHomingRequest_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _DispenserHomingRequest DispenserHomingRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DispenserHomingRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_code; + int32_t code; + protobuf_c_boolean has_speed; + double speed; +}; +#define DISPENSER_HOMING_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&dispenser_homing_request__descriptor) \ + , 0, 0, 0, 0 } + + +/* DispenserHomingRequest methods */ +void dispenser_homing_request__init + (DispenserHomingRequest *message); +size_t dispenser_homing_request__get_packed_size + (const DispenserHomingRequest *message); +size_t dispenser_homing_request__pack + (const DispenserHomingRequest *message, + uint8_t *out); +size_t dispenser_homing_request__pack_to_buffer + (const DispenserHomingRequest *message, + ProtobufCBuffer *buffer); +DispenserHomingRequest * + dispenser_homing_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void dispenser_homing_request__free_unpacked + (DispenserHomingRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DispenserHomingRequest_Closure) + (const DispenserHomingRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor dispenser_homing_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DispenserHomingRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingResponse.pb-c.c new file mode 100644 index 000000000..e37aaaa67 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingResponse.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserHomingResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DispenserHomingResponse.pb-c.h" +void dispenser_homing_response__init + (DispenserHomingResponse *message) +{ + static const DispenserHomingResponse init_value = DISPENSER_HOMING_RESPONSE__INIT; + *message = init_value; +} +size_t dispenser_homing_response__get_packed_size + (const DispenserHomingResponse *message) +{ + assert(message->base.descriptor == &dispenser_homing_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t dispenser_homing_response__pack + (const DispenserHomingResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &dispenser_homing_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t dispenser_homing_response__pack_to_buffer + (const DispenserHomingResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &dispenser_homing_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DispenserHomingResponse * + dispenser_homing_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DispenserHomingResponse *) + protobuf_c_message_unpack (&dispenser_homing_response__descriptor, + allocator, len, data); +} +void dispenser_homing_response__free_unpacked + (DispenserHomingResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &dispenser_homing_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor dispenser_homing_response__field_descriptors[2] = +{ + { + "Progress", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(DispenserHomingResponse, has_progress), + offsetof(DispenserHomingResponse, progress), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MaxProgress", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(DispenserHomingResponse, has_maxprogress), + offsetof(DispenserHomingResponse, maxprogress), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned dispenser_homing_response__field_indices_by_name[] = { + 1, /* field[1] = MaxProgress */ + 0, /* field[0] = Progress */ +}; +static const ProtobufCIntRange dispenser_homing_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor dispenser_homing_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DispenserHomingResponse", + "DispenserHomingResponse", + "DispenserHomingResponse", + "", + sizeof(DispenserHomingResponse), + 2, + dispenser_homing_response__field_descriptors, + dispenser_homing_response__field_indices_by_name, + 1, dispenser_homing_response__number_ranges, + (ProtobufCMessageInit) dispenser_homing_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingResponse.pb-c.h new file mode 100644 index 000000000..76899841b --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserHomingResponse.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserHomingResponse.proto */ + +#ifndef PROTOBUF_C_DispenserHomingResponse_2eproto__INCLUDED +#define PROTOBUF_C_DispenserHomingResponse_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _DispenserHomingResponse DispenserHomingResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DispenserHomingResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_progress; + double progress; + protobuf_c_boolean has_maxprogress; + double maxprogress; +}; +#define DISPENSER_HOMING_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&dispenser_homing_response__descriptor) \ + , 0, 0, 0, 0 } + + +/* DispenserHomingResponse methods */ +void dispenser_homing_response__init + (DispenserHomingResponse *message); +size_t dispenser_homing_response__get_packed_size + (const DispenserHomingResponse *message); +size_t dispenser_homing_response__pack + (const DispenserHomingResponse *message, + uint8_t *out); +size_t dispenser_homing_response__pack_to_buffer + (const DispenserHomingResponse *message, + ProtobufCBuffer *buffer); +DispenserHomingResponse * + dispenser_homing_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void dispenser_homing_response__free_unpacked + (DispenserHomingResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DispenserHomingResponse_Closure) + (const DispenserHomingResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor dispenser_homing_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DispenserHomingResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingRequest.pb-c.c new file mode 100644 index 000000000..720e45d8f --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingRequest.pb-c.c @@ -0,0 +1,118 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserJoggingRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DispenserJoggingRequest.pb-c.h" +void dispenser_jogging_request__init + (DispenserJoggingRequest *message) +{ + static const DispenserJoggingRequest init_value = DISPENSER_JOGGING_REQUEST__INIT; + *message = init_value; +} +size_t dispenser_jogging_request__get_packed_size + (const DispenserJoggingRequest *message) +{ + assert(message->base.descriptor == &dispenser_jogging_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t dispenser_jogging_request__pack + (const DispenserJoggingRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &dispenser_jogging_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t dispenser_jogging_request__pack_to_buffer + (const DispenserJoggingRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &dispenser_jogging_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DispenserJoggingRequest * + dispenser_jogging_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DispenserJoggingRequest *) + protobuf_c_message_unpack (&dispenser_jogging_request__descriptor, + allocator, len, data); +} +void dispenser_jogging_request__free_unpacked + (DispenserJoggingRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &dispenser_jogging_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor dispenser_jogging_request__field_descriptors[3] = +{ + { + "Direction", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(DispenserJoggingRequest, has_direction), + offsetof(DispenserJoggingRequest, direction), + &motor_direction__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Code", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(DispenserJoggingRequest, has_code), + offsetof(DispenserJoggingRequest, code), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Speed", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(DispenserJoggingRequest, has_speed), + offsetof(DispenserJoggingRequest, speed), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned dispenser_jogging_request__field_indices_by_name[] = { + 1, /* field[1] = Code */ + 0, /* field[0] = Direction */ + 2, /* field[2] = Speed */ +}; +static const ProtobufCIntRange dispenser_jogging_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor dispenser_jogging_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DispenserJoggingRequest", + "DispenserJoggingRequest", + "DispenserJoggingRequest", + "", + sizeof(DispenserJoggingRequest), + 3, + dispenser_jogging_request__field_descriptors, + dispenser_jogging_request__field_indices_by_name, + 1, dispenser_jogging_request__number_ranges, + (ProtobufCMessageInit) dispenser_jogging_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingRequest.pb-c.h new file mode 100644 index 000000000..b3d962769 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingRequest.pb-c.h @@ -0,0 +1,77 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserJoggingRequest.proto */ + +#ifndef PROTOBUF_C_DispenserJoggingRequest_2eproto__INCLUDED +#define PROTOBUF_C_DispenserJoggingRequest_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "MotorDirection.pb-c.h" + +typedef struct _DispenserJoggingRequest DispenserJoggingRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DispenserJoggingRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_direction; + MotorDirection direction; + protobuf_c_boolean has_code; + int32_t code; + protobuf_c_boolean has_speed; + double speed; +}; +#define DISPENSER_JOGGING_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&dispenser_jogging_request__descriptor) \ + , 0, MOTOR_DIRECTION__Forward, 0, 0, 0, 0 } + + +/* DispenserJoggingRequest methods */ +void dispenser_jogging_request__init + (DispenserJoggingRequest *message); +size_t dispenser_jogging_request__get_packed_size + (const DispenserJoggingRequest *message); +size_t dispenser_jogging_request__pack + (const DispenserJoggingRequest *message, + uint8_t *out); +size_t dispenser_jogging_request__pack_to_buffer + (const DispenserJoggingRequest *message, + ProtobufCBuffer *buffer); +DispenserJoggingRequest * + dispenser_jogging_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void dispenser_jogging_request__free_unpacked + (DispenserJoggingRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DispenserJoggingRequest_Closure) + (const DispenserJoggingRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor dispenser_jogging_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DispenserJoggingRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingResponse.pb-c.c new file mode 100644 index 000000000..499387197 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingResponse.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserJoggingResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "DispenserJoggingResponse.pb-c.h" +void dispenser_jogging_response__init + (DispenserJoggingResponse *message) +{ + static const DispenserJoggingResponse init_value = DISPENSER_JOGGING_RESPONSE__INIT; + *message = init_value; +} +size_t dispenser_jogging_response__get_packed_size + (const DispenserJoggingResponse *message) +{ + assert(message->base.descriptor == &dispenser_jogging_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t dispenser_jogging_response__pack + (const DispenserJoggingResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &dispenser_jogging_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t dispenser_jogging_response__pack_to_buffer + (const DispenserJoggingResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &dispenser_jogging_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +DispenserJoggingResponse * + dispenser_jogging_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (DispenserJoggingResponse *) + protobuf_c_message_unpack (&dispenser_jogging_response__descriptor, + allocator, len, data); +} +void dispenser_jogging_response__free_unpacked + (DispenserJoggingResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &dispenser_jogging_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define dispenser_jogging_response__field_descriptors NULL +#define dispenser_jogging_response__field_indices_by_name NULL +#define dispenser_jogging_response__number_ranges NULL +const ProtobufCMessageDescriptor dispenser_jogging_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "DispenserJoggingResponse", + "DispenserJoggingResponse", + "DispenserJoggingResponse", + "", + sizeof(DispenserJoggingResponse), + 0, + dispenser_jogging_response__field_descriptors, + dispenser_jogging_response__field_indices_by_name, + 0, dispenser_jogging_response__number_ranges, + (ProtobufCMessageInit) dispenser_jogging_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingResponse.pb-c.h new file mode 100644 index 000000000..7cdda36f8 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/DispenserJoggingResponse.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: DispenserJoggingResponse.proto */ + +#ifndef PROTOBUF_C_DispenserJoggingResponse_2eproto__INCLUDED +#define PROTOBUF_C_DispenserJoggingResponse_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _DispenserJoggingResponse DispenserJoggingResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _DispenserJoggingResponse +{ + ProtobufCMessage base; +}; +#define DISPENSER_JOGGING_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&dispenser_jogging_response__descriptor) \ + } + + +/* DispenserJoggingResponse methods */ +void dispenser_jogging_response__init + (DispenserJoggingResponse *message); +size_t dispenser_jogging_response__get_packed_size + (const DispenserJoggingResponse *message); +size_t dispenser_jogging_response__pack + (const DispenserJoggingResponse *message, + uint8_t *out); +size_t dispenser_jogging_response__pack_to_buffer + (const DispenserJoggingResponse *message, + ProtobufCBuffer *buffer); +DispenserJoggingResponse * + dispenser_jogging_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void dispenser_jogging_response__free_unpacked + (DispenserJoggingResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*DispenserJoggingResponse_Closure) + (const DispenserJoggingResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor dispenser_jogging_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_DispenserJoggingResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingRequest.pb-c.c new file mode 100644 index 000000000..63c2bdf9e --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorAbortHomingRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "MotorAbortHomingRequest.pb-c.h" +void motor_abort_homing_request__init + (MotorAbortHomingRequest *message) +{ + static const MotorAbortHomingRequest init_value = MOTOR_ABORT_HOMING_REQUEST__INIT; + *message = init_value; +} +size_t motor_abort_homing_request__get_packed_size + (const MotorAbortHomingRequest *message) +{ + assert(message->base.descriptor == &motor_abort_homing_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t motor_abort_homing_request__pack + (const MotorAbortHomingRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &motor_abort_homing_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t motor_abort_homing_request__pack_to_buffer + (const MotorAbortHomingRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &motor_abort_homing_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +MotorAbortHomingRequest * + motor_abort_homing_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (MotorAbortHomingRequest *) + protobuf_c_message_unpack (&motor_abort_homing_request__descriptor, + allocator, len, data); +} +void motor_abort_homing_request__free_unpacked + (MotorAbortHomingRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &motor_abort_homing_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor motor_abort_homing_request__field_descriptors[1] = +{ + { + "Code", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(MotorAbortHomingRequest, has_code), + offsetof(MotorAbortHomingRequest, code), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned motor_abort_homing_request__field_indices_by_name[] = { + 0, /* field[0] = Code */ +}; +static const ProtobufCIntRange motor_abort_homing_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor motor_abort_homing_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "MotorAbortHomingRequest", + "MotorAbortHomingRequest", + "MotorAbortHomingRequest", + "", + sizeof(MotorAbortHomingRequest), + 1, + motor_abort_homing_request__field_descriptors, + motor_abort_homing_request__field_indices_by_name, + 1, motor_abort_homing_request__number_ranges, + (ProtobufCMessageInit) motor_abort_homing_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingRequest.pb-c.h new file mode 100644 index 000000000..e480d02b4 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingRequest.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorAbortHomingRequest.proto */ + +#ifndef PROTOBUF_C_MotorAbortHomingRequest_2eproto__INCLUDED +#define PROTOBUF_C_MotorAbortHomingRequest_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _MotorAbortHomingRequest MotorAbortHomingRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _MotorAbortHomingRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_code; + int32_t code; +}; +#define MOTOR_ABORT_HOMING_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&motor_abort_homing_request__descriptor) \ + , 0, 0 } + + +/* MotorAbortHomingRequest methods */ +void motor_abort_homing_request__init + (MotorAbortHomingRequest *message); +size_t motor_abort_homing_request__get_packed_size + (const MotorAbortHomingRequest *message); +size_t motor_abort_homing_request__pack + (const MotorAbortHomingRequest *message, + uint8_t *out); +size_t motor_abort_homing_request__pack_to_buffer + (const MotorAbortHomingRequest *message, + ProtobufCBuffer *buffer); +MotorAbortHomingRequest * + motor_abort_homing_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void motor_abort_homing_request__free_unpacked + (MotorAbortHomingRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*MotorAbortHomingRequest_Closure) + (const MotorAbortHomingRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor motor_abort_homing_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_MotorAbortHomingRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingResponse.pb-c.c new file mode 100644 index 000000000..d95f3d978 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingResponse.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorAbortHomingResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "MotorAbortHomingResponse.pb-c.h" +void motor_abort_homing_response__init + (MotorAbortHomingResponse *message) +{ + static const MotorAbortHomingResponse init_value = MOTOR_ABORT_HOMING_RESPONSE__INIT; + *message = init_value; +} +size_t motor_abort_homing_response__get_packed_size + (const MotorAbortHomingResponse *message) +{ + assert(message->base.descriptor == &motor_abort_homing_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t motor_abort_homing_response__pack + (const MotorAbortHomingResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &motor_abort_homing_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t motor_abort_homing_response__pack_to_buffer + (const MotorAbortHomingResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &motor_abort_homing_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +MotorAbortHomingResponse * + motor_abort_homing_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (MotorAbortHomingResponse *) + protobuf_c_message_unpack (&motor_abort_homing_response__descriptor, + allocator, len, data); +} +void motor_abort_homing_response__free_unpacked + (MotorAbortHomingResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &motor_abort_homing_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define motor_abort_homing_response__field_descriptors NULL +#define motor_abort_homing_response__field_indices_by_name NULL +#define motor_abort_homing_response__number_ranges NULL +const ProtobufCMessageDescriptor motor_abort_homing_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "MotorAbortHomingResponse", + "MotorAbortHomingResponse", + "MotorAbortHomingResponse", + "", + sizeof(MotorAbortHomingResponse), + 0, + motor_abort_homing_response__field_descriptors, + motor_abort_homing_response__field_indices_by_name, + 0, motor_abort_homing_response__number_ranges, + (ProtobufCMessageInit) motor_abort_homing_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingResponse.pb-c.h new file mode 100644 index 000000000..fb69cf90f --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortHomingResponse.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorAbortHomingResponse.proto */ + +#ifndef PROTOBUF_C_MotorAbortHomingResponse_2eproto__INCLUDED +#define PROTOBUF_C_MotorAbortHomingResponse_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _MotorAbortHomingResponse MotorAbortHomingResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _MotorAbortHomingResponse +{ + ProtobufCMessage base; +}; +#define MOTOR_ABORT_HOMING_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&motor_abort_homing_response__descriptor) \ + } + + +/* MotorAbortHomingResponse methods */ +void motor_abort_homing_response__init + (MotorAbortHomingResponse *message); +size_t motor_abort_homing_response__get_packed_size + (const MotorAbortHomingResponse *message); +size_t motor_abort_homing_response__pack + (const MotorAbortHomingResponse *message, + uint8_t *out); +size_t motor_abort_homing_response__pack_to_buffer + (const MotorAbortHomingResponse *message, + ProtobufCBuffer *buffer); +MotorAbortHomingResponse * + motor_abort_homing_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void motor_abort_homing_response__free_unpacked + (MotorAbortHomingResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*MotorAbortHomingResponse_Closure) + (const MotorAbortHomingResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor motor_abort_homing_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_MotorAbortHomingResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingRequest.pb-c.c new file mode 100644 index 000000000..45c487e65 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingRequest.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorAbortJoggingRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "MotorAbortJoggingRequest.pb-c.h" +void motor_abort_jogging_request__init + (MotorAbortJoggingRequest *message) +{ + static const MotorAbortJoggingRequest init_value = MOTOR_ABORT_JOGGING_REQUEST__INIT; + *message = init_value; +} +size_t motor_abort_jogging_request__get_packed_size + (const MotorAbortJoggingRequest *message) +{ + assert(message->base.descriptor == &motor_abort_jogging_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t motor_abort_jogging_request__pack + (const MotorAbortJoggingRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &motor_abort_jogging_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t motor_abort_jogging_request__pack_to_buffer + (const MotorAbortJoggingRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &motor_abort_jogging_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +MotorAbortJoggingRequest * + motor_abort_jogging_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (MotorAbortJoggingRequest *) + protobuf_c_message_unpack (&motor_abort_jogging_request__descriptor, + allocator, len, data); +} +void motor_abort_jogging_request__free_unpacked + (MotorAbortJoggingRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &motor_abort_jogging_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor motor_abort_jogging_request__field_descriptors[1] = +{ + { + "Code", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(MotorAbortJoggingRequest, has_code), + offsetof(MotorAbortJoggingRequest, code), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned motor_abort_jogging_request__field_indices_by_name[] = { + 0, /* field[0] = Code */ +}; +static const ProtobufCIntRange motor_abort_jogging_request__number_ranges[1 + 1] = +{ + { 2, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor motor_abort_jogging_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "MotorAbortJoggingRequest", + "MotorAbortJoggingRequest", + "MotorAbortJoggingRequest", + "", + sizeof(MotorAbortJoggingRequest), + 1, + motor_abort_jogging_request__field_descriptors, + motor_abort_jogging_request__field_indices_by_name, + 1, motor_abort_jogging_request__number_ranges, + (ProtobufCMessageInit) motor_abort_jogging_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingRequest.pb-c.h new file mode 100644 index 000000000..39511ffa9 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingRequest.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorAbortJoggingRequest.proto */ + +#ifndef PROTOBUF_C_MotorAbortJoggingRequest_2eproto__INCLUDED +#define PROTOBUF_C_MotorAbortJoggingRequest_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _MotorAbortJoggingRequest MotorAbortJoggingRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _MotorAbortJoggingRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_code; + int32_t code; +}; +#define MOTOR_ABORT_JOGGING_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&motor_abort_jogging_request__descriptor) \ + , 0, 0 } + + +/* MotorAbortJoggingRequest methods */ +void motor_abort_jogging_request__init + (MotorAbortJoggingRequest *message); +size_t motor_abort_jogging_request__get_packed_size + (const MotorAbortJoggingRequest *message); +size_t motor_abort_jogging_request__pack + (const MotorAbortJoggingRequest *message, + uint8_t *out); +size_t motor_abort_jogging_request__pack_to_buffer + (const MotorAbortJoggingRequest *message, + ProtobufCBuffer *buffer); +MotorAbortJoggingRequest * + motor_abort_jogging_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void motor_abort_jogging_request__free_unpacked + (MotorAbortJoggingRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*MotorAbortJoggingRequest_Closure) + (const MotorAbortJoggingRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor motor_abort_jogging_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_MotorAbortJoggingRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingResponse.pb-c.c new file mode 100644 index 000000000..f32b7aad0 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingResponse.pb-c.c @@ -0,0 +1,92 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorAbortJoggingResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "MotorAbortJoggingResponse.pb-c.h" +void motor_abort_jogging_response__init + (MotorAbortJoggingResponse *message) +{ + static const MotorAbortJoggingResponse init_value = MOTOR_ABORT_JOGGING_RESPONSE__INIT; + *message = init_value; +} +size_t motor_abort_jogging_response__get_packed_size + (const MotorAbortJoggingResponse *message) +{ + assert(message->base.descriptor == &motor_abort_jogging_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t motor_abort_jogging_response__pack + (const MotorAbortJoggingResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &motor_abort_jogging_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t motor_abort_jogging_response__pack_to_buffer + (const MotorAbortJoggingResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &motor_abort_jogging_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +MotorAbortJoggingResponse * + motor_abort_jogging_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (MotorAbortJoggingResponse *) + protobuf_c_message_unpack (&motor_abort_jogging_response__descriptor, + allocator, len, data); +} +void motor_abort_jogging_response__free_unpacked + (MotorAbortJoggingResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &motor_abort_jogging_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor motor_abort_jogging_response__field_descriptors[1] = +{ + { + "Code", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(MotorAbortJoggingResponse, has_code), + offsetof(MotorAbortJoggingResponse, code), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned motor_abort_jogging_response__field_indices_by_name[] = { + 0, /* field[0] = Code */ +}; +static const ProtobufCIntRange motor_abort_jogging_response__number_ranges[1 + 1] = +{ + { 2, 0 }, + { 0, 1 } +}; +const ProtobufCMessageDescriptor motor_abort_jogging_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "MotorAbortJoggingResponse", + "MotorAbortJoggingResponse", + "MotorAbortJoggingResponse", + "", + sizeof(MotorAbortJoggingResponse), + 1, + motor_abort_jogging_response__field_descriptors, + motor_abort_jogging_response__field_indices_by_name, + 1, motor_abort_jogging_response__number_ranges, + (ProtobufCMessageInit) motor_abort_jogging_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingResponse.pb-c.h new file mode 100644 index 000000000..e78157ab4 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorAbortJoggingResponse.pb-c.h @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorAbortJoggingResponse.proto */ + +#ifndef PROTOBUF_C_MotorAbortJoggingResponse_2eproto__INCLUDED +#define PROTOBUF_C_MotorAbortJoggingResponse_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _MotorAbortJoggingResponse MotorAbortJoggingResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _MotorAbortJoggingResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_code; + int32_t code; +}; +#define MOTOR_ABORT_JOGGING_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&motor_abort_jogging_response__descriptor) \ + , 0, 0 } + + +/* MotorAbortJoggingResponse methods */ +void motor_abort_jogging_response__init + (MotorAbortJoggingResponse *message); +size_t motor_abort_jogging_response__get_packed_size + (const MotorAbortJoggingResponse *message); +size_t motor_abort_jogging_response__pack + (const MotorAbortJoggingResponse *message, + uint8_t *out); +size_t motor_abort_jogging_response__pack_to_buffer + (const MotorAbortJoggingResponse *message, + ProtobufCBuffer *buffer); +MotorAbortJoggingResponse * + motor_abort_jogging_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void motor_abort_jogging_response__free_unpacked + (MotorAbortJoggingResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*MotorAbortJoggingResponse_Closure) + (const MotorAbortJoggingResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor motor_abort_jogging_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_MotorAbortJoggingResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorDirection.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorDirection.pb-c.c new file mode 100644 index 000000000..7eaa11ff6 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorDirection.pb-c.c @@ -0,0 +1,37 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorDirection.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "MotorDirection.pb-c.h" +static const ProtobufCEnumValue motor_direction__enum_values_by_number[2] = +{ + { "Forward", "MOTOR_DIRECTION__Forward", 0 }, + { "Backward", "MOTOR_DIRECTION__Backward", 1 }, +}; +static const ProtobufCIntRange motor_direction__value_ranges[] = { +{0, 0},{0, 2} +}; +static const ProtobufCEnumValueIndex motor_direction__enum_values_by_name[2] = +{ + { "Backward", 1 }, + { "Forward", 0 }, +}; +const ProtobufCEnumDescriptor motor_direction__descriptor = +{ + PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC, + "MotorDirection", + "MotorDirection", + "MotorDirection", + "", + 2, + motor_direction__enum_values_by_number, + 2, + motor_direction__enum_values_by_name, + 1, + motor_direction__value_ranges, + NULL,NULL,NULL,NULL /* reserved[1234] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorDirection.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorDirection.pb-c.h new file mode 100644 index 000000000..e5b190f2b --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorDirection.pb-c.h @@ -0,0 +1,43 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorDirection.proto */ + +#ifndef PROTOBUF_C_MotorDirection_2eproto__INCLUDED +#define PROTOBUF_C_MotorDirection_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + + + +/* --- enums --- */ + +typedef enum _MotorDirection { + MOTOR_DIRECTION__Forward = 0, + MOTOR_DIRECTION__Backward = 1 + PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(MOTOR_DIRECTION) +} MotorDirection; + +/* --- messages --- */ + +/* --- per-message closures --- */ + + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCEnumDescriptor motor_direction__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_MotorDirection_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingRequest.pb-c.c new file mode 100644 index 000000000..39413d2a7 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingRequest.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorHomingRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "MotorHomingRequest.pb-c.h" +void motor_homing_request__init + (MotorHomingRequest *message) +{ + static const MotorHomingRequest init_value = MOTOR_HOMING_REQUEST__INIT; + *message = init_value; +} +size_t motor_homing_request__get_packed_size + (const MotorHomingRequest *message) +{ + assert(message->base.descriptor == &motor_homing_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t motor_homing_request__pack + (const MotorHomingRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &motor_homing_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t motor_homing_request__pack_to_buffer + (const MotorHomingRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &motor_homing_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +MotorHomingRequest * + motor_homing_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (MotorHomingRequest *) + protobuf_c_message_unpack (&motor_homing_request__descriptor, + allocator, len, data); +} +void motor_homing_request__free_unpacked + (MotorHomingRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &motor_homing_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor motor_homing_request__field_descriptors[2] = +{ + { + "Code", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(MotorHomingRequest, has_code), + offsetof(MotorHomingRequest, code), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Speed", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(MotorHomingRequest, has_speed), + offsetof(MotorHomingRequest, speed), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned motor_homing_request__field_indices_by_name[] = { + 0, /* field[0] = Code */ + 1, /* field[1] = Speed */ +}; +static const ProtobufCIntRange motor_homing_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor motor_homing_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "MotorHomingRequest", + "MotorHomingRequest", + "MotorHomingRequest", + "", + sizeof(MotorHomingRequest), + 2, + motor_homing_request__field_descriptors, + motor_homing_request__field_indices_by_name, + 1, motor_homing_request__number_ranges, + (ProtobufCMessageInit) motor_homing_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingRequest.pb-c.h new file mode 100644 index 000000000..e2c9f3c91 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingRequest.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorHomingRequest.proto */ + +#ifndef PROTOBUF_C_MotorHomingRequest_2eproto__INCLUDED +#define PROTOBUF_C_MotorHomingRequest_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _MotorHomingRequest MotorHomingRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _MotorHomingRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_code; + int32_t code; + protobuf_c_boolean has_speed; + double speed; +}; +#define MOTOR_HOMING_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&motor_homing_request__descriptor) \ + , 0, 0, 0, 0 } + + +/* MotorHomingRequest methods */ +void motor_homing_request__init + (MotorHomingRequest *message); +size_t motor_homing_request__get_packed_size + (const MotorHomingRequest *message); +size_t motor_homing_request__pack + (const MotorHomingRequest *message, + uint8_t *out); +size_t motor_homing_request__pack_to_buffer + (const MotorHomingRequest *message, + ProtobufCBuffer *buffer); +MotorHomingRequest * + motor_homing_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void motor_homing_request__free_unpacked + (MotorHomingRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*MotorHomingRequest_Closure) + (const MotorHomingRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor motor_homing_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_MotorHomingRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingResponse.pb-c.c new file mode 100644 index 000000000..76d79e96b --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingResponse.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorHomingResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "MotorHomingResponse.pb-c.h" +void motor_homing_response__init + (MotorHomingResponse *message) +{ + static const MotorHomingResponse init_value = MOTOR_HOMING_RESPONSE__INIT; + *message = init_value; +} +size_t motor_homing_response__get_packed_size + (const MotorHomingResponse *message) +{ + assert(message->base.descriptor == &motor_homing_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t motor_homing_response__pack + (const MotorHomingResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &motor_homing_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t motor_homing_response__pack_to_buffer + (const MotorHomingResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &motor_homing_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +MotorHomingResponse * + motor_homing_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (MotorHomingResponse *) + protobuf_c_message_unpack (&motor_homing_response__descriptor, + allocator, len, data); +} +void motor_homing_response__free_unpacked + (MotorHomingResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &motor_homing_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor motor_homing_response__field_descriptors[2] = +{ + { + "Progress", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(MotorHomingResponse, has_progress), + offsetof(MotorHomingResponse, progress), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "MaxProgress", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(MotorHomingResponse, has_maxprogress), + offsetof(MotorHomingResponse, maxprogress), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned motor_homing_response__field_indices_by_name[] = { + 1, /* field[1] = MaxProgress */ + 0, /* field[0] = Progress */ +}; +static const ProtobufCIntRange motor_homing_response__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor motor_homing_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "MotorHomingResponse", + "MotorHomingResponse", + "MotorHomingResponse", + "", + sizeof(MotorHomingResponse), + 2, + motor_homing_response__field_descriptors, + motor_homing_response__field_indices_by_name, + 1, motor_homing_response__number_ranges, + (ProtobufCMessageInit) motor_homing_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingResponse.pb-c.h new file mode 100644 index 000000000..df0452482 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorHomingResponse.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorHomingResponse.proto */ + +#ifndef PROTOBUF_C_MotorHomingResponse_2eproto__INCLUDED +#define PROTOBUF_C_MotorHomingResponse_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _MotorHomingResponse MotorHomingResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _MotorHomingResponse +{ + ProtobufCMessage base; + protobuf_c_boolean has_progress; + double progress; + protobuf_c_boolean has_maxprogress; + double maxprogress; +}; +#define MOTOR_HOMING_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&motor_homing_response__descriptor) \ + , 0, 0, 0, 0 } + + +/* MotorHomingResponse methods */ +void motor_homing_response__init + (MotorHomingResponse *message); +size_t motor_homing_response__get_packed_size + (const MotorHomingResponse *message); +size_t motor_homing_response__pack + (const MotorHomingResponse *message, + uint8_t *out); +size_t motor_homing_response__pack_to_buffer + (const MotorHomingResponse *message, + ProtobufCBuffer *buffer); +MotorHomingResponse * + motor_homing_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void motor_homing_response__free_unpacked + (MotorHomingResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*MotorHomingResponse_Closure) + (const MotorHomingResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor motor_homing_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_MotorHomingResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingRequest.pb-c.c new file mode 100644 index 000000000..9beca81cc --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingRequest.pb-c.c @@ -0,0 +1,118 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorJoggingRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "MotorJoggingRequest.pb-c.h" +void motor_jogging_request__init + (MotorJoggingRequest *message) +{ + static const MotorJoggingRequest init_value = MOTOR_JOGGING_REQUEST__INIT; + *message = init_value; +} +size_t motor_jogging_request__get_packed_size + (const MotorJoggingRequest *message) +{ + assert(message->base.descriptor == &motor_jogging_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t motor_jogging_request__pack + (const MotorJoggingRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &motor_jogging_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t motor_jogging_request__pack_to_buffer + (const MotorJoggingRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &motor_jogging_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +MotorJoggingRequest * + motor_jogging_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (MotorJoggingRequest *) + protobuf_c_message_unpack (&motor_jogging_request__descriptor, + allocator, len, data); +} +void motor_jogging_request__free_unpacked + (MotorJoggingRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &motor_jogging_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor motor_jogging_request__field_descriptors[3] = +{ + { + "Direction", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(MotorJoggingRequest, has_direction), + offsetof(MotorJoggingRequest, direction), + &motor_direction__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Code", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(MotorJoggingRequest, has_code), + offsetof(MotorJoggingRequest, code), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Speed", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(MotorJoggingRequest, has_speed), + offsetof(MotorJoggingRequest, speed), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned motor_jogging_request__field_indices_by_name[] = { + 1, /* field[1] = Code */ + 0, /* field[0] = Direction */ + 2, /* field[2] = Speed */ +}; +static const ProtobufCIntRange motor_jogging_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 3 } +}; +const ProtobufCMessageDescriptor motor_jogging_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "MotorJoggingRequest", + "MotorJoggingRequest", + "MotorJoggingRequest", + "", + sizeof(MotorJoggingRequest), + 3, + motor_jogging_request__field_descriptors, + motor_jogging_request__field_indices_by_name, + 1, motor_jogging_request__number_ranges, + (ProtobufCMessageInit) motor_jogging_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingRequest.pb-c.h new file mode 100644 index 000000000..9832fdcdf --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingRequest.pb-c.h @@ -0,0 +1,77 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorJoggingRequest.proto */ + +#ifndef PROTOBUF_C_MotorJoggingRequest_2eproto__INCLUDED +#define PROTOBUF_C_MotorJoggingRequest_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "MotorDirection.pb-c.h" + +typedef struct _MotorJoggingRequest MotorJoggingRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _MotorJoggingRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_direction; + MotorDirection direction; + protobuf_c_boolean has_code; + int32_t code; + protobuf_c_boolean has_speed; + double speed; +}; +#define MOTOR_JOGGING_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&motor_jogging_request__descriptor) \ + , 0, MOTOR_DIRECTION__Forward, 0, 0, 0, 0 } + + +/* MotorJoggingRequest methods */ +void motor_jogging_request__init + (MotorJoggingRequest *message); +size_t motor_jogging_request__get_packed_size + (const MotorJoggingRequest *message); +size_t motor_jogging_request__pack + (const MotorJoggingRequest *message, + uint8_t *out); +size_t motor_jogging_request__pack_to_buffer + (const MotorJoggingRequest *message, + ProtobufCBuffer *buffer); +MotorJoggingRequest * + motor_jogging_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void motor_jogging_request__free_unpacked + (MotorJoggingRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*MotorJoggingRequest_Closure) + (const MotorJoggingRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor motor_jogging_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_MotorJoggingRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingResponse.pb-c.c new file mode 100644 index 000000000..e5af97d42 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingResponse.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorJoggingResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "MotorJoggingResponse.pb-c.h" +void motor_jogging_response__init + (MotorJoggingResponse *message) +{ + static const MotorJoggingResponse init_value = MOTOR_JOGGING_RESPONSE__INIT; + *message = init_value; +} +size_t motor_jogging_response__get_packed_size + (const MotorJoggingResponse *message) +{ + assert(message->base.descriptor == &motor_jogging_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t motor_jogging_response__pack + (const MotorJoggingResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &motor_jogging_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t motor_jogging_response__pack_to_buffer + (const MotorJoggingResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &motor_jogging_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +MotorJoggingResponse * + motor_jogging_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (MotorJoggingResponse *) + protobuf_c_message_unpack (&motor_jogging_response__descriptor, + allocator, len, data); +} +void motor_jogging_response__free_unpacked + (MotorJoggingResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &motor_jogging_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define motor_jogging_response__field_descriptors NULL +#define motor_jogging_response__field_indices_by_name NULL +#define motor_jogging_response__number_ranges NULL +const ProtobufCMessageDescriptor motor_jogging_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "MotorJoggingResponse", + "MotorJoggingResponse", + "MotorJoggingResponse", + "", + sizeof(MotorJoggingResponse), + 0, + motor_jogging_response__field_descriptors, + motor_jogging_response__field_indices_by_name, + 0, motor_jogging_response__number_ranges, + (ProtobufCMessageInit) motor_jogging_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingResponse.pb-c.h new file mode 100644 index 000000000..53d11d3fc --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/MotorJoggingResponse.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: MotorJoggingResponse.proto */ + +#ifndef PROTOBUF_C_MotorJoggingResponse_2eproto__INCLUDED +#define PROTOBUF_C_MotorJoggingResponse_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _MotorJoggingResponse MotorJoggingResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _MotorJoggingResponse +{ + ProtobufCMessage base; +}; +#define MOTOR_JOGGING_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&motor_jogging_response__descriptor) \ + } + + +/* MotorJoggingResponse methods */ +void motor_jogging_response__init + (MotorJoggingResponse *message); +size_t motor_jogging_response__get_packed_size + (const MotorJoggingResponse *message); +size_t motor_jogging_response__pack + (const MotorJoggingResponse *message, + uint8_t *out); +size_t motor_jogging_response__pack_to_buffer + (const MotorJoggingResponse *message, + ProtobufCBuffer *buffer); +MotorJoggingResponse * + motor_jogging_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void motor_jogging_response__free_unpacked + (MotorJoggingResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*MotorJoggingResponse_Closure) + (const MotorJoggingResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor motor_jogging_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_MotorJoggingResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutRequest.pb-c.c new file mode 100644 index 000000000..060449149 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutRequest.pb-c.c @@ -0,0 +1,105 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: SetDigitalOutRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "SetDigitalOutRequest.pb-c.h" +void set_digital_out_request__init + (SetDigitalOutRequest *message) +{ + static const SetDigitalOutRequest init_value = SET_DIGITAL_OUT_REQUEST__INIT; + *message = init_value; +} +size_t set_digital_out_request__get_packed_size + (const SetDigitalOutRequest *message) +{ + assert(message->base.descriptor == &set_digital_out_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t set_digital_out_request__pack + (const SetDigitalOutRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &set_digital_out_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t set_digital_out_request__pack_to_buffer + (const SetDigitalOutRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &set_digital_out_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +SetDigitalOutRequest * + set_digital_out_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (SetDigitalOutRequest *) + protobuf_c_message_unpack (&set_digital_out_request__descriptor, + allocator, len, data); +} +void set_digital_out_request__free_unpacked + (SetDigitalOutRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &set_digital_out_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor set_digital_out_request__field_descriptors[2] = +{ + { + "Port", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_INT32, + offsetof(SetDigitalOutRequest, has_port), + offsetof(SetDigitalOutRequest, port), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Value", + 2, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_BOOL, + offsetof(SetDigitalOutRequest, has_value), + offsetof(SetDigitalOutRequest, value), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned set_digital_out_request__field_indices_by_name[] = { + 0, /* field[0] = Port */ + 1, /* field[1] = Value */ +}; +static const ProtobufCIntRange set_digital_out_request__number_ranges[1 + 1] = +{ + { 1, 0 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor set_digital_out_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "SetDigitalOutRequest", + "SetDigitalOutRequest", + "SetDigitalOutRequest", + "", + sizeof(SetDigitalOutRequest), + 2, + set_digital_out_request__field_descriptors, + set_digital_out_request__field_indices_by_name, + 1, set_digital_out_request__number_ranges, + (ProtobufCMessageInit) set_digital_out_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutRequest.pb-c.h new file mode 100644 index 000000000..302b41749 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutRequest.pb-c.h @@ -0,0 +1,74 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: SetDigitalOutRequest.proto */ + +#ifndef PROTOBUF_C_SetDigitalOutRequest_2eproto__INCLUDED +#define PROTOBUF_C_SetDigitalOutRequest_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _SetDigitalOutRequest SetDigitalOutRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _SetDigitalOutRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_port; + int32_t port; + protobuf_c_boolean has_value; + protobuf_c_boolean value; +}; +#define SET_DIGITAL_OUT_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&set_digital_out_request__descriptor) \ + , 0, 0, 0, 0 } + + +/* SetDigitalOutRequest methods */ +void set_digital_out_request__init + (SetDigitalOutRequest *message); +size_t set_digital_out_request__get_packed_size + (const SetDigitalOutRequest *message); +size_t set_digital_out_request__pack + (const SetDigitalOutRequest *message, + uint8_t *out); +size_t set_digital_out_request__pack_to_buffer + (const SetDigitalOutRequest *message, + ProtobufCBuffer *buffer); +SetDigitalOutRequest * + set_digital_out_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void set_digital_out_request__free_unpacked + (SetDigitalOutRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*SetDigitalOutRequest_Closure) + (const SetDigitalOutRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor set_digital_out_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_SetDigitalOutRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutResponse.pb-c.c new file mode 100644 index 000000000..eff7f8973 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutResponse.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: SetDigitalOutResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "SetDigitalOutResponse.pb-c.h" +void set_digital_out_response__init + (SetDigitalOutResponse *message) +{ + static const SetDigitalOutResponse init_value = SET_DIGITAL_OUT_RESPONSE__INIT; + *message = init_value; +} +size_t set_digital_out_response__get_packed_size + (const SetDigitalOutResponse *message) +{ + assert(message->base.descriptor == &set_digital_out_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t set_digital_out_response__pack + (const SetDigitalOutResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &set_digital_out_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t set_digital_out_response__pack_to_buffer + (const SetDigitalOutResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &set_digital_out_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +SetDigitalOutResponse * + set_digital_out_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (SetDigitalOutResponse *) + protobuf_c_message_unpack (&set_digital_out_response__descriptor, + allocator, len, data); +} +void set_digital_out_response__free_unpacked + (SetDigitalOutResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &set_digital_out_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define set_digital_out_response__field_descriptors NULL +#define set_digital_out_response__field_indices_by_name NULL +#define set_digital_out_response__number_ranges NULL +const ProtobufCMessageDescriptor set_digital_out_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "SetDigitalOutResponse", + "SetDigitalOutResponse", + "SetDigitalOutResponse", + "", + sizeof(SetDigitalOutResponse), + 0, + set_digital_out_response__field_descriptors, + set_digital_out_response__field_indices_by_name, + 0, set_digital_out_response__number_ranges, + (ProtobufCMessageInit) set_digital_out_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutResponse.pb-c.h new file mode 100644 index 000000000..00696e359 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/SetDigitalOutResponse.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: SetDigitalOutResponse.proto */ + +#ifndef PROTOBUF_C_SetDigitalOutResponse_2eproto__INCLUDED +#define PROTOBUF_C_SetDigitalOutResponse_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _SetDigitalOutResponse SetDigitalOutResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _SetDigitalOutResponse +{ + ProtobufCMessage base; +}; +#define SET_DIGITAL_OUT_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&set_digital_out_response__descriptor) \ + } + + +/* SetDigitalOutResponse methods */ +void set_digital_out_response__init + (SetDigitalOutResponse *message); +size_t set_digital_out_response__get_packed_size + (const SetDigitalOutResponse *message); +size_t set_digital_out_response__pack + (const SetDigitalOutResponse *message, + uint8_t *out); +size_t set_digital_out_response__pack_to_buffer + (const SetDigitalOutResponse *message, + ProtobufCBuffer *buffer); +SetDigitalOutResponse * + set_digital_out_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void set_digital_out_response__free_unpacked + (SetDigitalOutResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*SetDigitalOutResponse_Closure) + (const SetDigitalOutResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor set_digital_out_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_SetDigitalOutResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingRequest.pb-c.c new file mode 100644 index 000000000..1e1f22bcc --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingRequest.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ThreadAbortJoggingRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ThreadAbortJoggingRequest.pb-c.h" +void thread_abort_jogging_request__init + (ThreadAbortJoggingRequest *message) +{ + static const ThreadAbortJoggingRequest init_value = THREAD_ABORT_JOGGING_REQUEST__INIT; + *message = init_value; +} +size_t thread_abort_jogging_request__get_packed_size + (const ThreadAbortJoggingRequest *message) +{ + assert(message->base.descriptor == &thread_abort_jogging_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t thread_abort_jogging_request__pack + (const ThreadAbortJoggingRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &thread_abort_jogging_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t thread_abort_jogging_request__pack_to_buffer + (const ThreadAbortJoggingRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &thread_abort_jogging_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ThreadAbortJoggingRequest * + thread_abort_jogging_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ThreadAbortJoggingRequest *) + protobuf_c_message_unpack (&thread_abort_jogging_request__descriptor, + allocator, len, data); +} +void thread_abort_jogging_request__free_unpacked + (ThreadAbortJoggingRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &thread_abort_jogging_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define thread_abort_jogging_request__field_descriptors NULL +#define thread_abort_jogging_request__field_indices_by_name NULL +#define thread_abort_jogging_request__number_ranges NULL +const ProtobufCMessageDescriptor thread_abort_jogging_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ThreadAbortJoggingRequest", + "ThreadAbortJoggingRequest", + "ThreadAbortJoggingRequest", + "", + sizeof(ThreadAbortJoggingRequest), + 0, + thread_abort_jogging_request__field_descriptors, + thread_abort_jogging_request__field_indices_by_name, + 0, thread_abort_jogging_request__number_ranges, + (ProtobufCMessageInit) thread_abort_jogging_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingRequest.pb-c.h new file mode 100644 index 000000000..4bc112122 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingRequest.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ThreadAbortJoggingRequest.proto */ + +#ifndef PROTOBUF_C_ThreadAbortJoggingRequest_2eproto__INCLUDED +#define PROTOBUF_C_ThreadAbortJoggingRequest_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _ThreadAbortJoggingRequest ThreadAbortJoggingRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ThreadAbortJoggingRequest +{ + ProtobufCMessage base; +}; +#define THREAD_ABORT_JOGGING_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&thread_abort_jogging_request__descriptor) \ + } + + +/* ThreadAbortJoggingRequest methods */ +void thread_abort_jogging_request__init + (ThreadAbortJoggingRequest *message); +size_t thread_abort_jogging_request__get_packed_size + (const ThreadAbortJoggingRequest *message); +size_t thread_abort_jogging_request__pack + (const ThreadAbortJoggingRequest *message, + uint8_t *out); +size_t thread_abort_jogging_request__pack_to_buffer + (const ThreadAbortJoggingRequest *message, + ProtobufCBuffer *buffer); +ThreadAbortJoggingRequest * + thread_abort_jogging_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void thread_abort_jogging_request__free_unpacked + (ThreadAbortJoggingRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*ThreadAbortJoggingRequest_Closure) + (const ThreadAbortJoggingRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor thread_abort_jogging_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ThreadAbortJoggingRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingResponse.pb-c.c new file mode 100644 index 000000000..4142dfc18 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingResponse.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ThreadAbortJoggingResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ThreadAbortJoggingResponse.pb-c.h" +void thread_abort_jogging_response__init + (ThreadAbortJoggingResponse *message) +{ + static const ThreadAbortJoggingResponse init_value = THREAD_ABORT_JOGGING_RESPONSE__INIT; + *message = init_value; +} +size_t thread_abort_jogging_response__get_packed_size + (const ThreadAbortJoggingResponse *message) +{ + assert(message->base.descriptor == &thread_abort_jogging_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t thread_abort_jogging_response__pack + (const ThreadAbortJoggingResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &thread_abort_jogging_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t thread_abort_jogging_response__pack_to_buffer + (const ThreadAbortJoggingResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &thread_abort_jogging_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ThreadAbortJoggingResponse * + thread_abort_jogging_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ThreadAbortJoggingResponse *) + protobuf_c_message_unpack (&thread_abort_jogging_response__descriptor, + allocator, len, data); +} +void thread_abort_jogging_response__free_unpacked + (ThreadAbortJoggingResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &thread_abort_jogging_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define thread_abort_jogging_response__field_descriptors NULL +#define thread_abort_jogging_response__field_indices_by_name NULL +#define thread_abort_jogging_response__number_ranges NULL +const ProtobufCMessageDescriptor thread_abort_jogging_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ThreadAbortJoggingResponse", + "ThreadAbortJoggingResponse", + "ThreadAbortJoggingResponse", + "", + sizeof(ThreadAbortJoggingResponse), + 0, + thread_abort_jogging_response__field_descriptors, + thread_abort_jogging_response__field_indices_by_name, + 0, thread_abort_jogging_response__number_ranges, + (ProtobufCMessageInit) thread_abort_jogging_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingResponse.pb-c.h new file mode 100644 index 000000000..7d3d7e82a --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadAbortJoggingResponse.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ThreadAbortJoggingResponse.proto */ + +#ifndef PROTOBUF_C_ThreadAbortJoggingResponse_2eproto__INCLUDED +#define PROTOBUF_C_ThreadAbortJoggingResponse_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _ThreadAbortJoggingResponse ThreadAbortJoggingResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ThreadAbortJoggingResponse +{ + ProtobufCMessage base; +}; +#define THREAD_ABORT_JOGGING_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&thread_abort_jogging_response__descriptor) \ + } + + +/* ThreadAbortJoggingResponse methods */ +void thread_abort_jogging_response__init + (ThreadAbortJoggingResponse *message); +size_t thread_abort_jogging_response__get_packed_size + (const ThreadAbortJoggingResponse *message); +size_t thread_abort_jogging_response__pack + (const ThreadAbortJoggingResponse *message, + uint8_t *out); +size_t thread_abort_jogging_response__pack_to_buffer + (const ThreadAbortJoggingResponse *message, + ProtobufCBuffer *buffer); +ThreadAbortJoggingResponse * + thread_abort_jogging_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void thread_abort_jogging_response__free_unpacked + (ThreadAbortJoggingResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*ThreadAbortJoggingResponse_Closure) + (const ThreadAbortJoggingResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor thread_abort_jogging_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ThreadAbortJoggingResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingRequest.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingRequest.pb-c.c new file mode 100644 index 000000000..f0b387414 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingRequest.pb-c.c @@ -0,0 +1,106 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ThreadJoggingRequest.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ThreadJoggingRequest.pb-c.h" +void thread_jogging_request__init + (ThreadJoggingRequest *message) +{ + static const ThreadJoggingRequest init_value = THREAD_JOGGING_REQUEST__INIT; + *message = init_value; +} +size_t thread_jogging_request__get_packed_size + (const ThreadJoggingRequest *message) +{ + assert(message->base.descriptor == &thread_jogging_request__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t thread_jogging_request__pack + (const ThreadJoggingRequest *message, + uint8_t *out) +{ + assert(message->base.descriptor == &thread_jogging_request__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t thread_jogging_request__pack_to_buffer + (const ThreadJoggingRequest *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &thread_jogging_request__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ThreadJoggingRequest * + thread_jogging_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ThreadJoggingRequest *) + protobuf_c_message_unpack (&thread_jogging_request__descriptor, + allocator, len, data); +} +void thread_jogging_request__free_unpacked + (ThreadJoggingRequest *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &thread_jogging_request__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +static const ProtobufCFieldDescriptor thread_jogging_request__field_descriptors[2] = +{ + { + "Direction", + 1, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_ENUM, + offsetof(ThreadJoggingRequest, has_direction), + offsetof(ThreadJoggingRequest, direction), + &motor_direction__descriptor, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, + { + "Speed", + 3, + PROTOBUF_C_LABEL_OPTIONAL, + PROTOBUF_C_TYPE_DOUBLE, + offsetof(ThreadJoggingRequest, has_speed), + offsetof(ThreadJoggingRequest, speed), + NULL, + NULL, + 0, /* flags */ + 0,NULL,NULL /* reserved1,reserved2, etc */ + }, +}; +static const unsigned thread_jogging_request__field_indices_by_name[] = { + 0, /* field[0] = Direction */ + 1, /* field[1] = Speed */ +}; +static const ProtobufCIntRange thread_jogging_request__number_ranges[2 + 1] = +{ + { 1, 0 }, + { 3, 1 }, + { 0, 2 } +}; +const ProtobufCMessageDescriptor thread_jogging_request__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ThreadJoggingRequest", + "ThreadJoggingRequest", + "ThreadJoggingRequest", + "", + sizeof(ThreadJoggingRequest), + 2, + thread_jogging_request__field_descriptors, + thread_jogging_request__field_indices_by_name, + 2, thread_jogging_request__number_ranges, + (ProtobufCMessageInit) thread_jogging_request__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingRequest.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingRequest.pb-c.h new file mode 100644 index 000000000..7669215aa --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingRequest.pb-c.h @@ -0,0 +1,75 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ThreadJoggingRequest.proto */ + +#ifndef PROTOBUF_C_ThreadJoggingRequest_2eproto__INCLUDED +#define PROTOBUF_C_ThreadJoggingRequest_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + +#include "MotorDirection.pb-c.h" + +typedef struct _ThreadJoggingRequest ThreadJoggingRequest; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ThreadJoggingRequest +{ + ProtobufCMessage base; + protobuf_c_boolean has_direction; + MotorDirection direction; + protobuf_c_boolean has_speed; + double speed; +}; +#define THREAD_JOGGING_REQUEST__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&thread_jogging_request__descriptor) \ + , 0, MOTOR_DIRECTION__Forward, 0, 0 } + + +/* ThreadJoggingRequest methods */ +void thread_jogging_request__init + (ThreadJoggingRequest *message); +size_t thread_jogging_request__get_packed_size + (const ThreadJoggingRequest *message); +size_t thread_jogging_request__pack + (const ThreadJoggingRequest *message, + uint8_t *out); +size_t thread_jogging_request__pack_to_buffer + (const ThreadJoggingRequest *message, + ProtobufCBuffer *buffer); +ThreadJoggingRequest * + thread_jogging_request__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void thread_jogging_request__free_unpacked + (ThreadJoggingRequest *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*ThreadJoggingRequest_Closure) + (const ThreadJoggingRequest *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor thread_jogging_request__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ThreadJoggingRequest_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingResponse.pb-c.c b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingResponse.pb-c.c new file mode 100644 index 000000000..c54896825 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingResponse.pb-c.c @@ -0,0 +1,72 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ThreadJoggingResponse.proto */ + +/* Do not generate deprecated warnings for self */ +#ifndef PROTOBUF_C__NO_DEPRECATED +#define PROTOBUF_C__NO_DEPRECATED +#endif + +#include "ThreadJoggingResponse.pb-c.h" +void thread_jogging_response__init + (ThreadJoggingResponse *message) +{ + static const ThreadJoggingResponse init_value = THREAD_JOGGING_RESPONSE__INIT; + *message = init_value; +} +size_t thread_jogging_response__get_packed_size + (const ThreadJoggingResponse *message) +{ + assert(message->base.descriptor == &thread_jogging_response__descriptor); + return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); +} +size_t thread_jogging_response__pack + (const ThreadJoggingResponse *message, + uint8_t *out) +{ + assert(message->base.descriptor == &thread_jogging_response__descriptor); + return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); +} +size_t thread_jogging_response__pack_to_buffer + (const ThreadJoggingResponse *message, + ProtobufCBuffer *buffer) +{ + assert(message->base.descriptor == &thread_jogging_response__descriptor); + return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); +} +ThreadJoggingResponse * + thread_jogging_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data) +{ + return (ThreadJoggingResponse *) + protobuf_c_message_unpack (&thread_jogging_response__descriptor, + allocator, len, data); +} +void thread_jogging_response__free_unpacked + (ThreadJoggingResponse *message, + ProtobufCAllocator *allocator) +{ + if(!message) + return; + assert(message->base.descriptor == &thread_jogging_response__descriptor); + protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); +} +#define thread_jogging_response__field_descriptors NULL +#define thread_jogging_response__field_indices_by_name NULL +#define thread_jogging_response__number_ranges NULL +const ProtobufCMessageDescriptor thread_jogging_response__descriptor = +{ + PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, + "ThreadJoggingResponse", + "ThreadJoggingResponse", + "ThreadJoggingResponse", + "", + sizeof(ThreadJoggingResponse), + 0, + thread_jogging_response__field_descriptors, + thread_jogging_response__field_indices_by_name, + 0, thread_jogging_response__number_ranges, + (ProtobufCMessageInit) thread_jogging_response__init, + NULL,NULL,NULL /* reserved[123] */ +}; diff --git a/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingResponse.pb-c.h b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingResponse.pb-c.h new file mode 100644 index 000000000..669b0a7b4 --- /dev/null +++ b/Software/Visual_Studio/Native/Tango.ColorLib/PMR/Diagnostics/ThreadJoggingResponse.pb-c.h @@ -0,0 +1,70 @@ +/* Generated by the protocol buffer compiler. DO NOT EDIT! */ +/* Generated from: ThreadJoggingResponse.proto */ + +#ifndef PROTOBUF_C_ThreadJoggingResponse_2eproto__INCLUDED +#define PROTOBUF_C_ThreadJoggingResponse_2eproto__INCLUDED + +#include + +PROTOBUF_C__BEGIN_DECLS + +#if PROTOBUF_C_VERSION_NUMBER < 1003000 +# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. +#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION +# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. +#endif + + +typedef struct _ThreadJoggingResponse ThreadJoggingResponse; + + +/* --- enums --- */ + + +/* --- messages --- */ + +struct _ThreadJoggingResponse +{ + ProtobufCMessage base; +}; +#define THREAD_JOGGING_RESPONSE__INIT \ + { PROTOBUF_C_MESSAGE_INIT (&thread_jogging_response__descriptor) \ + } + + +/* ThreadJoggingResponse methods */ +void thread_jogging_response__init + (ThreadJoggingResponse *message); +size_t thread_jogging_response__get_packed_size + (const ThreadJoggingResponse *message); +size_t thread_jogging_response__pack + (const ThreadJoggingResponse *message, + uint8_t *out); +size_t thread_jogging_response__pack_to_buffer + (const ThreadJoggingResponse *message, + ProtobufCBuffer *buffer); +ThreadJoggingResponse * + thread_jogging_response__unpack + (ProtobufCAllocator *allocator, + size_t len, + const uint8_t *data); +void thread_jogging_response__free_unpacked + (ThreadJoggingResponse *message, + ProtobufCAllocator *allocator); +/* --- per-message closures --- */ + +typedef void (*ThreadJoggingResponse_Closure) + (const ThreadJoggingResponse *message, + void *closure_data); + +/* --- services --- */ + + +/* --- descriptors --- */ + +extern const ProtobufCMessageDescriptor thread_jogging_response__descriptor; + +PROTOBUF_C__END_DECLS + + +#endif /* PROTOBUF_C_ThreadJoggingResponse_2eproto__INCLUDED */ diff --git a/Software/Visual_Studio/Tango.DAL.Remote/DB/TECH_IOS.cs b/Software/Visual_Studio/Tango.DAL.Remote/DB/TECH_IOS.cs new file mode 100644 index 000000000..7f7fd4045 --- /dev/null +++ b/Software/Visual_Studio/Tango.DAL.Remote/DB/TECH_IOS.cs @@ -0,0 +1,28 @@ +//------------------------------------------------------------------------------ +// +// This code was generated from a template. +// +// Manual changes to this file may cause unexpected behavior in your application. +// Manual changes to this file will be overwritten if the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Tango.DAL.Remote.DB +{ + using System; + using System.Collections.Generic; + + public partial class TECH_IOS + { + public int ID { get; set; } + public string GUID { get; set; } + public System.DateTime LAST_UPDATED { get; set; } + public int CODE { get; set; } + public string NAME { get; set; } + public string DESCRIPTION { get; set; } + public int PORT { get; set; } + public int TYPE { get; set; } + public double MIN { get; set; } + public double MAX { get; set; } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Dispensing/DispenserStepDivisions.cs b/Software/Visual_Studio/Tango.Integration/Dispensing/DispenserStepDivisions.cs new file mode 100644 index 000000000..55d47ab75 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Dispensing/DispenserStepDivisions.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Integration.Dispensing +{ + public enum DispenserStepDivisions + { + [Description("Auto")] + Auto = 0, + [Description("2")] + D2 = 2, + [Description("4")] + D4 = 4, + [Description("8")] + D8 = 8, + [Description("16")] + D16 = 16, + [Description("32")] + D32 = 32, + [Description("64")] + D64 = 64, + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Entities/TechIo.cs b/Software/Visual_Studio/Tango.Integration/Observables/Entities/TechIo.cs new file mode 100644 index 000000000..90ac0de7c --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Entities/TechIo.cs @@ -0,0 +1,162 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using System.Linq; +using Tango.DAL.Remote.DB; + +namespace Tango.Integration.Observables +{ + [Table("TECH_IOS")] + public partial class TechIo : ObservableEntity + { + + protected Int32 _code; + /// + /// Gets or sets the techio code. + /// + [Column("CODE")] + + public Int32 Code + { + get + { + return _code; + } + + set + { + _code = value; RaisePropertyChanged(nameof(Code)); + } + + } + + protected String _name; + /// + /// Gets or sets the techio name. + /// + [Column("NAME")] + + public String Name + { + get + { + return _name; + } + + set + { + _name = value; RaisePropertyChanged(nameof(Name)); + } + + } + + protected String _description; + /// + /// Gets or sets the techio description. + /// + [Column("DESCRIPTION")] + + public String Description + { + get + { + return _description; + } + + set + { + _description = value; RaisePropertyChanged(nameof(Description)); + } + + } + + protected Int32 _port; + /// + /// Gets or sets the techio port. + /// + [Column("PORT")] + + public Int32 Port + { + get + { + return _port; + } + + set + { + _port = value; RaisePropertyChanged(nameof(Port)); + } + + } + + protected Int32 _type; + /// + /// Gets or sets the techio type. + /// + [Column("TYPE")] + + public Int32 Type + { + get + { + return _type; + } + + set + { + _type = value; RaisePropertyChanged(nameof(Type)); + } + + } + + protected Double _min; + /// + /// Gets or sets the techio min. + /// + [Column("MIN")] + + public Double Min + { + get + { + return _min; + } + + set + { + _min = value; RaisePropertyChanged(nameof(Min)); + } + + } + + protected Double _max; + /// + /// Gets or sets the techio max. + /// + [Column("MAX")] + + public Double Max + { + get + { + return _max; + } + + set + { + _max = value; RaisePropertyChanged(nameof(Max)); + } + + } + + /// + /// Initializes a new instance of the class. + /// + public TechIo() : base() + { + } + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/IOType.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/IOType.cs new file mode 100644 index 000000000..c13f4cca8 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/IOType.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.Integration.Observables.Enumerations +{ + public enum IOType + { + DigitalOutput, + DigitalInput, + AnalogOut, + AnalogInput, + PWM, + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/TechIos.cs b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/TechIos.cs new file mode 100644 index 000000000..301448c28 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/Enumerations/TechIos.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.ComponentModel; + +namespace Tango.Integration.Observables +{ + public enum TechIos + { + + /// + /// (Digital Out 1) + /// + [Description("Digital Out 1")] + PIN0 = 0, + + /// + /// (Digital Out 2) + /// + [Description("Digital Out 2")] + PIN1 = 1, + + } +} diff --git a/Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/LiquidTypeExtensions.cs b/Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/LiquidTypeExtensions.cs new file mode 100644 index 000000000..89d71d148 --- /dev/null +++ b/Software/Visual_Studio/Tango.Integration/Observables/ExtensionMethods/LiquidTypeExtensions.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.PMR.ColorLab; +using Tango.Integration.Observables; + +public static class LiquidTypeExtensions +{ + public static Tango.PMR.ColorLab.LiquidType ToColorLibLiquidType(this Tango.Integration.Observables.LiquidType liquidType) + { + return (Tango.PMR.ColorLab.LiquidType)liquidType.Code; + } +} diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/InputCoordinates.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/InputCoordinates.cs new file mode 100644 index 000000000..943b01ed1 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/ColorLab/InputCoordinates.cs @@ -0,0 +1,492 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InputCoordinates.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.ColorLab { + + /// Holder for reflection information generated from InputCoordinates.proto + public static partial class InputCoordinatesReflection { + + #region Descriptor + /// File descriptor for InputCoordinates.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InputCoordinatesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChZJbnB1dENvb3JkaW5hdGVzLnByb3RvEhJUYW5nby5QTVIuQ29sb3JMYWIa", + "EUlucHV0TGlxdWlkLnByb3RvIvQBChBJbnB1dENvb3JkaW5hdGVzEg4KBkxl", + "bmd0aBgBIAEoARILCgNSZWQYAiABKAUSDQoFR3JlZW4YAyABKAUSDAoEQmx1", + "ZRgEIAEoBRIMCgRDeWFuGAUgASgBEg8KB01hZ2VudGEYBiABKAESDgoGWWVs", + "bG93GAcgASgBEgsKA0tleRgIIAEoARIJCgFMGAkgASgBEgkKAUEYCiABKAES", + "CQoBQhgLIAEoARISCgpQYW50b25Db2RlGAwgASgFEjUKDElucHV0TGlxdWlk", + "cxgNIAMoCzIfLlRhbmdvLlBNUi5Db2xvckxhYi5JbnB1dExpcXVpZEIeChxj", + "b20udHdpbmUudGFuZ28ucG1yLmNvbG9ybGFiYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Tango.PMR.ColorLab.InputLiquidReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.InputCoordinates), global::Tango.PMR.ColorLab.InputCoordinates.Parser, new[]{ "Length", "Red", "Green", "Blue", "Cyan", "Magenta", "Yellow", "Key", "L", "A", "B", "PantonCode", "InputLiquids" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class InputCoordinates : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InputCoordinates()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.ColorLab.InputCoordinatesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InputCoordinates() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InputCoordinates(InputCoordinates other) : this() { + length_ = other.length_; + red_ = other.red_; + green_ = other.green_; + blue_ = other.blue_; + cyan_ = other.cyan_; + magenta_ = other.magenta_; + yellow_ = other.yellow_; + key_ = other.key_; + l_ = other.l_; + a_ = other.a_; + b_ = other.b_; + pantonCode_ = other.pantonCode_; + inputLiquids_ = other.inputLiquids_.Clone(); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InputCoordinates Clone() { + return new InputCoordinates(this); + } + + /// Field number for the "Length" field. + public const int LengthFieldNumber = 1; + private double length_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Length { + get { return length_; } + set { + length_ = value; + } + } + + /// Field number for the "Red" field. + public const int RedFieldNumber = 2; + private int red_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Red { + get { return red_; } + set { + red_ = value; + } + } + + /// Field number for the "Green" field. + public const int GreenFieldNumber = 3; + private int green_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Green { + get { return green_; } + set { + green_ = value; + } + } + + /// Field number for the "Blue" field. + public const int BlueFieldNumber = 4; + private int blue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Blue { + get { return blue_; } + set { + blue_ = value; + } + } + + /// Field number for the "Cyan" field. + public const int CyanFieldNumber = 5; + private double cyan_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Cyan { + get { return cyan_; } + set { + cyan_ = value; + } + } + + /// Field number for the "Magenta" field. + public const int MagentaFieldNumber = 6; + private double magenta_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Magenta { + get { return magenta_; } + set { + magenta_ = value; + } + } + + /// Field number for the "Yellow" field. + public const int YellowFieldNumber = 7; + private double yellow_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Yellow { + get { return yellow_; } + set { + yellow_ = value; + } + } + + /// Field number for the "Key" field. + public const int KeyFieldNumber = 8; + private double key_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Key { + get { return key_; } + set { + key_ = value; + } + } + + /// Field number for the "L" field. + public const int LFieldNumber = 9; + private double l_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double L { + get { return l_; } + set { + l_ = value; + } + } + + /// Field number for the "A" field. + public const int AFieldNumber = 10; + private double a_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double A { + get { return a_; } + set { + a_ = value; + } + } + + /// Field number for the "B" field. + public const int BFieldNumber = 11; + private double b_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double B { + get { return b_; } + set { + b_ = value; + } + } + + /// Field number for the "PantonCode" field. + public const int PantonCodeFieldNumber = 12; + private int pantonCode_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int PantonCode { + get { return pantonCode_; } + set { + pantonCode_ = value; + } + } + + /// Field number for the "InputLiquids" field. + public const int InputLiquidsFieldNumber = 13; + private static readonly pb::FieldCodec _repeated_inputLiquids_codec + = pb::FieldCodec.ForMessage(106, global::Tango.PMR.ColorLab.InputLiquid.Parser); + private readonly pbc::RepeatedField inputLiquids_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField InputLiquids { + get { return inputLiquids_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as InputCoordinates); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(InputCoordinates other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Length != other.Length) return false; + if (Red != other.Red) return false; + if (Green != other.Green) return false; + if (Blue != other.Blue) return false; + if (Cyan != other.Cyan) return false; + if (Magenta != other.Magenta) return false; + if (Yellow != other.Yellow) return false; + if (Key != other.Key) return false; + if (L != other.L) return false; + if (A != other.A) return false; + if (B != other.B) return false; + if (PantonCode != other.PantonCode) return false; + if(!inputLiquids_.Equals(other.inputLiquids_)) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Length != 0D) hash ^= Length.GetHashCode(); + if (Red != 0) hash ^= Red.GetHashCode(); + if (Green != 0) hash ^= Green.GetHashCode(); + if (Blue != 0) hash ^= Blue.GetHashCode(); + if (Cyan != 0D) hash ^= Cyan.GetHashCode(); + if (Magenta != 0D) hash ^= Magenta.GetHashCode(); + if (Yellow != 0D) hash ^= Yellow.GetHashCode(); + if (Key != 0D) hash ^= Key.GetHashCode(); + if (L != 0D) hash ^= L.GetHashCode(); + if (A != 0D) hash ^= A.GetHashCode(); + if (B != 0D) hash ^= B.GetHashCode(); + if (PantonCode != 0) hash ^= PantonCode.GetHashCode(); + hash ^= inputLiquids_.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Length != 0D) { + output.WriteRawTag(9); + output.WriteDouble(Length); + } + if (Red != 0) { + output.WriteRawTag(16); + output.WriteInt32(Red); + } + if (Green != 0) { + output.WriteRawTag(24); + output.WriteInt32(Green); + } + if (Blue != 0) { + output.WriteRawTag(32); + output.WriteInt32(Blue); + } + if (Cyan != 0D) { + output.WriteRawTag(41); + output.WriteDouble(Cyan); + } + if (Magenta != 0D) { + output.WriteRawTag(49); + output.WriteDouble(Magenta); + } + if (Yellow != 0D) { + output.WriteRawTag(57); + output.WriteDouble(Yellow); + } + if (Key != 0D) { + output.WriteRawTag(65); + output.WriteDouble(Key); + } + if (L != 0D) { + output.WriteRawTag(73); + output.WriteDouble(L); + } + if (A != 0D) { + output.WriteRawTag(81); + output.WriteDouble(A); + } + if (B != 0D) { + output.WriteRawTag(89); + output.WriteDouble(B); + } + if (PantonCode != 0) { + output.WriteRawTag(96); + output.WriteInt32(PantonCode); + } + inputLiquids_.WriteTo(output, _repeated_inputLiquids_codec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Length != 0D) { + size += 1 + 8; + } + if (Red != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Red); + } + if (Green != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Green); + } + if (Blue != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Blue); + } + if (Cyan != 0D) { + size += 1 + 8; + } + if (Magenta != 0D) { + size += 1 + 8; + } + if (Yellow != 0D) { + size += 1 + 8; + } + if (Key != 0D) { + size += 1 + 8; + } + if (L != 0D) { + size += 1 + 8; + } + if (A != 0D) { + size += 1 + 8; + } + if (B != 0D) { + size += 1 + 8; + } + if (PantonCode != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PantonCode); + } + size += inputLiquids_.CalculateSize(_repeated_inputLiquids_codec); + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(InputCoordinates other) { + if (other == null) { + return; + } + if (other.Length != 0D) { + Length = other.Length; + } + if (other.Red != 0) { + Red = other.Red; + } + if (other.Green != 0) { + Green = other.Green; + } + if (other.Blue != 0) { + Blue = other.Blue; + } + if (other.Cyan != 0D) { + Cyan = other.Cyan; + } + if (other.Magenta != 0D) { + Magenta = other.Magenta; + } + if (other.Yellow != 0D) { + Yellow = other.Yellow; + } + if (other.Key != 0D) { + Key = other.Key; + } + if (other.L != 0D) { + L = other.L; + } + if (other.A != 0D) { + A = other.A; + } + if (other.B != 0D) { + B = other.B; + } + if (other.PantonCode != 0) { + PantonCode = other.PantonCode; + } + inputLiquids_.Add(other.inputLiquids_); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 9: { + Length = input.ReadDouble(); + break; + } + case 16: { + Red = input.ReadInt32(); + break; + } + case 24: { + Green = input.ReadInt32(); + break; + } + case 32: { + Blue = input.ReadInt32(); + break; + } + case 41: { + Cyan = input.ReadDouble(); + break; + } + case 49: { + Magenta = input.ReadDouble(); + break; + } + case 57: { + Yellow = input.ReadDouble(); + break; + } + case 65: { + Key = input.ReadDouble(); + break; + } + case 73: { + L = input.ReadDouble(); + break; + } + case 81: { + A = input.ReadDouble(); + break; + } + case 89: { + B = input.ReadDouble(); + break; + } + case 96: { + PantonCode = input.ReadInt32(); + break; + } + case 106: { + inputLiquids_.AddEntriesFrom(input, _repeated_inputLiquids_codec); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/InputLiquid.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/InputLiquid.cs new file mode 100644 index 000000000..f45261825 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/ColorLab/InputLiquid.cs @@ -0,0 +1,253 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: InputLiquid.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.ColorLab { + + /// Holder for reflection information generated from InputLiquid.proto + public static partial class InputLiquidReflection { + + #region Descriptor + /// File descriptor for InputLiquid.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static InputLiquidReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChFJbnB1dExpcXVpZC5wcm90bxISVGFuZ28uUE1SLkNvbG9yTGFiGhBMaXF1", + "aWRUeXBlLnByb3RvGhVDYWxpYnJhdGlvbkRhdGEucHJvdG8isgEKC0lucHV0", + "TGlxdWlkEjIKCkxpcXVpZFR5cGUYASABKA4yHi5UYW5nby5QTVIuQ29sb3JM", + "YWIuTGlxdWlkVHlwZRI8Cg9DYWxpYnJhdGlvbkRhdGEYAiABKAsyIy5UYW5n", + "by5QTVIuQ29sb3JMYWIuQ2FsaWJyYXRpb25EYXRhEiEKGU1heE5hbm9saXRl", + "clBlckNlbnRpbWV0ZXIYAyABKAESDgoGVm9sdW1lGAQgASgBQh4KHGNvbS50", + "d2luZS50YW5nby5wbXIuY29sb3JsYWJiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Tango.PMR.ColorLab.LiquidTypeReflection.Descriptor, global::Tango.PMR.ColorLab.CalibrationDataReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.InputLiquid), global::Tango.PMR.ColorLab.InputLiquid.Parser, new[]{ "LiquidType", "CalibrationData", "MaxNanoliterPerCentimeter", "Volume" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class InputLiquid : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new InputLiquid()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.ColorLab.InputLiquidReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InputLiquid() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InputLiquid(InputLiquid other) : this() { + liquidType_ = other.liquidType_; + CalibrationData = other.calibrationData_ != null ? other.CalibrationData.Clone() : null; + maxNanoliterPerCentimeter_ = other.maxNanoliterPerCentimeter_; + volume_ = other.volume_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public InputLiquid Clone() { + return new InputLiquid(this); + } + + /// Field number for the "LiquidType" field. + public const int LiquidTypeFieldNumber = 1; + private global::Tango.PMR.ColorLab.LiquidType liquidType_ = 0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tango.PMR.ColorLab.LiquidType LiquidType { + get { return liquidType_; } + set { + liquidType_ = value; + } + } + + /// Field number for the "CalibrationData" field. + public const int CalibrationDataFieldNumber = 2; + private global::Tango.PMR.ColorLab.CalibrationData calibrationData_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tango.PMR.ColorLab.CalibrationData CalibrationData { + get { return calibrationData_; } + set { + calibrationData_ = value; + } + } + + /// Field number for the "MaxNanoliterPerCentimeter" field. + public const int MaxNanoliterPerCentimeterFieldNumber = 3; + private double maxNanoliterPerCentimeter_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double MaxNanoliterPerCentimeter { + get { return maxNanoliterPerCentimeter_; } + set { + maxNanoliterPerCentimeter_ = value; + } + } + + /// Field number for the "Volume" field. + public const int VolumeFieldNumber = 4; + private double volume_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Volume { + get { return volume_; } + set { + volume_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as InputLiquid); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(InputLiquid other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LiquidType != other.LiquidType) return false; + if (!object.Equals(CalibrationData, other.CalibrationData)) return false; + if (MaxNanoliterPerCentimeter != other.MaxNanoliterPerCentimeter) return false; + if (Volume != other.Volume) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (LiquidType != 0) hash ^= LiquidType.GetHashCode(); + if (calibrationData_ != null) hash ^= CalibrationData.GetHashCode(); + if (MaxNanoliterPerCentimeter != 0D) hash ^= MaxNanoliterPerCentimeter.GetHashCode(); + if (Volume != 0D) hash ^= Volume.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (LiquidType != 0) { + output.WriteRawTag(8); + output.WriteEnum((int) LiquidType); + } + if (calibrationData_ != null) { + output.WriteRawTag(18); + output.WriteMessage(CalibrationData); + } + if (MaxNanoliterPerCentimeter != 0D) { + output.WriteRawTag(25); + output.WriteDouble(MaxNanoliterPerCentimeter); + } + if (Volume != 0D) { + output.WriteRawTag(33); + output.WriteDouble(Volume); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (LiquidType != 0) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LiquidType); + } + if (calibrationData_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CalibrationData); + } + if (MaxNanoliterPerCentimeter != 0D) { + size += 1 + 8; + } + if (Volume != 0D) { + size += 1 + 8; + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(InputLiquid other) { + if (other == null) { + return; + } + if (other.LiquidType != 0) { + LiquidType = other.LiquidType; + } + if (other.calibrationData_ != null) { + if (calibrationData_ == null) { + calibrationData_ = new global::Tango.PMR.ColorLab.CalibrationData(); + } + CalibrationData.MergeFrom(other.CalibrationData); + } + if (other.MaxNanoliterPerCentimeter != 0D) { + MaxNanoliterPerCentimeter = other.MaxNanoliterPerCentimeter; + } + if (other.Volume != 0D) { + Volume = other.Volume; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + liquidType_ = (global::Tango.PMR.ColorLab.LiquidType) input.ReadEnum(); + break; + } + case 18: { + if (calibrationData_ == null) { + calibrationData_ = new global::Tango.PMR.ColorLab.CalibrationData(); + } + input.ReadMessage(calibrationData_); + break; + } + case 25: { + MaxNanoliterPerCentimeter = input.ReadDouble(); + break; + } + case 33: { + Volume = input.ReadDouble(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/LiquidType.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/LiquidType.cs new file mode 100644 index 000000000..e0465307b --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/ColorLab/LiquidType.cs @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: LiquidType.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.ColorLab { + + /// Holder for reflection information generated from LiquidType.proto + public static partial class LiquidTypeReflection { + + #region Descriptor + /// File descriptor for LiquidType.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static LiquidTypeReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBMaXF1aWRUeXBlLnByb3RvEhJUYW5nby5QTVIuQ29sb3JMYWIqTgoKTGlx", + "dWlkVHlwZRIICgRDeWFuEAASCwoHTWFnZW50YRABEgoKBlllbGxvdxACEgkK", + "BUJsYWNrEAMSEgoOVHJhbnNwYXJlbnRJbmsQBEIeChxjb20udHdpbmUudGFu", + "Z28ucG1yLmNvbG9ybGFiYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Tango.PMR.ColorLab.LiquidType), }, null)); + } + #endregion + + } + #region Enums + public enum LiquidType { + [pbr::OriginalName("Cyan")] Cyan = 0, + [pbr::OriginalName("Magenta")] Magenta = 1, + [pbr::OriginalName("Yellow")] Yellow = 2, + [pbr::OriginalName("Black")] Black = 3, + [pbr::OriginalName("TransparentInk")] TransparentInk = 4, + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/OutputCoordinates.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/OutputCoordinates.cs new file mode 100644 index 000000000..b43aa9f29 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/ColorLab/OutputCoordinates.cs @@ -0,0 +1,266 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: OutputCoordinates.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.ColorLab { + + /// Holder for reflection information generated from OutputCoordinates.proto + public static partial class OutputCoordinatesReflection { + + #region Descriptor + /// File descriptor for OutputCoordinates.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static OutputCoordinatesReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChdPdXRwdXRDb29yZGluYXRlcy5wcm90bxISVGFuZ28uUE1SLkNvbG9yTGFi", + "GhJPdXRwdXRMaXF1aWQucHJvdG8imwEKEU91dHB1dENvb3JkaW5hdGVzEgsK", + "A1JlZBgBIAEoBRINCgVHcmVlbhgCIAEoBRIMCgRCbHVlGAMgASgFEjcKDU91", + "dHB1dExpcXVpZHMYBCADKAsyIC5UYW5nby5QTVIuQ29sb3JMYWIuT3V0cHV0", + "TGlxdWlkEiMKG1Byb2Nlc3NQYXJhbWV0ZXJzVGFibGVJbmRleBgFIAEoBUIe", + "Chxjb20udHdpbmUudGFuZ28ucG1yLmNvbG9ybGFiYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Tango.PMR.ColorLab.OutputLiquidReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.OutputCoordinates), global::Tango.PMR.ColorLab.OutputCoordinates.Parser, new[]{ "Red", "Green", "Blue", "OutputLiquids", "ProcessParametersTableIndex" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class OutputCoordinates : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OutputCoordinates()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.ColorLab.OutputCoordinatesReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OutputCoordinates() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OutputCoordinates(OutputCoordinates other) : this() { + red_ = other.red_; + green_ = other.green_; + blue_ = other.blue_; + outputLiquids_ = other.outputLiquids_.Clone(); + processParametersTableIndex_ = other.processParametersTableIndex_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OutputCoordinates Clone() { + return new OutputCoordinates(this); + } + + /// Field number for the "Red" field. + public const int RedFieldNumber = 1; + private int red_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Red { + get { return red_; } + set { + red_ = value; + } + } + + /// Field number for the "Green" field. + public const int GreenFieldNumber = 2; + private int green_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Green { + get { return green_; } + set { + green_ = value; + } + } + + /// Field number for the "Blue" field. + public const int BlueFieldNumber = 3; + private int blue_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Blue { + get { return blue_; } + set { + blue_ = value; + } + } + + /// Field number for the "OutputLiquids" field. + public const int OutputLiquidsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_outputLiquids_codec + = pb::FieldCodec.ForMessage(34, global::Tango.PMR.ColorLab.OutputLiquid.Parser); + private readonly pbc::RepeatedField outputLiquids_ = new pbc::RepeatedField(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public pbc::RepeatedField OutputLiquids { + get { return outputLiquids_; } + } + + /// Field number for the "ProcessParametersTableIndex" field. + public const int ProcessParametersTableIndexFieldNumber = 5; + private int processParametersTableIndex_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int ProcessParametersTableIndex { + get { return processParametersTableIndex_; } + set { + processParametersTableIndex_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as OutputCoordinates); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(OutputCoordinates other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Red != other.Red) return false; + if (Green != other.Green) return false; + if (Blue != other.Blue) return false; + if(!outputLiquids_.Equals(other.outputLiquids_)) return false; + if (ProcessParametersTableIndex != other.ProcessParametersTableIndex) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Red != 0) hash ^= Red.GetHashCode(); + if (Green != 0) hash ^= Green.GetHashCode(); + if (Blue != 0) hash ^= Blue.GetHashCode(); + hash ^= outputLiquids_.GetHashCode(); + if (ProcessParametersTableIndex != 0) hash ^= ProcessParametersTableIndex.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Red != 0) { + output.WriteRawTag(8); + output.WriteInt32(Red); + } + if (Green != 0) { + output.WriteRawTag(16); + output.WriteInt32(Green); + } + if (Blue != 0) { + output.WriteRawTag(24); + output.WriteInt32(Blue); + } + outputLiquids_.WriteTo(output, _repeated_outputLiquids_codec); + if (ProcessParametersTableIndex != 0) { + output.WriteRawTag(40); + output.WriteInt32(ProcessParametersTableIndex); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Red != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Red); + } + if (Green != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Green); + } + if (Blue != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Blue); + } + size += outputLiquids_.CalculateSize(_repeated_outputLiquids_codec); + if (ProcessParametersTableIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProcessParametersTableIndex); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(OutputCoordinates other) { + if (other == null) { + return; + } + if (other.Red != 0) { + Red = other.Red; + } + if (other.Green != 0) { + Green = other.Green; + } + if (other.Blue != 0) { + Blue = other.Blue; + } + outputLiquids_.Add(other.outputLiquids_); + if (other.ProcessParametersTableIndex != 0) { + ProcessParametersTableIndex = other.ProcessParametersTableIndex; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + Red = input.ReadInt32(); + break; + } + case 16: { + Green = input.ReadInt32(); + break; + } + case 24: { + Blue = input.ReadInt32(); + break; + } + case 34: { + outputLiquids_.AddEntriesFrom(input, _repeated_outputLiquids_codec); + break; + } + case 40: { + ProcessParametersTableIndex = input.ReadInt32(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/ColorLab/OutputLiquid.cs b/Software/Visual_Studio/Tango.PMR/ColorLab/OutputLiquid.cs new file mode 100644 index 000000000..9944790ad --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/ColorLab/OutputLiquid.cs @@ -0,0 +1,189 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: OutputLiquid.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.ColorLab { + + /// Holder for reflection information generated from OutputLiquid.proto + public static partial class OutputLiquidReflection { + + #region Descriptor + /// File descriptor for OutputLiquid.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static OutputLiquidReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChJPdXRwdXRMaXF1aWQucHJvdG8SElRhbmdvLlBNUi5Db2xvckxhYhoQTGlx", + "dWlkVHlwZS5wcm90byJSCgxPdXRwdXRMaXF1aWQSMgoKTGlxdWlkVHlwZRgB", + "IAEoDjIeLlRhbmdvLlBNUi5Db2xvckxhYi5MaXF1aWRUeXBlEg4KBlZvbHVt", + "ZRgEIAEoAUIeChxjb20udHdpbmUudGFuZ28ucG1yLmNvbG9ybGFiYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Tango.PMR.ColorLab.LiquidTypeReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.ColorLab.OutputLiquid), global::Tango.PMR.ColorLab.OutputLiquid.Parser, new[]{ "LiquidType", "Volume" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class OutputLiquid : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OutputLiquid()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.ColorLab.OutputLiquidReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OutputLiquid() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OutputLiquid(OutputLiquid other) : this() { + liquidType_ = other.liquidType_; + volume_ = other.volume_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public OutputLiquid Clone() { + return new OutputLiquid(this); + } + + /// Field number for the "LiquidType" field. + public const int LiquidTypeFieldNumber = 1; + private global::Tango.PMR.ColorLab.LiquidType liquidType_ = 0; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public global::Tango.PMR.ColorLab.LiquidType LiquidType { + get { return liquidType_; } + set { + liquidType_ = value; + } + } + + /// Field number for the "Volume" field. + public const int VolumeFieldNumber = 4; + private double volume_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public double Volume { + get { return volume_; } + set { + volume_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as OutputLiquid); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(OutputLiquid other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (LiquidType != other.LiquidType) return false; + if (Volume != other.Volume) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (LiquidType != 0) hash ^= LiquidType.GetHashCode(); + if (Volume != 0D) hash ^= Volume.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (LiquidType != 0) { + output.WriteRawTag(8); + output.WriteEnum((int) LiquidType); + } + if (Volume != 0D) { + output.WriteRawTag(33); + output.WriteDouble(Volume); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (LiquidType != 0) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LiquidType); + } + if (Volume != 0D) { + size += 1 + 8; + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(OutputLiquid other) { + if (other == null) { + return; + } + if (other.LiquidType != 0) { + LiquidType = other.LiquidType; + } + if (other.Volume != 0D) { + Volume = other.Volume; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + liquidType_ = (global::Tango.PMR.ColorLab.LiquidType) input.ReadEnum(); + break; + } + case 33: { + Volume = input.ReadDouble(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/Diagnostics/DigitalPin.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/DigitalPin.cs new file mode 100644 index 000000000..f5bdb949a --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/DigitalPin.cs @@ -0,0 +1,187 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: DigitalPin.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.Diagnostics { + + /// Holder for reflection information generated from DigitalPin.proto + public static partial class DigitalPinReflection { + + #region Descriptor + /// File descriptor for DigitalPin.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static DigitalPinReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChBEaWdpdGFsUGluLnByb3RvEhVUYW5nby5QTVIuRGlhZ25vc3RpY3MiKQoK", + "RGlnaXRhbFBpbhIMCgRQb3J0GAEgASgFEg0KBVZhbHVlGAIgASgIQiEKH2Nv", + "bS50d2luZS50YW5nby5wbXIuZGlhZ25vc3RpY3NiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.DigitalPin), global::Tango.PMR.Diagnostics.DigitalPin.Parser, new[]{ "Port", "Value" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class DigitalPin : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DigitalPin()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.Diagnostics.DigitalPinReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DigitalPin() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DigitalPin(DigitalPin other) : this() { + port_ = other.port_; + value_ = other.value_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public DigitalPin Clone() { + return new DigitalPin(this); + } + + /// Field number for the "Port" field. + public const int PortFieldNumber = 1; + private int port_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Port { + get { return port_; } + set { + port_ = value; + } + } + + /// Field number for the "Value" field. + public const int ValueFieldNumber = 2; + private bool value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Value { + get { return value_; } + set { + value_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as DigitalPin); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(DigitalPin other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Port != other.Port) return false; + if (Value != other.Value) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Port != 0) hash ^= Port.GetHashCode(); + if (Value != false) hash ^= Value.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Port != 0) { + output.WriteRawTag(8); + output.WriteInt32(Port); + } + if (Value != false) { + output.WriteRawTag(16); + output.WriteBool(Value); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Port != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); + } + if (Value != false) { + size += 1 + 1; + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(DigitalPin other) { + if (other == null) { + return; + } + if (other.Port != 0) { + Port = other.Port; + } + if (other.Value != false) { + Value = other.Value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + Port = input.ReadInt32(); + break; + } + case 16: { + Value = input.ReadBool(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/Diagnostics/SetDigitalOutRequest.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/SetDigitalOutRequest.cs new file mode 100644 index 000000000..05e9fd067 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/SetDigitalOutRequest.cs @@ -0,0 +1,188 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetDigitalOutRequest.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.Diagnostics { + + /// Holder for reflection information generated from SetDigitalOutRequest.proto + public static partial class SetDigitalOutRequestReflection { + + #region Descriptor + /// File descriptor for SetDigitalOutRequest.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetDigitalOutRequestReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChpTZXREaWdpdGFsT3V0UmVxdWVzdC5wcm90bxIVVGFuZ28uUE1SLkRpYWdu", + "b3N0aWNzIjMKFFNldERpZ2l0YWxPdXRSZXF1ZXN0EgwKBFBvcnQYASABKAUS", + "DQoFVmFsdWUYAiABKAhCIQofY29tLnR3aW5lLnRhbmdvLnBtci5kaWFnbm9z", + "dGljc2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.SetDigitalOutRequest), global::Tango.PMR.Diagnostics.SetDigitalOutRequest.Parser, new[]{ "Port", "Value" }, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class SetDigitalOutRequest : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetDigitalOutRequest()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.Diagnostics.SetDigitalOutRequestReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetDigitalOutRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetDigitalOutRequest(SetDigitalOutRequest other) : this() { + port_ = other.port_; + value_ = other.value_; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetDigitalOutRequest Clone() { + return new SetDigitalOutRequest(this); + } + + /// Field number for the "Port" field. + public const int PortFieldNumber = 1; + private int port_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int Port { + get { return port_; } + set { + port_ = value; + } + } + + /// Field number for the "Value" field. + public const int ValueFieldNumber = 2; + private bool value_; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Value { + get { return value_; } + set { + value_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SetDigitalOutRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SetDigitalOutRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Port != other.Port) return false; + if (Value != other.Value) return false; + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + if (Port != 0) hash ^= Port.GetHashCode(); + if (Value != false) hash ^= Value.GetHashCode(); + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + if (Port != 0) { + output.WriteRawTag(8); + output.WriteInt32(Port); + } + if (Value != false) { + output.WriteRawTag(16); + output.WriteBool(Value); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + if (Port != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); + } + if (Value != false) { + size += 1 + 1; + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SetDigitalOutRequest other) { + if (other == null) { + return; + } + if (other.Port != 0) { + Port = other.Port; + } + if (other.Value != false) { + Value = other.Value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + case 8: { + Port = input.ReadInt32(); + break; + } + case 16: { + Value = input.ReadBool(); + break; + } + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/Software/Visual_Studio/Tango.PMR/Diagnostics/SetDigitalOutResponse.cs b/Software/Visual_Studio/Tango.PMR/Diagnostics/SetDigitalOutResponse.cs new file mode 100644 index 000000000..0d8233b94 --- /dev/null +++ b/Software/Visual_Studio/Tango.PMR/Diagnostics/SetDigitalOutResponse.cs @@ -0,0 +1,131 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: SetDigitalOutResponse.proto +#pragma warning disable 1591, 0612, 3021 +#region Designer generated code + +using pb = global::Google.Protobuf; +using pbc = global::Google.Protobuf.Collections; +using pbr = global::Google.Protobuf.Reflection; +using scg = global::System.Collections.Generic; +namespace Tango.PMR.Diagnostics { + + /// Holder for reflection information generated from SetDigitalOutResponse.proto + public static partial class SetDigitalOutResponseReflection { + + #region Descriptor + /// File descriptor for SetDigitalOutResponse.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static SetDigitalOutResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "ChtTZXREaWdpdGFsT3V0UmVzcG9uc2UucHJvdG8SFVRhbmdvLlBNUi5EaWFn", + "bm9zdGljcyIXChVTZXREaWdpdGFsT3V0UmVzcG9uc2VCIQofY29tLnR3aW5l", + "LnRhbmdvLnBtci5kaWFnbm9zdGljc2IGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Diagnostics.SetDigitalOutResponse), global::Tango.PMR.Diagnostics.SetDigitalOutResponse.Parser, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class SetDigitalOutResponse : pb::IMessage { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetDigitalOutResponse()); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pb::MessageParser Parser { get { return _parser; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public static pbr::MessageDescriptor Descriptor { + get { return global::Tango.PMR.Diagnostics.SetDigitalOutResponseReflection.Descriptor.MessageTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetDigitalOutResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetDigitalOutResponse(SetDigitalOutResponse other) : this() { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public SetDigitalOutResponse Clone() { + return new SetDigitalOutResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override bool Equals(object other) { + return Equals(other as SetDigitalOutResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public bool Equals(SetDigitalOutResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + return true; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override int GetHashCode() { + int hash = 1; + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void WriteTo(pb::CodedOutputStream output) { + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public int CalculateSize() { + int size = 0; + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(SetDigitalOutResponse other) { + if (other == null) { + return; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public void MergeFrom(pb::CodedInputStream input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + input.SkipLastField(); + break; + } + } + } + + } + + #endregion + +} + +#endregion Designer generated code -- cgit v1.3.1 From e4c917c43e90a4453c6cd5b1842a418dc0f1b514 Mon Sep 17 00:00:00 2001 From: Roy Date: Thu, 15 Feb 2018 00:29:13 +0200 Subject: Working on Data Capture Module.. --- Software/DB/Tango.mdf | Bin 75497472 -> 75497472 bytes Software/DB/Tango_log.ldf | Bin 8388608 -> 8388608 bytes .../Recording/DataRecording.cs | 23 +++++- .../Tango.MachineStudio.DataCapture.csproj | 7 ++ .../ViewModels/MainViewVM.cs | 83 ++++++++++++++------- .../Views/MainView.xaml | 5 +- .../Views/PlayingBarView.xaml | 53 +++++++++++++ .../Views/PlayingBarView.xaml.cs | 28 +++++++ .../ViewModels/MainViewVM.cs | 31 +++++--- .../Notifications/BarItem.cs | 5 ++ .../Diagnostics/DiagnosticsFilePlayer.cs | 7 +- 11 files changed, 195 insertions(+), 47 deletions(-) create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/PlayingBarView.xaml create mode 100644 Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/PlayingBarView.xaml.cs (limited to 'Software/Visual_Studio') diff --git a/Software/DB/Tango.mdf b/Software/DB/Tango.mdf index da65c19c8..11640e60d 100644 Binary files a/Software/DB/Tango.mdf and b/Software/DB/Tango.mdf differ diff --git a/Software/DB/Tango_log.ldf b/Software/DB/Tango_log.ldf index c6adffec8..ecbb1e3f1 100644 Binary files a/Software/DB/Tango_log.ldf and b/Software/DB/Tango_log.ldf differ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Recording/DataRecording.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Recording/DataRecording.cs index a191c244e..ddf24e113 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Recording/DataRecording.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Recording/DataRecording.cs @@ -1,14 +1,31 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.Core; +using Tango.Integration.Diagnostics; namespace Tango.MachineStudio.DataCapture.Recording { public class DataRecording : ExtendedObject { + public DataRecording() + { + Date = DateTime.Now; + } + + public DataRecording(String filePath) : this() + { + FilePath = filePath; + } + + public DataRecording(String filePath, DateTime date) : this(filePath) + { + Date = date; + } + private DateTime _date; public DateTime Date @@ -17,12 +34,9 @@ namespace Tango.MachineStudio.DataCapture.Recording set { _date = value; RaisePropertyChangedAuto(); } } - private String _name; - public String Name { - get { return _name; } - set { _name = value; RaisePropertyChangedAuto(); } + get { return Path.GetFileNameWithoutExtension(FilePath); } } private String _file; @@ -33,5 +47,6 @@ namespace Tango.MachineStudio.DataCapture.Recording set { _file = value; RaisePropertyChangedAuto(); } } + public DiagnosticsFilePlayer Player { get; set; } } } diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Tango.MachineStudio.DataCapture.csproj b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Tango.MachineStudio.DataCapture.csproj index 1c13be809..8936a66db 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Tango.MachineStudio.DataCapture.csproj +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Tango.MachineStudio.DataCapture.csproj @@ -81,6 +81,9 @@ GlobalVersionInfo.cs + + PlayingBarView.xaml + RecordingBarView.xaml @@ -88,6 +91,10 @@ Designer MSBuild:Compile + + MSBuild:Compile + Designer + Designer MSBuild:Compile diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/ViewModels/MainViewVM.cs index b63ee51d0..269007dac 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/ViewModels/MainViewVM.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Linq; +using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using System.Windows.Controls; @@ -32,6 +33,8 @@ namespace Tango.MachineStudio.DataCapture.ViewModels private IStudioApplicationManager _applicationManager; private IDiagnosticsFrameProvider _frameProvider; private String _recordingsFolder; + private BarItem _recordingBarItem; + private BarItem _playerBarItem; #region Properties @@ -52,7 +55,7 @@ namespace Tango.MachineStudio.DataCapture.ViewModels public DataRecording SelectedRecording { get { return _selectedRecording; } - set { _selectedRecording = value; RaisePropertyChangedAuto(); } + set { _selectedRecording = value; RaisePropertyChangedAuto(); InvalidateRelayCommands(); } } /// @@ -140,35 +143,29 @@ namespace Tango.MachineStudio.DataCapture.ViewModels ToggleCameraCommand = new RelayCommand(ToggleCamera); - Recordings.Add(new DataRecording() - { - Name = "Recording 1" - }); - Recordings.Add(new DataRecording() - { - Name = "Recording 2" - }); - Recordings.Add(new DataRecording() - { - Name = "Recording 3" - }); - RemoveRecordingCommand = new RelayCommand(RemoveRecording); MediaRecordingCommand = new RelayCommand(StartDiagnosticsRecording, () => !Recorder.IsRecording && MachineOperator != null && !Player.IsPlaying); MediaStopCommand = new RelayCommand(StopRecorderOrPlayer, () => Recorder.IsRecording || Player.IsPlaying); - MediaPlayPauseCommand = new RelayCommand(DiagnosticsTogglePlayPause, () => !Recorder.IsRecording && Player.IsLoaded); + MediaPlayPauseCommand = new RelayCommand(DiagnosticsTogglePlayPause, () => !Recorder.IsRecording && SelectedRecording != null); _recordingsFolder = Path.Combine(SettingsManager.DefaultFolder, "Recordings"); Directory.CreateDirectory(_recordingsFolder); _frameProvider.FrameReceived += _frameProvider_FrameReceived; - _notification.PushBarItem(new RecordingBarView() { DataContext = this }); - applicationManager.ConnectedMachineChanged += ApplicationManager_ConnectedMachineChanged; + + _recordingBarItem = new BarItem(_notification, new RecordingBarView() { DataContext = this }); + _playerBarItem = new BarItem(_notification, new PlayingBarView() { DataContext = this }); + + LoadRecordings(); } + #endregion + + #region Event Handlers + private void ApplicationManager_ConnectedMachineChanged(object sender, Integration.Services.IExternalBridgeClient machine) { MachineOperator = machine; @@ -186,10 +183,19 @@ namespace Tango.MachineStudio.DataCapture.ViewModels } } + #endregion #region Private Methods + private void LoadRecordings() + { + foreach (var file in Directory.GetFiles(_recordingsFolder, "*.tdr")) + { + Recordings.Add(new DataRecording(file, File.GetCreationTime(file))); + } + } + /// /// Removes the recording. /// @@ -211,11 +217,28 @@ namespace Tango.MachineStudio.DataCapture.ViewModels } } - private void DiagnosticsTogglePlayPause() + private async void DiagnosticsTogglePlayPause() { if (!Player.IsPlaying || Player.IsPaused) { _frameProvider.Disable = true; + + if (SelectedRecording.Player == null) + { + using (_notification.PushTaskItem("Loading Recording...")) + { + SelectedRecording.Player = new DiagnosticsFilePlayer(); + await SelectedRecording.Player.Load(SelectedRecording.FilePath); + } + } + + RegisterPlayer(SelectedRecording.Player); + + if (!Player.IsPlaying) + { + _playerBarItem.Push(); + } + Player.Play(); } else @@ -226,21 +249,21 @@ namespace Tango.MachineStudio.DataCapture.ViewModels InvalidateRelayCommands(); } - private async void LoadSelectedRecording() + private void RegisterPlayer(DiagnosticsFilePlayer player) { - using (_notification.PushTaskItem("Loading Recording...")) + foreach (var recording in Recordings) { - if (Player != null) + if (recording.Player != null) { - Player.Dispose(); + recording.Player.FrameReceived -= Player_FrameReceived; } + } - Player = new DiagnosticsFilePlayer(); + if (player != null) + { + Player = player; Player.FrameReceived += Player_FrameReceived; - await Player.Load(SelectedRecording.FilePath); } - - InvalidateRelayCommands(); } private void Player_FrameReceived(object sender, DataFileFrame frame) @@ -256,6 +279,8 @@ namespace Tango.MachineStudio.DataCapture.ViewModels using (_notification.PushTaskItem("Starting Recording...")) { Recorder.Start(); + + _recordingBarItem.Push(); } InvalidateRelayCommands(); @@ -268,6 +293,7 @@ namespace Tango.MachineStudio.DataCapture.ViewModels using (_notification.PushTaskItem("Stopping Recording...")) { await Recorder.Stop(); + _recordingBarItem.Pop(); } String recordingName = _notification.ShowTextInput("Enter recording name", "Recording name"); @@ -276,7 +302,9 @@ namespace Tango.MachineStudio.DataCapture.ViewModels { using (_notification.PushTaskItem("Saving Recording...")) { - await Recorder.Save(Path.Combine(_recordingsFolder, recordingName + ".tdr")); + String filePath = Path.Combine(_recordingsFolder, recordingName + ".tdr"); + await Recorder.Save(filePath); + Recordings.Insert(0, new DataRecording(filePath)); } } @@ -287,6 +315,7 @@ namespace Tango.MachineStudio.DataCapture.ViewModels { await Player.Stop(); _frameProvider.Disable = false; + _playerBarItem.Pop(); } InvalidateRelayCommands(); diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/MainView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/MainView.xaml index 74addf942..72f7da03d 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/MainView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/MainView.xaml @@ -17,6 +17,7 @@ + @@ -38,7 +39,7 @@ - + @@ -50,7 +51,7 @@ - + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/PlayingBarView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/PlayingBarView.xaml new file mode 100644 index 000000000..3e76ce6ef --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/PlayingBarView.xaml @@ -0,0 +1,53 @@ + + + + + + + + / + + + + + + + + + + + + + diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/PlayingBarView.xaml.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/PlayingBarView.xaml.cs new file mode 100644 index 000000000..f9e502f8b --- /dev/null +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.DataCapture/Views/PlayingBarView.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Tango.MachineStudio.DataCapture.Views +{ + /// + /// Interaction logic for RecordingBarView.xaml + /// + public partial class PlayingBarView : UserControl + { + public PlayingBarView() + { + InitializeComponent(); + } + } +} diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs index 148e4375c..10c35b3b9 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Developer/ViewModels/MainViewVM.cs @@ -29,6 +29,7 @@ using Tango.Integration.Printing; using Tango.Integration.Diagnostics; using Microsoft.Win32; using Tango.MachineStudio.Technician.ViewModels; +using Tango.MachineStudio.Common.Diagnostics; namespace Tango.MachineStudio.Developer.ViewModels { @@ -496,10 +497,11 @@ namespace Tango.MachineStudio.Developer.ViewModels /// The application manager. /// The notification provider. [PreferredConstructor] - public MainViewVM(IStudioApplicationManager applicationManager, INotificationProvider notificationProvider, IMainView view) : this(view) + public MainViewVM(IStudioApplicationManager applicationManager, INotificationProvider notificationProvider, IMainView view, IDiagnosticsFrameProvider diagnosticsFrameProvider) : this(view) { _notification = notificationProvider; ApplicationManager = applicationManager; + diagnosticsFrameProvider.FrameReceived += DiagnosticsFrameProvider_FrameReceived; //Initialize Commands... EditMachineCommand = new RelayCommand(EditMachine, () => SelectedMachine != null); @@ -520,8 +522,8 @@ namespace Tango.MachineStudio.Developer.ViewModels ExitFullScreenCommand = new RelayCommand(ExitFullScreen); MediaRecordingCommand = new RelayCommand(StartDiagnosticsRecording, () => !Recorder.IsRecording && MachineOperator != null && !Player.IsPlaying); MediaStopCommand = new RelayCommand(StopRecorderOrPlayer, () => Recorder.IsRecording || Player.IsPlaying); - MediaLoadCommand = new RelayCommand(LoadDiagnosticsRecordingFile,() => !Recorder.IsRecording && !Player.IsPlaying); - MediaPlayPauseCommand = new RelayCommand(DiagnosticsTogglePlayPause,() => !Recorder.IsRecording && Player.IsLoaded); + MediaLoadCommand = new RelayCommand(LoadDiagnosticsRecordingFile, () => !Recorder.IsRecording && !Player.IsPlaying); + MediaPlayPauseCommand = new RelayCommand(DiagnosticsTogglePlayPause, () => !Recorder.IsRecording && Player.IsLoaded); CaptureDevices = new ObservableCollection(); var availableDevices = CaptureDevice.GetAvailableCaptureDevices(); @@ -549,6 +551,11 @@ namespace Tango.MachineStudio.Developer.ViewModels #region Event Handlers + private void DiagnosticsFrameProvider_FrameReceived(object sender, PushDiagnosticsResponse response) + { + PopulateDiagnosticsData(response); + } + private void Player_FrameReceived(object sender, DataFileFrame frame) { PopulateDiagnosticsData(frame.PushDiagnosticsResponse); @@ -567,15 +574,15 @@ namespace Tango.MachineStudio.Developer.ViewModels private void MachineOperator_DiagnosticsDataAvailable(object sender, PushDiagnosticsResponse response) { - if (Recorder.IsRecording) - { - Recorder.Write(response); - } + //if (Recorder.IsRecording) + //{ + // Recorder.Write(response); + //} - if (!Player.IsPlaying) - { - PopulateDiagnosticsData(response); - } + //if (!Player.IsPlaying) + //{ + // PopulateDiagnosticsData(response); + //} } /// @@ -1085,7 +1092,7 @@ namespace Tango.MachineStudio.Developer.ViewModels if (SelectedBrushStop != null && SelectedSegment != null) { SelectedSegment.BrushStops.Remove(SelectedBrushStop); - + if (SelectedSegment.BrushStops.Count > 1) { SelectedSegment.BrushStops.Last().OffsetPercent = 100; diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Notifications/BarItem.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Notifications/BarItem.cs index 8d3cefa40..d46bf5b5d 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Notifications/BarItem.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Notifications/BarItem.cs @@ -19,6 +19,11 @@ namespace Tango.MachineStudio.Common.Notifications _notificationProvider = notificationProvider; } + public BarItem(INotificationProvider notificationProvider, FrameworkElement element) : this(notificationProvider) + { + Element = element; + } + /// /// Removed this item from the queue. /// diff --git a/Software/Visual_Studio/Tango.Integration/Diagnostics/DiagnosticsFilePlayer.cs b/Software/Visual_Studio/Tango.Integration/Diagnostics/DiagnosticsFilePlayer.cs index 7e5927648..1900e49e1 100644 --- a/Software/Visual_Studio/Tango.Integration/Diagnostics/DiagnosticsFilePlayer.cs +++ b/Software/Visual_Studio/Tango.Integration/Diagnostics/DiagnosticsFilePlayer.cs @@ -122,9 +122,9 @@ namespace Tango.Integration.Diagnostics /// /// Absolute file path. /// - public Task Load(String fileName) + public async Task Load(String fileName) { - return Task.Factory.StartNew(() => + Task task = new Task(() => { try { @@ -161,6 +161,9 @@ namespace Tango.Integration.Diagnostics throw LogManager.Log(ex); } }); + + task.Start(); + await task; } /// -- cgit v1.3.1