This commit is contained in:
2026-04-17 14:55:32 -04:00
commit bc3ac1d4c9
18017 changed files with 4371742 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using DTS.Common.Interface.Channels;
using Prism.Events;
namespace DTS.Common.Events.Groups.GroupChannelList
{
public class GroupChannelDeleteRequestEvent : PubSubEvent<GroupChannelDeleteRequestEventArgs> { }
public class GroupChannelDeleteRequestEventArgs
{
public object Page { get; }
public IGroupChannel Channel { get; }
public GroupChannelDeleteRequestEventArgs(object page, IGroupChannel channel)
{
Page = page;
Channel = channel;
}
}
}

View File

@@ -0,0 +1,75 @@
using System;
namespace DTS.Common.Interface.GroupTemplate
{
public interface ITestObjectTemplate
{
/// <summary>
/// name of the test object template, this could be a GUID in the case of embedded test object templates
/// </summary>
string TemplateName { get; set; }
/// <summary>
/// a human readable name for the template, for an embedded template this is the original template name, for
/// a non embedded template, this is the template name (embedded templates have guids for names)
/// </summary>
string TemplateNameOrOriginalTemplateName { get; }
/// <summary>
/// the icon for the template
/// </summary>
string Icon { get; set; }
/// <summary>
/// description for the template
/// </summary>
string Description { get; set; }
/// <summary>
/// whether this template is intended to only be used locally or not
/// </summary>
bool LocalOnly { get; set; }
/// <summary>
/// the version number of this template [not currently used?]
/// </summary>
int Version { get; set; }
/// <summary>
/// last person to modify this template
/// </summary>
string LastModifiedBy { get; set; }
/// <summary>
/// when this template was last modified
/// </summary>
DateTime LastModified { get; set; }
/// <summary>
/// a CRC32 for the template, but not currently used
/// original idea was to allow us to not have to check changes in the template, just quickly calculate whether anything has changed
/// </summary>
int CRC32 { get; set; }
/// <summary>
/// test object (iso meta field) for this template
/// </summary>
string TestObject { get; set; }
/// <summary>
/// test object type (iso meta field) for this template, all channels are of this type ...
/// </summary>
string TestObjectType { get; set; }
/// <summary>
/// unsure if this is still used, was originally used to build up templates from sub templates,
/// so an ATD could be composed of leg, arm, head, etc
/// </summary>
string TemplateParent { get; set; }
/// <summary>
/// unsure, I think this is whether the group is dynamically added or an existing
/// </summary>
bool SysBuilt { get; set; }
/// <summary>
/// the original template name [if we are embedded we got a new name that was a guid, but we store the old name here for readability purposes]
/// </summary>
string OriginalTemplateName { get; set; }
/// <summary>
/// whether this group is embedded in a test setup, or is a user created and living on it's own template
/// </summary>
bool Embedded { get; set; }
bool IsISOMode();
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,25 @@
using Prism.Events;
namespace DTS.Common.Events.Groups.GroupChannelList
{
/// <summary>
/// The GroupUpdated event.
/// </summary>
///
/// <remarks>called when a template is selected.</remarks>
///
public class GroupChannelsChangedEvent : PubSubEvent<GroupChannelsChangedEventArgs> { }
public class GroupChannelsChangedEventArgs
{
public object Group { get; }
public int ChannelCount { get; }
public GroupChannelsChangedEventArgs(object group, int channelCount)
{
Group = group;
ChannelCount = channelCount;
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 B

View File

@@ -0,0 +1,15 @@
namespace DTS.Common.Interface.Channels
{
public interface IChannelSetting
{
long ChannelId { get; set; }
int SettingTypeId { get; }
string SettingName { get; }
string DefaultValue { get; }
string Value { get; set; }
int IntValue { get; set; }
double DoubleValue { get; set; }
bool BoolValue { get; set; }
IChannelSetting Clone();
}
}

View File

@@ -0,0 +1,50 @@
namespace DTS.Common.Constant
{
public static class EmbeddedSensors
{
//power management / wake up
public const int MotionDetectInactivitySMaximum = 300; //five minutes
public const int MagnetTimeoutMsMaximum = 300000; //five minutes
//device triggers
public const double EmbeddedLowGLinearAccelerometerRange = 8;
public const double EmbeddedHighGLinearAccelerometerRange = 400;
public const double EmbeddedAngularAccelerometerRange = 2000;
public const double EmbeddedAngularRateSensorRange = 2000;
public const double HumidityMinimum = 10;
public const double HumidityMaximum = 100;
public const double PressureMinimum = 5;
public const double PressureMaximum = 15;
public const double TemperatureMinimum = 0;
public const double TemperatureMaximum = 65;
public const double TimedIntervalEventDurationMsMinimum = 30;
public const double TimedIntervalEventDurationMsMaximum = 300000; //five minutes
public const double TimedIntervalNumberOfEventsMaximum = 100;
public const int IntervalBetweenEventStartsMinutesMaximum = 1440; //24 hours
//embedded sensor sample rates, taken from device IC spec
public const double EmbeddedLowGLinearAccelerometerSampleRateMinimum = 1;
public const double EmbeddedLowGLinearAccelerometerSampleRateMaximum = 6400;
public const double EmbeddedHighGLinearAccelerometerSampleRateMinimum = 1;
public const double EmbeddedHighGLinearAccelerometerSampleRateMaximum = 5120;
public const double EmbeddedAngularAccelerometerSampleRateMinimum = 1;
public const double EmbeddedAngularAccelerometerSampleRateMaximum = 1600;
public const double EmbeddedAngularAccelerometerAndRateSensorSampleRateMinimum = 1;
public const double EmbeddedAngularAccelerometerAndRateSensorSampleRateMaximum = 5120;
public const double EmbeddedAtmosphericSensorSampleRateMinimum = 1;
public const double EmbeddedAtmosphericSensorSampleRateMaximum = 157;
//default values: max SR
public const int DefaultEmbeddedLowGLinearAccelerometerSampleRate = 6400;
public const int DefaultEmbeddedHighGLinearAccelerometerSampleRate = 5120;
public const int DefaultEmbeddedAngularAccelerometerSampleRate = 1600;
public const int DefaultEmbeddedAngularAccelerometerAndRateSensorSampleRate = 5120;
public const int DefaultEmbeddedAtmosphericSensorSampleRate = 157;
public const uint BAUD_RATE_MIN = 96;
public const uint BAUD_RATE_DEFAULT = 57600;
public const uint BAUD_RATE_MAX = 921600;
public static readonly uint[] BAUD_RATES = { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 614400, 806400, 921600 };
}
}