private void CreateSignals(out AnalogSignal[] analogSignals, out TextSignal[] textSignals) { var textSignalsToReturn = new List <TextSignal>(); { var thisSignal = new TextSignal { Category = "Inputs from Simulation", CollectionName = "Electronic Warfare Management Unit", FriendlyName = "Display Text", Id = "TeensyEWMU__DisplayText", Index = 0, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = _config.COMPort, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = string.Empty }; _displayTextSignal = thisSignal; textSignalsToReturn.Add(thisSignal); } var analogSignalsToReturn = new List <AnalogSignal>(); _bytesSentSignal = new AnalogSignal { Category = "Performance Tracking", CollectionName = "Data Throughput", FriendlyName = "# of Bytes Sent (last packet)", Id = "TeensyEWMU__Bytes_Sent_Last_Packet", Index = 0, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = null, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = 0, MinValue = 0, MaxValue = 64 * 1024 }; analogSignalsToReturn.Add(_bytesSentSignal); analogSignals = analogSignalsToReturn.ToArray(); textSignals = textSignalsToReturn.ToArray(); }
private void CreateInputSignals(out AnalogSignal[] analogSignals, out DigitalSignal[] digitalSignals, out TextSignal[] textSignals) { var analogSignalsToReturn = new List <AnalogSignal>(); var digitalSignalsToReturn = new List <DigitalSignal>(); var textSignalsToReturn = new List <TextSignal>(); { var thisSignal = new TextSignal { Category = "Inputs from Simulation", CollectionName = "Radar Warning Receiver", FriendlyName = "RWR Additional Info", Id = "TeensyRWR__RWR_AdditionalInfo", Index = 0, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = _config.COMPort, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = string.Empty }; _rwrInfoInputSignal = thisSignal; textSignalsToReturn.Add(thisSignal); } { var thisSignal = new AnalogSignal { Category = "Inputs from Simulation", CollectionName = "Navigation", FriendlyName = "Magnetic Heading (Degrees)", Id = "TeensyRWR__Magnetic_Heading_Degrees", Index = 0, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = _config.COMPort, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = 0, IsAngle = true, MinValue = 0, MaxValue = 360 }; _magneticHeadingDegreesInputSignal = thisSignal; analogSignalsToReturn.Add(thisSignal); } { var thisSignal = new AnalogSignal { Category = "Inputs from Simulation", CollectionName = "Chaff/Flare", FriendlyName = "Chaff Count (# remaining)", Id = "TeensyRWR__Chaff_Count", Index = 0, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = _config.COMPort, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = 0, IsAngle = false, MinValue = 0, MaxValue = 99 }; _chaffCountInputSignal = thisSignal; analogSignalsToReturn.Add(thisSignal); } { var thisSignal = new AnalogSignal { Category = "Inputs from Simulation", CollectionName = "Chaff/Flare", FriendlyName = "Flare Count (# remaining)", Id = "TeensyRWR__Flare_Count", Index = 0, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = _config.COMPort, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = 0, IsAngle = false, MinValue = 0, MaxValue = 99 }; _flareCountInputSignal = thisSignal; analogSignalsToReturn.Add(thisSignal); } { var thisSignal = new AnalogSignal { Category = "Inputs from Simulation", CollectionName = "Radar Warning Receiver", FriendlyName = "RWR Symbol Count", Id = "TeensyRWR__RWR_Symbol_Count", Index = 0, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = _config.COMPort, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = 0, MinValue = 0, MaxValue = 64 }; _rwrSymbolCountInputSignal = thisSignal; analogSignalsToReturn.Add(thisSignal); } for (var i = 0; i < MAX_RWR_SYMBOLS_AS_INPUTS; i++) { var thisSignal = new AnalogSignal { Category = "Inputs from Simulation", CollectionName = "Radar Warning Receiver", FriendlyName = $"RWR Object #{i} Symbol ID", Id = $"TeensyRWR__RWR_Object_Symbol_ID[{i}]", Index = i, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = _config.COMPort, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = -1, MinValue = Int32.MinValue, MaxValue = Int32.MaxValue }; _rwrObjectSymbolIDInputSignals[i] = thisSignal; analogSignalsToReturn.Add(thisSignal); } for (var i = 0; i < MAX_RWR_SYMBOLS_AS_INPUTS; i++) { var thisSignal = new AnalogSignal { Category = "Inputs from Simulation", CollectionName = "Radar Warning Receiver", FriendlyName = $"RWR Object #{i} Bearing (degrees)", Id = $"TeensyRWR__RWR_Object_Bearing_Degrees[{i}]", Index = i, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = _config.COMPort, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = 0, IsAngle = true, MinValue = 0, MaxValue = 360 }; _rwrObjectBearingInputSignals[i] = thisSignal; analogSignalsToReturn.Add(thisSignal); } for (var i = 0; i < MAX_RWR_SYMBOLS_AS_INPUTS; i++) { var thisSignal = new AnalogSignal { Category = "Inputs from Simulation", CollectionName = "Radar Warning Receiver", FriendlyName = $"RWR Object #{i} Lethality", Id = $"TeensyRWR__RWR_Object_Lethality[{i}]", Index = i, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = _config.COMPort, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = 0, MinValue = -1, MaxValue = 3 }; _rwrObjectLethalityInputSignals[i] = thisSignal; analogSignalsToReturn.Add(thisSignal); } for (var i = 0; i < MAX_RWR_SYMBOLS_AS_INPUTS; i++) { var thisSignal = new DigitalSignal { Category = "Inputs from Simulation", CollectionName = "Radar Warning Receiver", FriendlyName = $"RWR Object #{i} Missile Activity Flag", Id = $"TeensyRWR__RWR_Object_Missile_Activity_Flag[{i}]", Index = i, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = _config.COMPort, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = false }; _rwrObjectMissileActivityFlagInputSignals[i] = thisSignal; digitalSignalsToReturn.Add(thisSignal); } for (var i = 0; i < MAX_RWR_SYMBOLS_AS_INPUTS; i++) { var thisSignal = new DigitalSignal { Category = "Inputs from Simulation", CollectionName = "Radar Warning Receiver", FriendlyName = $"RWR Object #{i} Missile Launch Flag", Id = $"TeensyRWR__RWR_Object_Missile_Launch_Flag[{i}]", Index = i, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = _config.COMPort, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = false }; _rwrObjectMissileLaunchFlagInputSignals[i] = thisSignal; digitalSignalsToReturn.Add(thisSignal); } for (var i = 0; i < MAX_RWR_SYMBOLS_AS_INPUTS; i++) { var thisSignal = new DigitalSignal { Category = "Inputs from Simulation", CollectionName = "Radar Warning Receiver", FriendlyName = $"RWR Object #{i} Selected Flag", Id = $"TeensyRWR__RWR_Object_Selected_Flag[{i}]", Index = i, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = _config.COMPort, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = false }; _rwrObjectSelectedFlagInputSignals[i] = thisSignal; digitalSignalsToReturn.Add(thisSignal); } for (var i = 0; i < MAX_RWR_SYMBOLS_AS_INPUTS; i++) { var thisSignal = new DigitalSignal { Category = "Inputs from Simulation", CollectionName = "Radar Warning Receiver", FriendlyName = $"RWR Object #{i} New Detection Flag", Id = $"TeensyRWR__RWR_Object_New_Detection_Flag[{i}]", Index = i, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = _config.COMPort, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = false }; _rwrObjectNewDetectionFlagInputSignals[i] = thisSignal; digitalSignalsToReturn.Add(thisSignal); } _numDrawPointsSentSignal = new AnalogSignal { Category = "Performance Tracking", CollectionName = "Data Throughput", FriendlyName = "# of Draw Points Sent (last packet)", Id = "TeensyRWR__Num_Draw_Points_Sent_Last_Packet", Index = 0, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = null, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = 0, MinValue = 0, MaxValue = 21 * 1024 }; analogSignalsToReturn.Add(_numDrawPointsSentSignal); _bytesSent = new AnalogSignal { Category = "Performance Tracking", CollectionName = "Data Throughput", FriendlyName = "# of Bytes Sent (last packet)", Id = "TeensyRWR__Bytes_Sent_Last_Packet", Index = 0, PublisherObject = this, Source = this, SourceFriendlyName = FriendlyName, SourceAddress = null, SubSource = null, SubSourceFriendlyName = null, SubSourceAddress = null, State = 0, MinValue = 0, MaxValue = 64 * 1024 }; analogSignalsToReturn.Add(_bytesSent); analogSignals = analogSignalsToReturn.ToArray(); digitalSignals = digitalSignalsToReturn.ToArray(); textSignals = textSignalsToReturn.ToArray(); }
public SevenSegmentDisplay(DigitalSignal segA, DigitalSignal segB, DigitalSignal segC, DigitalSignal segD, DigitalSignal segE, DigitalSignal segF, DigitalSignal segG, DigitalSignal segDP, TextSignal displayText) : this(displayText) { AssignSegments(segA, segB, segC, segD, segE, segF, segG, segDP); }
public SevenSegmentDisplay(TextSignal displayText) : base(displayText) { CreateDefaultSegments(); }
protected TextDisplay(TextSignal displayText) { DisplayText = displayText; }
protected SegmentedDisplay(TextSignal displayText) : base(displayText) { }
public DotMatrixCharacterDisplay(TextSignal displayText) : base(displayText) { }