Exemple #1
0
            /// <summary>
            /// Initialize the values.
            /// </summary>
            private void Init()
            {
                // Create Subsystem Configuration based off Firmware and Serialnumber
                SubsystemConfig = new SubsystemConfiguration(new Firmware().GetSubsystem(SerialNumber.DVL), 0, 0);
                SampleNumber = 0;

                Pitch = 0.0f;
                Roll = 0.0f;
                Heading = 0.0f;
                DateAndTime = DateTime.Now;
                Year = DateAndTime.Year;
                Month = DateAndTime.Month;
                Day = DateAndTime.Day;
                Hour = DateAndTime.Hour;
                Minute = DateAndTime.Minute;
                Second = DateAndTime.Second;
                HSec = DateAndTime.Millisecond * 10;
                Salinity = 0.0f;
                WaterTemp = 0.0f;
                TransducerDepth = 0.0f;
                SpeedOfSound = 0.0f;
                BIT = 0;

                RefLayerMin = 0;
                RefLayerMax = 0;

                WmXVelocity = 0.0f;
                WmYVelocity = 0.0f;
                WmZVelocity = 0.0f;
                WmErrorVelocity = 0.0f;
                WmInstrumentIsGoodVelocity = false;

                WmTransverseVelocity = 0.0f;
                WmLongitudinalVelocity = 0.0f;
                WmNormalVelocity = 0.0f;
                WmShipIsGoodVelocity = false;

                WmEastVelocity = 0.0f;
                WmNorthVelocity = 0.0f;
                WmUpwardVelocity = 0.0f;
                WmEarthIsGoodVelocity = false;

                WmEastDistance = 0.0f;
                WmNorthDistance = 0.0f;
                WmUpwardDistance = 0.0f;
                WmEarthRangeToWaterMassCenter = 0.0f;
                WmEarthTimeLastGoodVel = 0.0f;

                BtXVelocity = 0.0f;
                BtYVelocity = 0.0f;
                BtZVelocity = 0.0f;
                BtErrorVelocity = 0.0f;
                BtInstrumentIsGoodVelocity = false;

                BtTransverseVelocity = 0.0f;
                BtLongitudinalVelocity = 0.0f;
                BtNormalVelocity = 0.0f;
                BtShipErrorVelocity = 0.0f;
                BtShipIsGoodVelocity = false;

                BtEastVelocity = 0.0f;
                BtNorthVelocity = 0.0f;
                BtUpwardVelocity = 0.0f;
                BtEarthIsGoodVelocity = false;

                BtEastDistance = 0.0f;
                BtNorthDistance = 0.0f;
                BtUpwardDistance = 0.0f;
                BtRangeToBottom = 0.0f;
                BtEarthTimeLastGoodVel = 0.0f;

                Pressure = 0.0f;
                RangeBeam0 = 0.0f;
                RangeBeam1 = 0.0f;
                RangeBeam2 = 0.0f;
                RangeBeam3 = 0.0f;
                AverageRange = 0.0f;

                DmgEast = 0.0f;
                DmgNorth = 0.0f;
                DmgUpward = 0.0f;
                DmgError = 0.0f;

                DmgRefEast = 0.0f;
                DmgRefNorth = 0.0f;
                DmgRefUpward = 0.0f;
                DmgRefError = 0.0f;

                LeakDetection = LeakDetectionOptions.NotInstalled;
            }
Exemple #2
0
            public DvlDataSet( SubsystemConfiguration SubsystemConfig, int SampleNumber,
                        float Heading, float Pitch, float Roll,
                        int Year, int Month, int Day, int Hour, int Minute, int Second, int HSec,
                        float Salinity, float Temperature, float DepthOfTransducer, float SpeedOfSound, int BIT,
                        int RefLayerMin, int RefLayerMax,
                        float WmXVelocity, float WmYVelocity, float WmZVelocity, float WmErrorVelocity, bool WmInstrumentIsGoodVelocity,
                        float WmTransverseVelocity, float WmLongitudinalVelocity, float WmNormalVelocity, bool WmShipIsGoodVelocity,
                        float WmEastVelocity, float WmNorthVelocity, float WmUpwardVelocity, bool WmEarthIsGoodVelocity,
                        float WmEastDistance, float WmNorthDistance, float WmUpwardDistance, float WmEarthRangeToWaterMassCenter, float WmEarthTimeLastGoodVel,
                        float BtXVelocity, float BtYVelocity, float BtZVelocity, float BtErrorVelocity, bool BtInstrumentIsGoodVelocity,
                        float BtTransverseVelocity, float BtLongitudinalVelocity, float BtNormalVelocity, float BtShipErrorVelocity, bool BtShipIsGoodVelocity,
                        float BtEastVelocity, float BtNorthVelocity, float BtUpwardVelocity, bool BtEarthIsGoodVelocity,
                        float BtEastDistance, float BtNorthDistance, float BtUpwardDistance, float BtEarthRangeToWaterMassCenter, float BtEarthTimeLastGoodVel,
                        float Pressure, float RangeBeam0, float RangeBeam1, float RangeBeam2, float RangeBeam3, float AverageRange,
                        float DmgEast, float DmgNorth, float DmgUpward, float DmgError,
                        float DmgRefEast, float DmgRefNorth, float DmgRefUpward, float DmgRefError,
                        LeakDetectionOptions LeakDetection)
                : base(DataSet.Ensemble.DATATYPE_FLOAT,                   // Type of data stored (Float or Int)
                        NUM_ELEMENTS,                                   // Number of bins
                        1,                                              // Number of beams
                        DataSet.Ensemble.DEFAULT_IMAG,                  // Default Image
                        DataSet.Ensemble.DEFAULT_NAME_LENGTH,           // Default Image length
                        DataSet.Ensemble.DvlID)
            {
                this.SubsystemConfig = SubsystemConfig;
                this.SampleNumber = SampleNumber;

                this.Pitch = Pitch;
                this.Roll = Roll;
                this.Heading = Heading;
                this.DateAndTime = DateAndTime;
                this.Salinity = Salinity;
                this.WaterTemp = Temperature;
                this.TransducerDepth = DepthOfTransducer;
                this.SpeedOfSound = SpeedOfSound;
                this.BIT = BIT;

                // Set time
                this.Year = Year;
                this.Month = Month;
                this.Day = Day;
                this.Hour = Hour;
                this.Minute = Minute;
                this.Second = Second;
                this.HSec = HSec;
                ValidateDateTime(Year, Month, Day, Hour, Minute, Second, HSec / 10);

                this.RefLayerMin = RefLayerMin;
                this.RefLayerMax = RefLayerMax;

                this.WmXVelocity = WmXVelocity;
                this.WmYVelocity = WmYVelocity;
                this.WmZVelocity = WmZVelocity;
                this.WmErrorVelocity = WmErrorVelocity;
                this.WmInstrumentIsGoodVelocity = WmInstrumentIsGoodVelocity;

                this.WmTransverseVelocity = WmTransverseVelocity;
                this.WmLongitudinalVelocity = WmLongitudinalVelocity;
                this.WmNormalVelocity = WmNormalVelocity;
                this.WmShipIsGoodVelocity = WmShipIsGoodVelocity;

                this.WmEastVelocity = WmEastVelocity;
                this.WmNorthVelocity = WmNorthVelocity;
                this.WmUpwardVelocity = WmUpwardVelocity;
                this.WmEarthIsGoodVelocity = WmEarthIsGoodVelocity;

                this.WmEastDistance = WmEastDistance;
                this.WmNorthDistance = WmNorthDistance;
                this.WmUpwardDistance = WmUpwardDistance;
                this.WmEarthRangeToWaterMassCenter = WmEarthRangeToWaterMassCenter;
                this.WmEarthTimeLastGoodVel = WmEarthTimeLastGoodVel;

                this.BtXVelocity = BtXVelocity;
                this.BtYVelocity = BtYVelocity;
                this.BtZVelocity = BtZVelocity;
                this.BtErrorVelocity = BtErrorVelocity;
                this.BtInstrumentIsGoodVelocity = BtInstrumentIsGoodVelocity;

                this.BtTransverseVelocity = BtTransverseVelocity;
                this.BtLongitudinalVelocity = BtLongitudinalVelocity;
                this.BtNormalVelocity = BtNormalVelocity;
                this.BtShipErrorVelocity = BtShipErrorVelocity;
                this.BtShipIsGoodVelocity = BtShipIsGoodVelocity;

                this.BtEastVelocity = BtEastVelocity;
                this.BtNorthVelocity = BtNorthVelocity;
                this.BtUpwardVelocity = BtUpwardVelocity;
                this.BtEarthIsGoodVelocity = BtEarthIsGoodVelocity;

                this.BtEastDistance = BtEastDistance;
                this.BtNorthDistance = BtNorthDistance;
                this.BtUpwardDistance = BtUpwardDistance;
                this.BtRangeToBottom = BtEarthRangeToWaterMassCenter;
                this.BtEarthTimeLastGoodVel = BtEarthTimeLastGoodVel;

                this.Pressure = Pressure;
                this.RangeBeam0 = RangeBeam0;
                this.RangeBeam1 = RangeBeam1;
                this.RangeBeam2 = RangeBeam2;
                this.RangeBeam3 = RangeBeam3;
                this.AverageRange = AverageRange;

                this.DmgEast = DmgEast;
                this.DmgNorth = DmgNorth;
                this.DmgUpward = DmgUpward;
                this.DmgError = DmgError;

                this.DmgRefEast = DmgRefEast;
                this.DmgRefNorth = DmgRefNorth;
                this.DmgRefUpward = DmgRefUpward;
                this.DmgRefError = DmgRefError;

                this.LeakDetection = LeakDetection;
            }