void Awake()
        {
            instance = this;

            //Altimeter
            realAltimeter = FlightUIController.fetch.alt;
            dummyAltimeter = Instantiate(realAltimeter) as Tumblers;
            dummyAltimeter.transform.parent = realAltimeter.transform.parent;
            dummyAltimeter.transform.position -= Vector3.right * 1000f;
            dummyAltimeter.enabled = false;
            FlightUIController.fetch.alt = dummyAltimeter;
            altimeterModules = new List<ModuleReliabilityAltimeter>();

            //Thrust Gauge
            realThrust = FlightUIController.fetch.thr;
            dummyThrust = Instantiate(realThrust) as Gauge;
            dummyThrust.transform.parent = realThrust.transform.parent;
            dummyThrust.transform.position -= Vector3.right * 1000f;
            dummyThrust.enabled = false;
            FlightUIController.fetch.thr = dummyThrust;
            thrustModules = new List<ModuleReliabilityThrust>();

            //Monitor
            monitorModules = new List<ModuleReliabilityMonitor>();
            managerModules = new List<ModuleReliabilityManager>();
        }
Exemplo n.º 2
0
        protected override void ImplementUserControl()
        {
            Gauge gauge = new Gauge();

            gauge.Location = new System.Drawing.Point(146, 74);
            gauge.Name = "gauge";
            gauge.Size = new System.Drawing.Size(160, 152);
            gauge.TabIndex = 0;

            controlHandle = gauge;
            InitControl(gauge);
            initContextMenuStrip();
        }
        public void RegisterMetrics()
        {
            var collectionCountsParent = Metrics.CreateCounter("dotnet_collection_count_total", "GC collection count", new []{"generation"});
            
            for (var gen = 0; gen <= GC.MaxGeneration; gen++)
            {
                _collectionCounts.Add(collectionCountsParent.Labels(gen.ToString()));
            }

            _virtualMemorySize = Metrics.CreateGauge("process_virtual_bytes", "Process virtual memory size");
            _workingSet = Metrics.CreateGauge("process_working_set", "Process working set");
            _privateMemorySize = Metrics.CreateGauge("process_private_bytes", "Process private memory size");
            _totalMemory = Metrics.CreateGauge("dotnet_totalmemory", "Total known allocated memory");
            _perfErrors = Metrics.CreateCounter("dotnet_collection_errors_total", "Total number of errors that occured during collections");
        }
Exemplo n.º 4
0
        public void RegisterMetrics()
        {
            var collectionCountsParent = Metrics.CreateCounter("dotnet_collection_count_total", "GC collection count", new []{"generation"});

            for (var gen = 0; gen <= GC.MaxGeneration; gen++)
            {
                _collectionCounts.Add(collectionCountsParent.Labels(gen.ToString()));
            }

            _virtualMemorySize = Metrics.CreateGauge("process_virtual_bytes", "Process virtual memory size");
            _workingSet = Metrics.CreateGauge("process_working_set", "Process working set");
            _privateMemorySize = Metrics.CreateGauge("process_private_bytes", "Process private memory size");
            _totalMemory = Metrics.CreateGauge("dotnet_totalmemory", "Total known allocated memory");
            _perfErrors = Metrics.CreateCounter("dotnet_collection_errors_total", "Total number of errors that occured during collections");
            _cpuTotal = Metrics.CreateCounter("process_cpu_seconds_total", "Total user and system CPU time spent in seconds");
            _openHandles = Metrics.CreateGauge("process_open_handles", "Number of open handles");
            _startTime = Metrics.CreateGauge("process_start_time_seconds", "Start time of the process since unix epoch in seconds");
            _numThreads = Metrics.CreateGauge("process_threads_total", "Total number of threads");

            var epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
            _startTime.Set((_process.StartTime.ToUniversalTime() - epoch).TotalSeconds);
        }
Exemplo n.º 5
0
    public MetricsCollector(IMetricFactory metricFactory)
    {
        _totalStartedConnections = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_connections_started_total",
            "ReverseCall total number of connections that have been started");

        _pendingWrites = metricFactory.CreateGauge(
            "dolittle_system_runtime_services_clients_reversecalls_pending_writes",
            "ReverseCall current pending stream writes waiting");

        _totalWriteWaitTime = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_stream_write_wait_seconds_total",
            "ReverseCall total time spent waiting to write to streams");

        _totalWriteTime = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_stream_write_seconds_total",
            "ReverseCall total time spent writing to streams");

        _totalWrites = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_stream_writes_total",
            "ReverseCall total number of writes to streams");

        _totalWriteBytes = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_stream_write_bytes_total",
            "ReverseCall total number of bytes written to streams");

        _totalWaitForConnectResponseTime = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_connect_response_wait_seconds_total",
            "ReverseCall total time spent waiting for connect response");

        _totalCancelledConnections = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_connections_cancelled_total",
            "ReverseCall total number of connections that have been cancelled");

        _totalReceivedMessages = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_messages_received_total",
            "ReverseCall total number of messages that have been received");

        _totalReceivedBytes = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_stream_read_bytes_total",
            "ReverseCall total number of bytes read from streams");

        _totalPingsReceived = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_pings_received_total",
            "ReverseCall total number of pings received");

        _totalPongsSent = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_pongs_sent_total",
            "ReverseCall total number of pongs sent");

        _totalReceivedRequests = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_requests_received_total",
            "ReverseCall total number of requests that have been received");

        _totalEmptyMessagesReceived = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_empty_messages_received_total",
            "ReverseCall total number of empty messages that have been received");

        _totalPingTimeouts = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_keepalive_timeouts_total",
            "ReverseCall total number of times ping keepalive has timed out");

        _totalFailedRequestHandlers = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_requests_failed_handlers_total",
            "ReverseCall total number of failed request handlers");

        _totalFailedRequestCallbacks = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_requests_failed_callbacks_total",
            "ReverseCall total number of failed request callbacks");

        _totalFailedResponseWrites = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_failed_response_writes_total",
            "ReverseCall total number of failed response writes");

        _totalRequestHandlingTime = metricFactory.CreateCounter(
            "dolittle_system_runtime_services_clients_reversecalls_request_handling_seconds_total",
            "ReverseCall total time spent handling requests");
    }
Exemplo n.º 6
0
        /// <inheritdoc />
        public bool Equals([AllowNull] Indicator other)
        {
            if (other == null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Type == other.Type ||
                     Type != null &&
                     Type.Equals(other.Type)
                     ) &&
                 (
                     Visible == other.Visible ||
                     Visible != null &&
                     Visible.Equals(other.Visible)
                 ) &&
                 (
                     Name == other.Name ||
                     Name != null &&
                     Name.Equals(other.Name)
                 ) &&
                 (
                     UId == other.UId ||
                     UId != null &&
                     UId.Equals(other.UId)
                 ) &&
                 (
                     Equals(Ids, other.Ids) ||
                     Ids != null && other.Ids != null &&
                     Ids.SequenceEqual(other.Ids)
                 ) &&
                 (
                     Equals(CustomData, other.CustomData) ||
                     CustomData != null && other.CustomData != null &&
                     CustomData.SequenceEqual(other.CustomData)
                 ) &&
                 (
                     Meta == other.Meta ||
                     Meta != null &&
                     Meta.Equals(other.Meta)
                 ) &&
                 (
                     Equals(MetaArray, other.MetaArray) ||
                     MetaArray != null && other.MetaArray != null &&
                     MetaArray.SequenceEqual(other.MetaArray)
                 ) &&
                 (
                     Stream == other.Stream ||
                     Stream != null &&
                     Stream.Equals(other.Stream)
                 ) &&
                 (
                     Equals(Transforms, other.Transforms) ||
                     Transforms != null && other.Transforms != null &&
                     Transforms.SequenceEqual(other.Transforms)
                 ) &&
                 (
                     UiRevision == other.UiRevision ||
                     UiRevision != null &&
                     UiRevision.Equals(other.UiRevision)
                 ) &&
                 (
                     Mode == other.Mode ||
                     Mode != null &&
                     Mode.Equals(other.Mode)
                 ) &&
                 (
                     Value == other.Value ||
                     Value != null &&
                     Value.Equals(other.Value)
                 ) &&
                 (
                     Align == other.Align ||
                     Align != null &&
                     Align.Equals(other.Align)
                 ) &&
                 (
                     Domain == other.Domain ||
                     Domain != null &&
                     Domain.Equals(other.Domain)
                 ) &&
                 (
                     Title == other.Title ||
                     Title != null &&
                     Title.Equals(other.Title)
                 ) &&
                 (
                     Number == other.Number ||
                     Number != null &&
                     Number.Equals(other.Number)
                 ) &&
                 (
                     Delta == other.Delta ||
                     Delta != null &&
                     Delta.Equals(other.Delta)
                 ) &&
                 (
                     Gauge == other.Gauge ||
                     Gauge != null &&
                     Gauge.Equals(other.Gauge)
                 ) &&
                 (
                     IdsSrc == other.IdsSrc ||
                     IdsSrc != null &&
                     IdsSrc.Equals(other.IdsSrc)
                 ) &&
                 (
                     CustomDataSrc == other.CustomDataSrc ||
                     CustomDataSrc != null &&
                     CustomDataSrc.Equals(other.CustomDataSrc)
                 ) &&
                 (
                     MetaSrc == other.MetaSrc ||
                     MetaSrc != null &&
                     MetaSrc.Equals(other.MetaSrc)
                 ));
        }
        //============================================================================================================================================
        //Start Running Processes
        //============================================================================================================================================
        //Called when the flight starts or in the editor. OnStart will be called before OnUpdate or OnFixedUpdate are ever called.
        //============================================================================================================================================
        private void Start()
        {
            //Load settings from external file
            ThrustIndicationModule_SystemSettings = new ConfigNode ();
            ThrustIndicationModule_SystemSettings = ConfigNode.Load ("GameData/ThrustIndicationModule/Config/ThrustIndicationModule_PluginSettings.cfg");
            if (ThrustIndicationModule_SystemSettings != null) {
                print ("THRUSTINDICATIONMODULE - Settings Exist! Loading Values...");
                UseSplitNeedle = Boolean.Parse (ThrustIndicationModule_SystemSettings.GetValue ("UseSplitNeedle"));
                StockGaugeColorAlpha = float.Parse (ThrustIndicationModule_SystemSettings.GetValue ("StockGaugeColorAlpha"));
            } else {
                print ("THRUSTINDICATIONMODULE - Settings Missing! Loading Defaults...");
                UseSplitNeedle = false;
                StockGaugeColorAlpha = 0.6f;
            }
            //Thanks to KSP Forum Member xEvilReeperx for helping with this...
            var SourceObject = FlightUIController.fetch.thr.gameObject;
            var ClonedObject = UnityEngine.Object.Instantiate (SourceObject, SourceObject.transform.position, SourceObject.transform.rotation) as GameObject;
            TIMGauge = ClonedObject.GetComponent<Gauge> ();
            StockGauge = SourceObject.GetComponent<Gauge> ();

            ClonedObject.transform.parent = SourceObject.transform.parent;

            //Cloned settings from stock gauge just to make sure everything is correct
            TIMGauge.minRot = FlightUIController.fetch.thr.minRot;
            TIMGauge.maxRot = FlightUIController.fetch.thr.maxRot;
            TIMGauge.minValue = FlightUIController.fetch.thr.minValue;
            TIMGauge.maxValue = FlightUIController.fetch.thr.maxValue;
            TIMGauge.responsiveness = FlightUIController.fetch.thr.responsiveness;
            TIMGauge.setValue (0f);
            TIMGauge.enabled = true;

            if (UseSplitNeedle == true) {
                //Load different Textures for needles
                TIMGaugeTexture = GameDatabase.Instance.GetTexture ("ThrustIndicationModule/Textures/GaugeBottom", false);
                StockGaugeTexture = GameDatabase.Instance.GetTexture ("ThrustIndicationModule/Textures/GaugeTop", false);
                TIMGauge.transform.GetChild (0).renderer.material.SetTexture (0, TIMGaugeTexture);
                StockGauge.transform.GetChild (0).renderer.material.SetTexture (0, StockGaugeTexture);
            } else {
                //Use stock texture for both needles
            }
        }
Exemplo n.º 8
0
 public MessageQueue(IEnumerable <IPlatformMessage> messages) : base(messages)
 {
     this.m_gauge = Metrics.CreateGauge("router_messages_queued", "Number of messages queued to the router.");
     this.m_gauge.Set(messages.Count());
 }
Exemplo n.º 9
0
 public static GaugeValueSource ToMetricValueSource(this Gauge source)
 {
     return(source.Value.HasValue
         ? new GaugeValueSource(source.Name, ConstantValue.Provider(source.Value.Value), source.Unit, source.Tags)
         : new GaugeValueSource(source.Name, null, source.Unit, source.Tags));
 }
        private void Type2Special(ExcelPackage excel, WaterQualityIndicator wq)
        {
            var worksheet = excel.Workbook.Worksheets[1];

            for (var row = 2; row <= worksheet.Dimension.End.Row; row++)
            {
                _errorRow = row;

                var comment    = new StringBuilder();
                var gaugeName  = String.Empty;
                var year       = 0;
                var month      = String.Empty;
                var parameters = new List <(string name, string unit, double value)>();

                for (var column = 1; column <= worksheet.Dimension.End.Column; column++)
                {
                    _errorColumn = column;

                    switch (worksheet.Cells[1, column].Text.ToLowerInvariant())
                    {
                    case "name":
                        comment.AppendLine($"Name: {worksheet.Cells[row, column].Text}");
                        gaugeName = worksheet.Cells[row, column].Text;
                        break;

                    case "water body":
                        comment.AppendLine($"Water body: {worksheet.Cells[row, column].Text}");
                        break;

                    case "river":
                        comment.AppendLine($"River: {worksheet.Cells[row, column].Text}");
                        break;

                    case "year":
                        int.TryParse(worksheet.Cells[row, column].Text, NumberStyles.Any,
                                     CultureInfo.InvariantCulture, out year);
                        break;

                    case "month":
                        month = worksheet.Cells[row, column].Text;
                        break;

                    default:
                        string n;
                        var    u = String.Empty;
                        if (String.IsNullOrWhiteSpace(worksheet.Cells[row, column].Text) ||
                            worksheet.Cells[row, column].Text.ToLowerInvariant().Contains("na"))
                        {
                            break;
                        }
                        if (!Double.TryParse(worksheet.Cells[row, column].Text, NumberStyles.Any, CultureInfo.InvariantCulture, out var v))
                        {
                            var sv = worksheet.Cells[row, column].Text;
                            if (String.IsNullOrWhiteSpace(sv) || !sv.Contains("x"))
                            {
                                break;
                            }
                            if (sv.StartsWith("<"))
                            {
                                v = 0;
                            }
                            else
                            {
                                var ssv = sv.Split('x');
                                if (ssv.Length != 2)
                                {
                                    break;
                                }

                                if (!Double.TryParse(ssv[1], NumberStyles.Any, CultureInfo.InvariantCulture, out var mult))
                                {
                                    break;
                                }
                                if (!Double.TryParse(ssv[0], NumberStyles.Any, CultureInfo.InvariantCulture, out var b))
                                {
                                    break;
                                }
                                v = b * mult;
                            }
                        }
                        var s = worksheet.Cells[1, column].Text?.Split('_');
                        if (s.Length == 1)
                        {
                            n = worksheet.Cells[1, column].Text;
                        }
                        else if (s.Length == 2)
                        {
                            n = s[0];
                            u = s[1];
                        }
                        else
                        {
                            break;
                        }
                        parameters.Add((n, u, v));
                        break;
                    }
                }

                if (!_monthNames.ContainsKey(month.ToLowerInvariant()))
                {
                    continue;
                }
                var date = new DateTime(year, _monthNames[month.ToLowerInvariant()], 1);

                var gauge = wq.Gauges.FirstOrDefault(x => x.Name == gaugeName);
                if (gauge == null)
                {
                    gauge = new Gauge {
                        Name = gaugeName
                    };
                    wq.Gauges.Add(gauge);
                }

                gauge.Notes = comment.ToString();
                foreach (var(name, unit, value) in parameters)
                {
                    var p = gauge.Parameters.FirstOrDefault(x => x.Name == name);
                    if (p == null)
                    {
                        p = new WaterQualityParameter {
                            Name = name, Units = unit
                        };
                        gauge.Parameters.Add(p);
                    }

                    p.Data.Add(new TimeseriesDatum {
                        Time = date, Value = value
                    });
                }
            }
        }
Exemplo n.º 11
0
        private void ApplyDexterityToInitiative(Gauge initiative)
        {
            int value = Sheet.AbilityScoreModifierValue(character.GaugeByName("dexterity"));

            initiative.Modify(new Modifier(value, "Dexterity"));
        }
        private void RegisterPerfCounter(string category, string name)
        {
            Gauge gauge = Metrics.CreateGauge(GetName(category, name), GetHelp(name));

            _collectors.Add(Tuple.Create(gauge, new PerformanceCounter(category, name, _instanceName)));
        }
Exemplo n.º 13
0
    public TestSerialization() : base()
    {
        Test("That can serialize inventory items safely and correctly", () => {
            Sheet c = new Sheet();

            Assert(c.inventory != null);
            c.inventory.items[0] = new GenericArmour(EquipmentSubtype.ARMOUR_CHAINMAIL);

            c.inventory.items[1] = new GenericWeapon(EquipmentSubtype.SIMPLE_DAGGER);
            Manager.Serialize(c, TestPath);

            Sheet after = Manager.Deserialize <Sheet>(TestPath);
            Assert(after.inventory != null);
            Assert(after.inventory.items != null);
            GenericArmour arm = after.inventory.items[0] as GenericArmour;
            GenericWeapon wep = after.inventory.items[1] as GenericWeapon;
            Assert(arm.Subtype == EquipmentSubtype.ARMOUR_CHAINMAIL);
            Assert(wep.Subtype == EquipmentSubtype.SIMPLE_DAGGER);
        });

        Test("That CanSerializeAFeatureFromAndToSubclass", () => {
            //create a subclass instance of a feature
            PerLevelHitPoints flhp = new PerLevelHitPoints(10, ClassType.FIGHTER);


            string path = Application.persistentDataPath + Path.DirectorySeparatorChar + "test123";

            Manager.Serialize(flhp, path);


            //System.Type t = System.Type.GetType ("AT.Characters.FirstLevelHitPointsWrapper");

            GenericFeature f = Manager.Deserialize <GenericFeature> (path);

            File.Delete(path);


            Sheet c    = new Sheet();
            int before = c.HitPoints;
            f.WhenActivatedOn(c);
            Assert(c.HitPoints != before);


            //create a subclass instance of a feature
            GaugeMod ability = new GaugeMod("dexterity", 10, "bullshit", true);
            Manager.Serialize(ability, TestPath);


            //System.Type t = System.Type.GetType ("AT.Characters.FirstLevelHitPointsWrapper");

            GenericFeature hamburgerFlip = Manager.Deserialize <GenericFeature> (TestPath);

            //		Debug.Log ("hf: " + hamburgerFlip.GetType());

            File.Delete(path);


            GaugeMod ab = (GaugeMod)hamburgerFlip;

            Assert(ab.isBase);


            Sheet cheese = new Sheet();
            int before1  = cheese.Dexterity;

            ab.WhenActivatedOn(cheese);
            //		Debug.Log ("prop aft" + cheese.GaugeByName("dexterity").ModifiedCurrent);
            Assert(cheese.Dexterity != before1);
        });

        Test("that CanSerializeFeatureBundle", () => {
            ClassLevel5e fb = new ClassLevel5e(ClassType.CLERIC, 0);
            fb.features.Add(new PerLevelHitPoints(10, ClassType.FIGHTER));
            fb.features.Add(new PerLevelHitPoints(4, ClassType.CLERIC));
            fb.features.Add(new PerLevelHitPoints(1, ClassType.ROGUE));


            string path = Application.persistentDataPath + Path.DirectorySeparatorChar + "Test";
            Manager.Serialize(fb, path);

            ClassLevel5e unse = Manager.Deserialize <ClassLevel5e> (path);
            File.Delete(path);

            Assert(unse.classType == fb.classType);

            for (int i = 0; i < fb.features.Count; i++)
            {
                PerLevelHitPoints before = (PerLevelHitPoints)fb.features [i];
                PerLevelHitPoints after  = (PerLevelHitPoints)unse.features [i];
                Assert(before.amount == after.amount);
            }
        });

        Test("that CanSerializeWeapon", () => {
            GenericWeapon sword = new Longsword();
            Manager.Serialize(sword, TestPath);


            GenericWeapon after = Manager.Deserialize <GenericWeapon> (TestPath);
            File.Delete(TestPath);


            Assert(after.Dice[0] == sword.Dice[0]);
            Assert(after.DamageType == sword.DamageType);
            Assert(after.Subtype == sword.Subtype);
            Assert(after.Type == sword.Type);
            //after.WhenEquipped (new Sheet ());
        });

        Test("that CanSerializeArmour", () => {
            GenericArmour armour = new PaddedArmour();

            Manager.Serialize(armour, TestPath);


            GenericArmour after = Manager.Deserialize <GenericArmour> (TestPath);
            File.Delete(TestPath);

            Assert(armour.BaseAc == after.BaseAc);
            Assert(armour.Subtype == after.Subtype);
            Assert(armour.Type == after.Type);
        });

        Test("that CanSerializePaperDoll", () => {
            PaperDoll pd = new PaperDoll();

            pd.slots.Add(EquipmentSlotType.BODY, new PaddedArmour());
            pd.slots.Add(EquipmentSlotType.MAIN_HAND, new Longsword());
            pd.slots.Add(EquipmentSlotType.OFF_HAND, new Dagger());

            Manager.Serialize(pd, TestPath);


            PaperDoll after = Manager.Deserialize <PaperDoll> (TestPath);
            File.Delete(TestPath);

            Assert(after.slots.Count == after.slots.Count);
        });

        Test("that CanSerializeGauge", () => {
            Gauge g = new Gauge("hello");
            Manager.Serialize(g, TestPath);

            Gauge after = Manager.Deserialize <Gauge> (TestPath);
            File.Delete(TestPath);


            Assert(after.ModifiedCurrent == g.ModifiedCurrent);
            Assert(after.ModifiedMax == g.ModifiedMax);
            Assert(after.Name == g.Name);
        });

        Test("that CanSerializeRace", () => {
            Race r = new Race(RaceName.TIEFLING);

            Manager.Serialize(r, TestPath);

            Race after = Manager.Deserialize <Race> (TestPath);

            Assert(after.name == r.name);

            Assert(after.speed.ModifiedCurrent == r.speed.ModifiedCurrent);

            int i = 0;

            foreach (GenericFeature f in after.features)
            {
                Assert(f.Name() == r.features [i].Name());
                i++;
            }
        });

        Test("that CanSerializeSheet", () => {
            Sheet c           = new Sheet();
            c.race            = new Race(RaceName.TIEFLING);
            ClassLevel5e lvl1 = new ClassLevel5e(ClassType.FIGHTER, 0);
            lvl1.features.Add(new FighterLevels.ArcheryFightingStyle());
            lvl1.features.Add(new FighterLevels.GreatWeaponFightingStyle());
            lvl1.features.Add(new FighterLevels.DuelingFightingStyle());
            lvl1.features.Add(new FighterLevels.DefenseFightingStyle());
            lvl1.features.Add(new FighterLevels.TwoWeaponFightingStyle());

            lvl1.InitDefaultFeatures();

            c.AddClassLevel(lvl1);

            c.ActivateFeatures();

            Manager.Serialize(c, TestPath);

            //c.DeactivateFeatures ();

            Sheet after = Manager.Deserialize <Sheet> (TestPath);

            after.ActivateFeatures();


            Debug.Log("rior " + c.HitPointsGauge.BaseModifierSum + ") " + c.HitPointsGauge.ToString() + " " + c.ToString());

            Debug.Log("after " + after.HitPointsGauge.BaseModifierSum + ") " + after.HitPointsGauge.ToString() + " " + after.ToString());



            Assert(after.ToString() == c.ToString());
        });
    }
Exemplo n.º 14
0
 public static Gauge.Child WithConsumerLabels(this Gauge counter, ICompetingConsumer consumer)
 => counter.WithLabels(AppName, consumer.StreamName, consumer.GroupName);
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="registry"></param>
        /// <param name="prefix"></param>
        /// <param name="exportNodeDiskInfo"></param>
        public PrometheusExporter(CollectorRegistry registry, string prefix, bool exportNodeDiskInfo)
        {
            _registry           = registry;
            _exportNodeDiskInfo = exportNodeDiskInfo;

            var metricFactory = Prometheus.Metrics.WithCustomRegistry(registry);

            //create gauges
            _up = metricFactory.CreateGauge($"{prefix}_up",
                                            "Proxmox VE Node/Storage/VM/CT-Status is online/running/aviable",
                                            new GaugeConfiguration {
                LabelNames = new[] { "id" }
            });

            _nodeInfo = metricFactory.CreateGauge($"{prefix}_node_info",
                                                  "Node info",
                                                  new GaugeConfiguration {
                LabelNames = new[] { "id", "ip", "level", "local", "name", "nodeid" }
            });

            _nodeDiskWearout = metricFactory.CreateGauge($"{prefix}_node_disk_Wearout",
                                                         "Node disk wearout",
                                                         new GaugeConfiguration {
                LabelNames = new[] { "serial", "node", "type", "dev" }
            });

            _nodeDiskHealth = metricFactory.CreateGauge($"{prefix}_node_disk_health",
                                                        "Node disk health",
                                                        new GaugeConfiguration {
                LabelNames = new[] { "serial", "node", "type", "dev" }
            });

            _nodeDiskSmart = metricFactory.CreateGauge($"{prefix}_node_disk_smart",
                                                       "Node disk smart",
                                                       new GaugeConfiguration {
                LabelNames = new[] { "serial", "node", "type", "dev", "name" }
            });

            _clusterInfo = metricFactory.CreateGauge($"{prefix}_cluster_info",
                                                     "Cluster info",
                                                     new GaugeConfiguration {
                LabelNames = new[] { "id", "nodes", "quorate", "version" }
            });

            _versionInfo = metricFactory.CreateGauge($"{prefix}_version_info",
                                                     "Proxmox VE version info",
                                                     new GaugeConfiguration {
                LabelNames = new[] { "release", "repoid", "version" }
            });

            _guestInfo = metricFactory.CreateGauge($"{prefix}_guest_info",
                                                   "VM/CT info",
                                                   new GaugeConfiguration {
                LabelNames = new[] { "id", "node", "name", "type" }
            });

            _storageInfo = metricFactory.CreateGauge($"{prefix}_storage_info",
                                                     "Storage info",
                                                     new GaugeConfiguration {
                LabelNames = new[] { "id", "node", "storage", "shared" }
            });

            // StorageDef = metricFactory.CreateGauge($"{prefix}_storage_def",
            //                                             "Storage info 1",
            //                                             new GaugeConfiguration {LabelNames = new[] { "nodes", "storage", "type", "shared", "content" }});

            CreateGauges(metricFactory, prefix);
        }
Exemplo n.º 16
0
 public void ApplyAttackDamageBonus(Gauge toDamage)
 {
     ApplyAttackDamageAbilityBonus(toDamage);
 }
Exemplo n.º 17
0
 private void ReportGauge(long timestamp, string name, Gauge gauge)
 {
     report(timestamp, name, "value", "%s", gauge.Value);
 }
Exemplo n.º 18
0
 public Metric(Gauge gauge)
     : this(gauge.Name, gauge.Value, Statsd.Postfix.Gauge)
 {
 }
        private void ImportFromExcel()
        {
            var dialog = new OpenFileDialog
            {
                Title      = "Open Water Quality Excel File",
                Filter     = "Microsoft Excel (*.xlsx)|*.xlsx",
                DefaultExt = ".xlsx"
            };

            if (dialog.ShowDialog() != true)
            {
                return;
            }
            var filename = dialog.FileName;

            try
            {
                using (new WaitCursor())
                {
                    using (var excel = new ExcelPackage(new FileInfo(filename)))
                    {
                        if (excel.Workbook.Worksheets.Count == 0)
                        {
                            MessageBox.Show("Import error: no worksheets.");
                            return;
                        }

                        var wq = Indicator;

                        // can make this more complicated, ask user and so forth
                        if (excel.Workbook.Worksheets.Count == 1 &&
                            wq.Gauges.FirstOrDefault(x => x.Name == excel.Workbook.Worksheets[1].Name) == null)
                        {
                            if (excel.Workbook.Worksheets[1].Cells[1, 1].Text.Contains("COUNTRY"))
                            {
                                Type1Special(excel, wq);
                            }
                            else
                            {
                                Type2Special(excel, wq);
                            }

                            MessageBox.Show($"Imported Water Quality from {filename}.");
                            return;
                        }


                        foreach (var worksheet in excel.Workbook.Worksheets)
                        {
                            var gauge = wq.Gauges.FirstOrDefault(x => x.Name == worksheet.Name);
                            if (gauge == null)
                            {
                                gauge = new Gauge {
                                    Name = worksheet.Name
                                };
                                wq.Gauges.Add(gauge);
                            }

                            const int baseRow = 3;
                            var       dates   = new List <DateTime?>();
                            for (var row = baseRow; row <= worksheet.Dimension.End.Row; row++)
                            {
                                _errorRow    = row;
                                _errorColumn = 1;
                                switch (worksheet.Cells[row, 1].Value)
                                {
                                case null:
                                    continue;

                                case DateTime time:
                                    dates.Add(time);
                                    break;

                                case Double d:
                                    dates.Add(DateTime.FromOADate(d));
                                    break;

                                default:
                                    dates.Add(null);
                                    break;
                                }
                            }

                            for (var column = 2; column <= worksheet.Dimension.End.Column; column++)
                            {
                                var name      = worksheet.Cells[1, column].Text;
                                var units     = worksheet.Cells[2, column].Text;
                                var parameter = gauge.Parameters.FirstOrDefault(x => x.Name == name);
                                if (parameter == null)
                                {
                                    parameter = new WaterQualityParameter {
                                        Name = name
                                    };
                                    gauge.Parameters.Add(parameter);
                                }

                                parameter.Units = units;
                                parameter.Data.Clear();
                                for (var row = baseRow; row <= worksheet.Dimension.End.Row; row++)
                                {
                                    _errorRow    = row;
                                    _errorColumn = column;

                                    var date = dates[row - baseRow];
                                    if (date == null)
                                    {
                                        continue;
                                    }
                                    var value = worksheet.Cells[row, column].Value as Double?;
                                    if (value == null)
                                    {
                                        continue;
                                    }
                                    parameter.Data.Add(new TimeseriesDatum {
                                        Value = value.Value, Time = date.Value
                                    });
                                }
                            }
                        }
                    }
                }
                MessageBox.Show($"Imported Water Quality from {filename}.");
            }
            catch (Exception ex)
            {
                MessageBox.Show($"Error while importing row {_errorRow}, column {_errorColumn}: {ex.Message}");
            }
        }
Exemplo n.º 20
0
        public static void TryConfigure(string serviceName, PrometheusMetricsOptions options)
        {
            if (_isConfigured)
            {
                return;
            }

            _serviceLabel = serviceName;

            string[] serviceLabels = { options.ServiceNameLabel };

            string[] endpointLabels      = { options.ServiceNameLabel, options.EndpointLabel };
            string[] endpointFaultLabels = { options.ServiceNameLabel, options.EndpointLabel, options.ExceptionTypeLabel };

            string[] messageLabels      = { options.ServiceNameLabel, options.MessageTypeLabel, };
            string[] messageFaultLabels = { options.ServiceNameLabel, options.MessageTypeLabel, options.ExceptionTypeLabel };

            string[] executeLabels      = { options.ServiceNameLabel, options.ActivityNameLabel, options.ArgumentTypeLabel, };
            string[] executeFaultLabels = { options.ServiceNameLabel, options.ActivityNameLabel, options.ArgumentTypeLabel, options.ExceptionTypeLabel };

            string[] compensateLabels        = { options.ServiceNameLabel, options.ActivityNameLabel, options.LogTypeLabel, };
            string[] compensateFailureLabels = { options.ServiceNameLabel, options.ActivityNameLabel, options.LogTypeLabel, options.ExceptionTypeLabel };

            string[] consumerLabels      = { options.ServiceNameLabel, options.MessageTypeLabel, options.ConsumerTypeLabel };
            string[] consumerFaultLabels = { options.ServiceNameLabel, options.MessageTypeLabel, options.ConsumerTypeLabel, options.ExceptionTypeLabel };

            // Counters

            _receiveTotal = Metrics.CreateCounter(
                options.ReceiveTotal,
                "Total number of messages received",
                new CounterConfiguration {
                LabelNames = endpointLabels
            });

            _receiveFaultTotal = Metrics.CreateCounter(
                options.ReceiveFaultTotal,
                "Total number of messages receive faults",
                new CounterConfiguration {
                LabelNames = endpointFaultLabels
            });

            _consumeTotal = Metrics.CreateCounter(
                options.ConsumeTotal,
                "Total number of messages consumed",
                new CounterConfiguration {
                LabelNames = consumerLabels
            });

            _consumeFaultTotal = Metrics.CreateCounter(
                options.ConsumeFaultTotal,
                "Total number of message consume faults",
                new CounterConfiguration {
                LabelNames = consumerFaultLabels
            });

            _consumeRetryTotal = Metrics.CreateCounter(
                options.ConsumeRetryTotal,
                "Total number of message consume faults",
                new CounterConfiguration {
                LabelNames = consumerFaultLabels
            });

            _publishTotal = Metrics.CreateCounter(
                options.PublishTotal,
                "Total number of messages published",
                new CounterConfiguration {
                LabelNames = messageLabels
            });

            _publishFaultTotal = Metrics.CreateCounter(
                options.PublishFaultTotal,
                "Total number of message publish faults",
                new CounterConfiguration {
                LabelNames = messageFaultLabels
            });

            _sendTotal = Metrics.CreateCounter(
                options.SendTotal,
                "Total number of messages sent",
                new CounterConfiguration {
                LabelNames = messageLabels
            });

            _sendFaultTotal = Metrics.CreateCounter(
                options.SendFaultTotal,
                "Total number of message send faults",
                new CounterConfiguration {
                LabelNames = messageFaultLabels
            });

            _executeTotal = Metrics.CreateCounter(
                options.ActivityExecuteTotal,
                "Total number of activities executed",
                new CounterConfiguration {
                LabelNames = executeLabels
            });

            _executeFaultTotal = Metrics.CreateCounter(
                options.ActivityExecuteFaultTotal,
                "Total number of activity execution faults",
                new CounterConfiguration {
                LabelNames = executeFaultLabels
            });

            _compensateTotal = Metrics.CreateCounter(
                options.ActivityCompensateTotal,
                "Total number of activities compensated",
                new CounterConfiguration {
                LabelNames = compensateLabels
            });

            _compensateFailureTotal = Metrics.CreateCounter(
                options.ActivityCompensateFailureTotal,
                "Total number of activity compensation failures",
                new CounterConfiguration {
                LabelNames = compensateFailureLabels
            });

            // Gauges

            _busInstances = Metrics.CreateGauge(
                options.BusInstances,
                "Number of bus instances",
                new GaugeConfiguration {
                LabelNames = serviceLabels
            });

            _endpointInstances = Metrics.CreateGauge(
                options.EndpointInstances,
                "Number of receive endpoint instances",
                new GaugeConfiguration {
                LabelNames = endpointLabels
            });

            _receiveInProgress = Metrics.CreateGauge(
                options.ReceiveInProgress,
                "Number of messages being received",
                new GaugeConfiguration {
                LabelNames = endpointLabels
            });

            _handlerInProgress = Metrics.CreateGauge(
                options.HandlerInProgress,
                "Number of handlers in progress",
                new GaugeConfiguration {
                LabelNames = messageLabels
            });

            _consumerInProgress = Metrics.CreateGauge(
                options.ConsumerInProgress,
                "Number of consumers in progress",
                new GaugeConfiguration {
                LabelNames = consumerLabels
            });

            _sagaInProgress = Metrics.CreateGauge(
                options.SagaInProgress,
                "Number of sagas in progress",
                new GaugeConfiguration {
                LabelNames = consumerLabels
            });

            _executeInProgress = Metrics.CreateGauge(
                options.ExecuteInProgress,
                "Number of activity executions in progress",
                new GaugeConfiguration {
                LabelNames = executeLabels
            });

            _compensateInProgress = Metrics.CreateGauge(
                options.CompensateInProgress,
                "Number of activity compensations in progress",
                new GaugeConfiguration {
                LabelNames = compensateLabels
            });

            // Histograms

            _receiveDuration = Metrics.CreateHistogram(
                options.ReceiveDuration,
                "Elapsed time spent receiving a message, in seconds",
                new HistogramConfiguration
            {
                LabelNames = endpointLabels,
                Buckets    = options.HistogramBuckets
            });

            _consumeDuration = Metrics.CreateHistogram(
                options.ConsumeDuration,
                "Elapsed time spent consuming a message, in seconds",
                new HistogramConfiguration
            {
                LabelNames = consumerLabels,
                Buckets    = options.HistogramBuckets
            });

            _deliveryDuration = Metrics.CreateHistogram(
                options.DeliveryDuration,
                "Elapsed time between when the message was sent and when it was consumed, in seconds.",
                new HistogramConfiguration
            {
                LabelNames = consumerLabels,
                Buckets    = options.HistogramBuckets
            });

            _executeDuration = Metrics.CreateHistogram(
                options.ActivityExecuteDuration,
                "Elapsed time spent executing an activity, in seconds",
                new HistogramConfiguration
            {
                LabelNames = executeLabels,
                Buckets    = options.HistogramBuckets
            });

            _compensateDuration = Metrics.CreateHistogram(
                options.ActivityCompensateDuration,
                "Elapsed time spent compensating an activity, in seconds",
                new HistogramConfiguration
            {
                LabelNames = compensateLabels,
                Buckets    = options.HistogramBuckets
            });

            _isConfigured = true;
        }
        private async Task ImportFromShapefile()
        {
            var dialog = new OpenFileDialog
            {
                Title      = "Open shapefile with gauge locations",
                Filter     = "Shapefile (*.shp)|*.shp",
                DefaultExt = ".shp"
            };

            if (dialog.ShowDialog() != true)
            {
                return;
            }
            var filename = dialog.FileName;
            var sf       = await ShapefileFeatureTable.OpenAsync(filename);

            var qp = new QueryParameters();

            var res = await sf.QueryFeaturesAsync(qp);

            foreach (var r in res)
            {
                Trace.WriteLine($"{r.Geometry}");
                if (!(r.Geometry is MapPoint point))
                {
                    if (!(r.Geometry is Polygon polygon))
                    {
                        continue;
                    }
                    point = polygon.Extent.GetCenter();
                }
                var name = r.Attributes.FirstOrDefault(x => x.Key.ToLowerInvariant() == "name").Value as String;

                var success = false;

                foreach (var gauge in Indicator.Gauges)
                {
                    if (gauge.Name.ToLowerInvariant() != name?.ToLowerInvariant())
                    {
                        continue;
                    }
                    gauge.Location.Latitude  = point.Y;
                    gauge.Location.Longitude = point.X;
                    gauge.Location.Wkid      = point.SpatialReference.Wkid;
                    success = true;
                }

                if (success)
                {
                    continue;
                }

                var wkid = point.SpatialReference.Wkid;
                if (wkid == 0)
                {
                    wkid = 4326;               // WGS84
                }
                var ng = new Gauge
                {
                    Name     = name,
                    Location = { Latitude = point.Y, Longitude = point.X, Wkid = wkid }
                };
                Indicator.Gauges.Add(ng);
                if (String.IsNullOrWhiteSpace(ng.Name))
                {
                    ng.Name = $"GAUGE [{Indicator.Gauges.IndexOf(ng) + 1}]";
                }
            }
        }
        public void RegisterMetrics(MetricFactory metrics)
        {
#if !NETSTANDARD2_1
            AvailableMemory = metrics.CreateGauge("dotnet_gc_memory_total_available_bytes", "The upper limit on the amount of physical memory .NET can allocate to");
#endif

            // No registered sources available- cannot produce metrics
            if (!_gcInfo.Enabled && !_gcVerbose.Enabled && !_runtimeCounters.Enabled)
            {
                return;
            }

            if (_runtimeCounters.Enabled && !_gcInfo.Enabled)
            {
                GcPauseRatio = metrics.CreateGauge("dotnet_gc_pause_ratio", "The percentage of time the process spent paused for garbage collection");
                _runtimeCounters.Events.TimeInGc += e => GcPauseRatio.Set(e.Mean / 100.0);

                GcHeapSizeBytes = metrics.CreateGauge(
                    "dotnet_gc_heap_size_bytes",
                    "The current size of all heaps (only updated after a garbage collection)",
                    LabelGeneration);

                _runtimeCounters.Events.Gen0Size += e => GcHeapSizeBytes.Labels("0").Set(e.Mean);
                _runtimeCounters.Events.Gen1Size += e => GcHeapSizeBytes.Labels("1").Set(e.Mean);
                _runtimeCounters.Events.Gen2Size += e => GcHeapSizeBytes.Labels("2").Set(e.Mean);
                _runtimeCounters.Events.LohSize  += e => GcHeapSizeBytes.Labels("loh").Set(e.Mean);

                GcCollections = metrics.CreateCounter(
                    "dotnet_gc_collection_count_total",
                    "Counts the number of garbage collections that have occurred, broken down by generation number.",
                    LabelGeneration);

                _runtimeCounters.Events.Gen0GcCount += e => GcCollections.Labels("0").Inc(e.IncrementedBy);
                _runtimeCounters.Events.Gen1GcCount += e => GcCollections.Labels("1").Inc(e.IncrementedBy);
                _runtimeCounters.Events.Gen2GcCount += e => GcCollections.Labels("2").Inc(e.IncrementedBy);
            }

            if (_gcInfo.Enabled)
            {
                GcCollectionSeconds = metrics.CreateHistogram(
                    "dotnet_gc_collection_seconds",
                    "The amount of time spent running garbage collections",
                    new HistogramConfiguration()
                {
                    Buckets    = _options.HistogramBuckets,
                    LabelNames = new[] { LabelGeneration, LabelType }
                }
                    );

                _gcInfo.Events.CollectionComplete += (e) => GcCollectionSeconds.Labels(GetGenerationToString(e.Generation), GcTypeToLabels[e.Type]).Observe(e.Duration.TotalSeconds);

                GcPauseSeconds = metrics.CreateHistogram(
                    "dotnet_gc_pause_seconds",
                    "The amount of time execution was paused for garbage collection",
                    new HistogramConfiguration()
                {
                    Buckets = _options.HistogramBuckets
                }
                    );

                _gcInfo.Events.PauseComplete += (e) => GcPauseSeconds.Observe(e.PauseDuration.TotalSeconds);

                GcCollections = metrics.CreateCounter(
                    "dotnet_gc_collection_count_total",
                    "Counts the number of garbage collections that have occurred, broken down by generation number and the reason for the collection.",
                    LabelGeneration, LabelReason);

                _gcInfo.Events.CollectionStart += (e) => GcCollections.Labels(GetGenerationToString(e.Generation), GcReasonToLabels[e.Reason]).Inc();

                GcCpuRatio   = metrics.CreateGauge("dotnet_gc_cpu_ratio", "The percentage of process CPU time spent running garbage collections");
                GcPauseRatio = metrics.CreateGauge("dotnet_gc_pause_ratio", "The percentage of time the process spent paused for garbage collection");

                GcHeapSizeBytes = metrics.CreateGauge(
                    "dotnet_gc_heap_size_bytes",
                    "The current size of all heaps (only updated after a garbage collection)",
                    LabelGeneration);

                GcNumPinnedObjects        = metrics.CreateGauge("dotnet_gc_pinned_objects", "The number of pinned objects");
                GcFinalizationQueueLength = metrics.CreateGauge("dotnet_gc_finalization_queue_length", "The number of objects waiting to be finalized");

                _gcInfo.Events.HeapStats += e =>
                {
                    GcHeapSizeBytes.Labels("0").Set(e.Gen0SizeBytes);
                    GcHeapSizeBytes.Labels("1").Set(e.Gen1SizeBytes);
                    GcHeapSizeBytes.Labels("2").Set(e.Gen2SizeBytes);
                    GcHeapSizeBytes.Labels("loh").Set(e.LohSizeBytes);
                    GcFinalizationQueueLength.Set(e.FinalizationQueueLength);
                    GcNumPinnedObjects.Set(e.NumPinnedObjects);
                };
            }

            if (_gcVerbose.Enabled || _runtimeCounters.Enabled)
            {
                AllocatedBytes = metrics.CreateCounter(
                    "dotnet_gc_allocated_bytes_total",
                    "The total number of bytes allocated on the managed heap",
                    labelNames: _gcVerbose.Enabled ? new [] { LabelHeap } : new string[0]);

                if (_gcVerbose.Enabled)
                {
                    _gcVerbose.Events.AllocationTick += e => AllocatedBytes.Labels(e.IsLargeObjectHeap ? "loh" : "soh").Inc(e.AllocatedBytes);
                }
                else
                {
                    _runtimeCounters.Events.AllocRate += r => AllocatedBytes.Inc(r.IncrementedBy);
                }
            }
        }
Exemplo n.º 23
0
 public MessageQueue(int capacity) : base(capacity)
 {
     this.m_gauge = Metrics.CreateGauge("router_messages_queued", "Number of messages queued to the router.");
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager( typeof( MainForm ) );
     this.tcMainTabs = new System.Windows.Forms.TabControl();
     this.tpRadioTest = new System.Windows.Forms.TabPage();
     this.groupBox4 = new System.Windows.Forms.GroupBox();
     this.label40 = new System.Windows.Forms.Label();
     this.btnRecPWM = new System.Windows.Forms.RadioButton();
     this.btnRecSBUS = new System.Windows.Forms.RadioButton();
     this.lblFlightMode = new System.Windows.Forms.Label();
     this.lblAux3 = new System.Windows.Forms.Label();
     this.lblAux2 = new System.Windows.Forms.Label();
     this.lblAux1 = new System.Windows.Forms.Label();
     this.lblGear = new System.Windows.Forms.Label();
     this.label36 = new System.Windows.Forms.Label();
     this.label35 = new System.Windows.Forms.Label();
     this.label34 = new System.Windows.Forms.Label();
     this.label33 = new System.Windows.Forms.Label();
     this.textBox1 = new System.Windows.Forms.TextBox();
     this.label4 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.rsRight = new Elev8.RadioJoystick();
     this.rsLeft = new Elev8.RadioJoystick();
     this.tpSensorTest = new System.Windows.Forms.TabPage();
     this.gAltimeter = new Elev8.Graph();
     this.label12 = new System.Windows.Forms.Label();
     this.label19 = new System.Windows.Forms.Label();
     this.label21 = new System.Windows.Forms.Label();
     this.label23 = new System.Windows.Forms.Label();
     this.lblAltimeterTemp = new System.Windows.Forms.Label();
     this.label15 = new System.Windows.Forms.Label();
     this.lblAltimeter = new System.Windows.Forms.Label();
     this.label13 = new System.Windows.Forms.Label();
     this.label11 = new System.Windows.Forms.Label();
     this.textBox2 = new System.Windows.Forms.TextBox();
     this.label8 = new System.Windows.Forms.Label();
     this.label9 = new System.Windows.Forms.Label();
     this.label10 = new System.Windows.Forms.Label();
     this.label7 = new System.Windows.Forms.Label();
     this.label6 = new System.Windows.Forms.Label();
     this.label5 = new System.Windows.Forms.Label();
     this.gHeading = new Elev8.Gauge();
     this.gMagZ = new Elev8.Gauge();
     this.gMagY = new Elev8.Gauge();
     this.gMagX = new Elev8.Gauge();
     this.gGyroTemp = new Elev8.Gauge();
     this.gAccelZ = new Elev8.Gauge();
     this.gAccelY = new Elev8.Gauge();
     this.gAccelX = new Elev8.Gauge();
     this.gGyroZ = new Elev8.Gauge();
     this.gGyroY = new Elev8.Gauge();
     this.gGyroX = new Elev8.Gauge();
     this.tpMotorTest = new System.Windows.Forms.TabPage();
     this.lblCalibrateDocs = new System.Windows.Forms.Label();
     this.btnThrottleCalibrate = new System.Windows.Forms.Button();
     this.btnLED = new System.Windows.Forms.Button();
     this.btnBeeper = new System.Windows.Forms.Button();
     this.textBox3 = new System.Windows.Forms.TextBox();
     this.btnMotor4 = new System.Windows.Forms.Button();
     this.btnMotor3 = new System.Windows.Forms.Button();
     this.btnMotor2 = new System.Windows.Forms.Button();
     this.btnMotor1 = new System.Windows.Forms.Button();
     this.tpGyroCalibration = new System.Windows.Forms.TabPage();
     this.gCalibTemp = new Elev8.Gauge();
     this.gCalibZ = new Elev8.Gauge();
     this.gCalibY = new Elev8.Gauge();
     this.gCalibX = new Elev8.Gauge();
     this.btnUploadGyroCalibration = new System.Windows.Forms.Button();
     this.btnResetGyroCal = new System.Windows.Forms.Button();
     this.groupBox10 = new System.Windows.Forms.GroupBox();
     this.label18 = new System.Windows.Forms.Label();
     this.gzOffset = new System.Windows.Forms.Label();
     this.label20 = new System.Windows.Forms.Label();
     this.gzScale = new System.Windows.Forms.Label();
     this.groupBox11 = new System.Windows.Forms.GroupBox();
     this.label22 = new System.Windows.Forms.Label();
     this.gyOffset = new System.Windows.Forms.Label();
     this.label24 = new System.Windows.Forms.Label();
     this.gyScale = new System.Windows.Forms.Label();
     this.groupBox12 = new System.Windows.Forms.GroupBox();
     this.label26 = new System.Windows.Forms.Label();
     this.gxOffset = new System.Windows.Forms.Label();
     this.label28 = new System.Windows.Forms.Label();
     this.gxScale = new System.Windows.Forms.Label();
     this.lfGraph = new Elev8.LineFit();
     this.tpAccelCalibration = new System.Windows.Forms.TabPage();
     this.lblAccelCalFinal = new System.Windows.Forms.Label();
     this.lblAccelCal4 = new System.Windows.Forms.Label();
     this.lblAccelCal3 = new System.Windows.Forms.Label();
     this.lblAccelCal2 = new System.Windows.Forms.Label();
     this.lblAccelCal1 = new System.Windows.Forms.Label();
     this.btnUploadAccelCal = new System.Windows.Forms.Button();
     this.btnAccelCal4 = new System.Windows.Forms.Button();
     this.btnAccelCal3 = new System.Windows.Forms.Button();
     this.btnAccelCal2 = new System.Windows.Forms.Button();
     this.btnAccelCal1 = new System.Windows.Forms.Button();
     this.label37 = new System.Windows.Forms.Label();
     this.label38 = new System.Windows.Forms.Label();
     this.label39 = new System.Windows.Forms.Label();
     this.gAccelZCal = new Elev8.Gauge();
     this.gAccelYCal = new Elev8.Gauge();
     this.gAccelXCal = new Elev8.Gauge();
     this.tpIMUTest = new System.Windows.Forms.TabPage();
     this.label17 = new System.Windows.Forms.Label();
     this.label16 = new System.Windows.Forms.Label();
     this.label14 = new System.Windows.Forms.Label();
     this.textBox4 = new System.Windows.Forms.TextBox();
     this.gYaw = new Elev8.Gauge();
     this.gRoll = new Elev8.Gauge();
     this.gPitch = new Elev8.Gauge();
     this.ocOrientation = new Elev8.OrientationCube();
     this.tpIMUComp = new System.Windows.Forms.TabPage();
     this.lblStatOutput = new System.Windows.Forms.Label();
     this.label27 = new System.Windows.Forms.Label();
     this.label25 = new System.Windows.Forms.Label();
     this.ocCompQ2 = new Elev8.OrientationCube();
     this.ocCompQ1 = new Elev8.OrientationCube();
     this.tpVibration = new System.Windows.Forms.TabPage();
     this.label32 = new System.Windows.Forms.Label();
     this.label31 = new System.Windows.Forms.Label();
     this.label30 = new System.Windows.Forms.Label();
     this.label29 = new System.Windows.Forms.Label();
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     this.lblGZAvg = new System.Windows.Forms.Label();
     this.lblGZVar = new System.Windows.Forms.Label();
     this.lblGZMin = new System.Windows.Forms.Label();
     this.lblGZMax = new System.Windows.Forms.Label();
     this.groupBox2 = new System.Windows.Forms.GroupBox();
     this.lblGYAvg = new System.Windows.Forms.Label();
     this.lblGYVar = new System.Windows.Forms.Label();
     this.lblGYMin = new System.Windows.Forms.Label();
     this.lblGYMax = new System.Windows.Forms.Label();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.lblGXAvg = new System.Windows.Forms.Label();
     this.lblGXVar = new System.Windows.Forms.Label();
     this.lblGXMin = new System.Windows.Forms.Label();
     this.lblGXMax = new System.Windows.Forms.Label();
     this.grGyro = new Elev8.Graph();
     this.tickTimer = new System.Windows.Forms.Timer( this.components );
     this.stStatus = new System.Windows.Forms.StatusStrip();
     this.tsStatLabel = new System.Windows.Forms.ToolStripStatusLabel();
     this.udRollCorrection = new System.Windows.Forms.NumericUpDown();
     this.label41 = new System.Windows.Forms.Label();
     this.label42 = new System.Windows.Forms.Label();
     this.udPitchCorrection = new System.Windows.Forms.NumericUpDown();
     this.btnUploadAngleCorrection = new System.Windows.Forms.Button();
     this.groupBox5 = new System.Windows.Forms.GroupBox();
     this.groupBox6 = new System.Windows.Forms.GroupBox();
     this.tcMainTabs.SuspendLayout();
     this.tpRadioTest.SuspendLayout();
     this.groupBox4.SuspendLayout();
     this.tpSensorTest.SuspendLayout();
     this.tpMotorTest.SuspendLayout();
     this.tpGyroCalibration.SuspendLayout();
     this.groupBox10.SuspendLayout();
     this.groupBox11.SuspendLayout();
     this.groupBox12.SuspendLayout();
     this.tpAccelCalibration.SuspendLayout();
     this.tpIMUTest.SuspendLayout();
     this.tpIMUComp.SuspendLayout();
     this.tpVibration.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.groupBox2.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.stStatus.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.udRollCorrection)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.udPitchCorrection)).BeginInit();
     this.groupBox5.SuspendLayout();
     this.groupBox6.SuspendLayout();
     this.SuspendLayout();
     //
     // tcMainTabs
     //
     this.tcMainTabs.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.tcMainTabs.Controls.Add( this.tpRadioTest );
     this.tcMainTabs.Controls.Add( this.tpSensorTest );
     this.tcMainTabs.Controls.Add( this.tpMotorTest );
     this.tcMainTabs.Controls.Add( this.tpGyroCalibration );
     this.tcMainTabs.Controls.Add( this.tpAccelCalibration );
     this.tcMainTabs.Controls.Add( this.tpIMUTest );
     this.tcMainTabs.Controls.Add( this.tpIMUComp );
     this.tcMainTabs.Controls.Add( this.tpVibration );
     this.tcMainTabs.Location = new System.Drawing.Point( 0, 0 );
     this.tcMainTabs.Name = "tcMainTabs";
     this.tcMainTabs.SelectedIndex = 0;
     this.tcMainTabs.Size = new System.Drawing.Size( 641, 356 );
     this.tcMainTabs.TabIndex = 1;
     this.tcMainTabs.SelectedIndexChanged += new System.EventHandler( this.tcMainTabs_SelectedIndexChanged );
     //
     // tpRadioTest
     //
     this.tpRadioTest.Controls.Add( this.groupBox4 );
     this.tpRadioTest.Controls.Add( this.lblFlightMode );
     this.tpRadioTest.Controls.Add( this.lblAux3 );
     this.tpRadioTest.Controls.Add( this.lblAux2 );
     this.tpRadioTest.Controls.Add( this.lblAux1 );
     this.tpRadioTest.Controls.Add( this.lblGear );
     this.tpRadioTest.Controls.Add( this.label36 );
     this.tpRadioTest.Controls.Add( this.label35 );
     this.tpRadioTest.Controls.Add( this.label34 );
     this.tpRadioTest.Controls.Add( this.label33 );
     this.tpRadioTest.Controls.Add( this.textBox1 );
     this.tpRadioTest.Controls.Add( this.label4 );
     this.tpRadioTest.Controls.Add( this.label3 );
     this.tpRadioTest.Controls.Add( this.label2 );
     this.tpRadioTest.Controls.Add( this.label1 );
     this.tpRadioTest.Controls.Add( this.rsRight );
     this.tpRadioTest.Controls.Add( this.rsLeft );
     this.tpRadioTest.Location = new System.Drawing.Point( 4, 22 );
     this.tpRadioTest.Name = "tpRadioTest";
     this.tpRadioTest.Padding = new System.Windows.Forms.Padding( 3 );
     this.tpRadioTest.Size = new System.Drawing.Size( 633, 330 );
     this.tpRadioTest.TabIndex = 0;
     this.tpRadioTest.Text = "Radio Test";
     this.tpRadioTest.UseVisualStyleBackColor = true;
     //
     // groupBox4
     //
     this.groupBox4.Controls.Add( this.label40 );
     this.groupBox4.Controls.Add( this.btnRecPWM );
     this.groupBox4.Controls.Add( this.btnRecSBUS );
     this.groupBox4.Location = new System.Drawing.Point( 459, 206 );
     this.groupBox4.Name = "groupBox4";
     this.groupBox4.Size = new System.Drawing.Size( 166, 110 );
     this.groupBox4.TabIndex = 26;
     this.groupBox4.TabStop = false;
     this.groupBox4.Text = "Receiver Type";
     //
     // label40
     //
     this.label40.AutoSize = true;
     this.label40.Location = new System.Drawing.Point( 6, 64 );
     this.label40.Name = "label40";
     this.label40.Size = new System.Drawing.Size( 135, 39 );
     this.label40.TabIndex = 26;
     this.label40.Text = "Note: Changing receiver\r\ntype requires power-cycling\r\nthe flight controller.";
     //
     // btnRecPWM
     //
     this.btnRecPWM.AutoSize = true;
     this.btnRecPWM.Location = new System.Drawing.Point( 10, 20 );
     this.btnRecPWM.Name = "btnRecPWM";
     this.btnRecPWM.Size = new System.Drawing.Size( 102, 17 );
     this.btnRecPWM.TabIndex = 24;
     this.btnRecPWM.TabStop = true;
     this.btnRecPWM.Text = "PWM (standard)";
     this.btnRecPWM.UseVisualStyleBackColor = true;
     this.btnRecPWM.CheckedChanged += new System.EventHandler( this.btnRecPWM_CheckedChanged );
     //
     // btnRecSBUS
     //
     this.btnRecSBUS.AutoSize = true;
     this.btnRecSBUS.Location = new System.Drawing.Point( 10, 38 );
     this.btnRecSBUS.Name = "btnRecSBUS";
     this.btnRecSBUS.Size = new System.Drawing.Size( 57, 17 );
     this.btnRecSBUS.TabIndex = 25;
     this.btnRecSBUS.TabStop = true;
     this.btnRecSBUS.Text = "S-BUS";
     this.btnRecSBUS.UseVisualStyleBackColor = true;
     this.btnRecSBUS.CheckedChanged += new System.EventHandler( this.btnRecSBUS_CheckedChanged );
     //
     // lblFlightMode
     //
     this.lblFlightMode.Location = new System.Drawing.Point( 503, 52 );
     this.lblFlightMode.Name = "lblFlightMode";
     this.lblFlightMode.Size = new System.Drawing.Size( 69, 13 );
     this.lblFlightMode.TabIndex = 23;
     this.lblFlightMode.Text = "Mode";
     this.lblFlightMode.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblAux3
     //
     this.lblAux3.Location = new System.Drawing.Point( 512, 149 );
     this.lblAux3.Name = "lblAux3";
     this.lblAux3.Size = new System.Drawing.Size( 50, 13 );
     this.lblAux3.TabIndex = 22;
     this.lblAux3.Text = "0";
     this.lblAux3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblAux2
     //
     this.lblAux2.Location = new System.Drawing.Point( 512, 112 );
     this.lblAux2.Name = "lblAux2";
     this.lblAux2.Size = new System.Drawing.Size( 50, 13 );
     this.lblAux2.TabIndex = 21;
     this.lblAux2.Text = "0";
     this.lblAux2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblAux1
     //
     this.lblAux1.Location = new System.Drawing.Point( 512, 75 );
     this.lblAux1.Name = "lblAux1";
     this.lblAux1.Size = new System.Drawing.Size( 50, 13 );
     this.lblAux1.TabIndex = 20;
     this.lblAux1.Text = "0";
     this.lblAux1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblGear
     //
     this.lblGear.Location = new System.Drawing.Point( 512, 38 );
     this.lblGear.Name = "lblGear";
     this.lblGear.Size = new System.Drawing.Size( 50, 13 );
     this.lblGear.TabIndex = 19;
     this.lblGear.Text = "0";
     this.lblGear.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label36
     //
     this.label36.AutoSize = true;
     this.label36.Location = new System.Drawing.Point( 475, 149 );
     this.label36.Name = "label36";
     this.label36.Size = new System.Drawing.Size( 34, 13 );
     this.label36.TabIndex = 18;
     this.label36.Text = "Aux3:";
     //
     // label35
     //
     this.label35.AutoSize = true;
     this.label35.Location = new System.Drawing.Point( 475, 112 );
     this.label35.Name = "label35";
     this.label35.Size = new System.Drawing.Size( 34, 13 );
     this.label35.TabIndex = 17;
     this.label35.Text = "Aux2:";
     //
     // label34
     //
     this.label34.AutoSize = true;
     this.label34.Location = new System.Drawing.Point( 475, 75 );
     this.label34.Name = "label34";
     this.label34.Size = new System.Drawing.Size( 34, 13 );
     this.label34.TabIndex = 16;
     this.label34.Text = "Aux1:";
     //
     // label33
     //
     this.label33.AutoSize = true;
     this.label33.Location = new System.Drawing.Point( 475, 38 );
     this.label33.Name = "label33";
     this.label33.Size = new System.Drawing.Size( 33, 13 );
     this.label33.TabIndex = 15;
     this.label33.Text = "Gear:";
     //
     // textBox1
     //
     this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.textBox1.Enabled = false;
     this.textBox1.Location = new System.Drawing.Point( 98, 212 );
     this.textBox1.Multiline = true;
     this.textBox1.Name = "textBox1";
     this.textBox1.ReadOnly = true;
     this.textBox1.Size = new System.Drawing.Size( 332, 73 );
     this.textBox1.TabIndex = 14;
     this.textBox1.Text = resources.GetString( "textBox1.Text" );
     this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point( 354, 185 );
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size( 46, 13 );
     this.label4.TabIndex = 13;
     this.label4.Text = "Elevator";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point( 259, 93 );
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size( 39, 13 );
     this.label3.TabIndex = 12;
     this.label3.Text = "Aileron";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point( 122, 185 );
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size( 42, 13 );
     this.label2.TabIndex = 11;
     this.label2.Text = "Rudder";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point( 23, 93 );
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size( 43, 13 );
     this.label1.TabIndex = 10;
     this.label1.Text = "Throttle";
     //
     // rsRight
     //
     this.rsRight.Location = new System.Drawing.Point( 302, 24 );
     this.rsRight.Name = "rsRight";
     this.rsRight.Range = 1024F;
     this.rsRight.Size = new System.Drawing.Size( 150, 150 );
     this.rsRight.TabIndex = 9;
     this.rsRight.XValue = 0F;
     this.rsRight.YValue = 0F;
     //
     // rsLeft
     //
     this.rsLeft.Location = new System.Drawing.Point( 68, 24 );
     this.rsLeft.Name = "rsLeft";
     this.rsLeft.Range = 1024F;
     this.rsLeft.Size = new System.Drawing.Size( 150, 150 );
     this.rsLeft.TabIndex = 8;
     this.rsLeft.XValue = 0F;
     this.rsLeft.YValue = 0F;
     //
     // tpSensorTest
     //
     this.tpSensorTest.Controls.Add( this.gAltimeter );
     this.tpSensorTest.Controls.Add( this.label12 );
     this.tpSensorTest.Controls.Add( this.label19 );
     this.tpSensorTest.Controls.Add( this.label21 );
     this.tpSensorTest.Controls.Add( this.label23 );
     this.tpSensorTest.Controls.Add( this.lblAltimeterTemp );
     this.tpSensorTest.Controls.Add( this.label15 );
     this.tpSensorTest.Controls.Add( this.lblAltimeter );
     this.tpSensorTest.Controls.Add( this.label13 );
     this.tpSensorTest.Controls.Add( this.label11 );
     this.tpSensorTest.Controls.Add( this.textBox2 );
     this.tpSensorTest.Controls.Add( this.label8 );
     this.tpSensorTest.Controls.Add( this.label9 );
     this.tpSensorTest.Controls.Add( this.label10 );
     this.tpSensorTest.Controls.Add( this.label7 );
     this.tpSensorTest.Controls.Add( this.label6 );
     this.tpSensorTest.Controls.Add( this.label5 );
     this.tpSensorTest.Controls.Add( this.gHeading );
     this.tpSensorTest.Controls.Add( this.gMagZ );
     this.tpSensorTest.Controls.Add( this.gMagY );
     this.tpSensorTest.Controls.Add( this.gMagX );
     this.tpSensorTest.Controls.Add( this.gGyroTemp );
     this.tpSensorTest.Controls.Add( this.gAccelZ );
     this.tpSensorTest.Controls.Add( this.gAccelY );
     this.tpSensorTest.Controls.Add( this.gAccelX );
     this.tpSensorTest.Controls.Add( this.gGyroZ );
     this.tpSensorTest.Controls.Add( this.gGyroY );
     this.tpSensorTest.Controls.Add( this.gGyroX );
     this.tpSensorTest.Location = new System.Drawing.Point( 4, 22 );
     this.tpSensorTest.Name = "tpSensorTest";
     this.tpSensorTest.Padding = new System.Windows.Forms.Padding( 3 );
     this.tpSensorTest.Size = new System.Drawing.Size( 633, 330 );
     this.tpSensorTest.TabIndex = 1;
     this.tpSensorTest.Text = "Sensor Test";
     this.tpSensorTest.UseVisualStyleBackColor = true;
     //
     // gAltimeter
     //
     this.gAltimeter.Location = new System.Drawing.Point( 414, 146 );
     this.gAltimeter.Name = "gAltimeter";
     this.gAltimeter.Size = new System.Drawing.Size( 211, 124 );
     this.gAltimeter.TabIndex = 31;
     //
     // label12
     //
     this.label12.AutoSize = true;
     this.label12.Location = new System.Drawing.Point( 308, 309 );
     this.label12.Name = "label12";
     this.label12.Size = new System.Drawing.Size( 93, 13 );
     this.label12.TabIndex = 30;
     this.label12.Text = "Compass Heading";
     //
     // label19
     //
     this.label19.AutoSize = true;
     this.label19.Location = new System.Drawing.Point( 201, 309 );
     this.label19.Name = "label19";
     this.label19.Size = new System.Drawing.Size( 60, 13 );
     this.label19.TabIndex = 28;
     this.label19.Text = "Compass Z";
     //
     // label21
     //
     this.label21.AutoSize = true;
     this.label21.Location = new System.Drawing.Point( 103, 309 );
     this.label21.Name = "label21";
     this.label21.Size = new System.Drawing.Size( 60, 13 );
     this.label21.TabIndex = 27;
     this.label21.Text = "Compass Y";
     //
     // label23
     //
     this.label23.AutoSize = true;
     this.label23.Location = new System.Drawing.Point( 8, 309 );
     this.label23.Name = "label23";
     this.label23.Size = new System.Drawing.Size( 60, 13 );
     this.label23.TabIndex = 26;
     this.label23.Text = "Compass X";
     //
     // lblAltimeterTemp
     //
     this.lblAltimeterTemp.Location = new System.Drawing.Point( 500, 129 );
     this.lblAltimeterTemp.Name = "lblAltimeterTemp";
     this.lblAltimeterTemp.Size = new System.Drawing.Size( 110, 13 );
     this.lblAltimeterTemp.TabIndex = 22;
     this.lblAltimeterTemp.Text = "0";
     //
     // label15
     //
     this.label15.AutoSize = true;
     this.label15.Location = new System.Drawing.Point( 411, 129 );
     this.label15.Name = "label15";
     this.label15.Size = new System.Drawing.Size( 83, 13 );
     this.label15.TabIndex = 21;
     this.label15.Text = "Altimeter Temp :";
     //
     // lblAltimeter
     //
     this.lblAltimeter.Location = new System.Drawing.Point( 469, 111 );
     this.lblAltimeter.Name = "lblAltimeter";
     this.lblAltimeter.Size = new System.Drawing.Size( 136, 13 );
     this.lblAltimeter.TabIndex = 20;
     this.lblAltimeter.Text = "0";
     //
     // label13
     //
     this.label13.AutoSize = true;
     this.label13.Location = new System.Drawing.Point( 410, 111 );
     this.label13.Name = "label13";
     this.label13.Size = new System.Drawing.Size( 53, 13 );
     this.label13.TabIndex = 19;
     this.label13.Text = "Altimeter :";
     //
     // label11
     //
     this.label11.AutoSize = true;
     this.label11.Location = new System.Drawing.Point( 307, 203 );
     this.label11.Name = "label11";
     this.label11.Size = new System.Drawing.Size( 92, 13 );
     this.label11.TabIndex = 17;
     this.label11.Text = "Gyro Temperature";
     //
     // textBox2
     //
     this.textBox2.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.textBox2.Enabled = false;
     this.textBox2.Location = new System.Drawing.Point( 449, 42 );
     this.textBox2.Multiline = true;
     this.textBox2.Name = "textBox2";
     this.textBox2.ReadOnly = true;
     this.textBox2.Size = new System.Drawing.Size( 176, 54 );
     this.textBox2.TabIndex = 15;
     this.textBox2.Text = "Here you should see your Elev8-FC\r\ncontroller sensors responding to\r\nmovement and" +
         " rotation.";
     this.textBox2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     //
     // label8
     //
     this.label8.AutoSize = true;
     this.label8.Location = new System.Drawing.Point( 201, 203 );
     this.label8.Name = "label8";
     this.label8.Size = new System.Drawing.Size( 44, 13 );
     this.label8.TabIndex = 11;
     this.label8.Text = "Accel Z";
     //
     // label9
     //
     this.label9.AutoSize = true;
     this.label9.Location = new System.Drawing.Point( 103, 203 );
     this.label9.Name = "label9";
     this.label9.Size = new System.Drawing.Size( 44, 13 );
     this.label9.TabIndex = 10;
     this.label9.Text = "Accel Y";
     //
     // label10
     //
     this.label10.AutoSize = true;
     this.label10.Location = new System.Drawing.Point( 8, 203 );
     this.label10.Name = "label10";
     this.label10.Size = new System.Drawing.Size( 44, 13 );
     this.label10.TabIndex = 9;
     this.label10.Text = "Accel X";
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Location = new System.Drawing.Point( 207, 97 );
     this.label7.Name = "label7";
     this.label7.Size = new System.Drawing.Size( 39, 13 );
     this.label7.TabIndex = 8;
     this.label7.Text = "Gyro Z";
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Location = new System.Drawing.Point( 103, 97 );
     this.label6.Name = "label6";
     this.label6.Size = new System.Drawing.Size( 39, 13 );
     this.label6.TabIndex = 7;
     this.label6.Text = "Gyro Y";
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point( 8, 97 );
     this.label5.Name = "label5";
     this.label5.Size = new System.Drawing.Size( 39, 13 );
     this.label5.TabIndex = 6;
     this.label5.Text = "Gyro X";
     //
     // gHeading
     //
     this.gHeading.AverageCount = 128;
     this.gHeading.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.gHeading.Location = new System.Drawing.Point( 310, 219 );
     this.gHeading.Name = "gHeading";
     this.gHeading.Range = 1800F;
     this.gHeading.Size = new System.Drawing.Size( 91, 89 );
     this.gHeading.TabIndex = 29;
     this.gHeading.Value = 0F;
     //
     // gMagZ
     //
     this.gMagZ.AverageCount = 128;
     this.gMagZ.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.gMagZ.Location = new System.Drawing.Point( 203, 217 );
     this.gMagZ.Name = "gMagZ";
     this.gMagZ.Range = 4096F;
     this.gMagZ.Size = new System.Drawing.Size( 91, 89 );
     this.gMagZ.TabIndex = 25;
     this.gMagZ.Value = 0F;
     //
     // gMagY
     //
     this.gMagY.AverageCount = 128;
     this.gMagY.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.gMagY.Location = new System.Drawing.Point( 106, 217 );
     this.gMagY.Name = "gMagY";
     this.gMagY.Range = 4096F;
     this.gMagY.Size = new System.Drawing.Size( 91, 89 );
     this.gMagY.TabIndex = 24;
     this.gMagY.Value = 0F;
     //
     // gMagX
     //
     this.gMagX.AverageCount = 128;
     this.gMagX.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.gMagX.Location = new System.Drawing.Point( 9, 217 );
     this.gMagX.Name = "gMagX";
     this.gMagX.Range = 4096F;
     this.gMagX.Size = new System.Drawing.Size( 91, 89 );
     this.gMagX.TabIndex = 23;
     this.gMagX.Value = 0F;
     //
     // gGyroTemp
     //
     this.gGyroTemp.AverageCount = 128;
     this.gGyroTemp.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.gGyroTemp.Location = new System.Drawing.Point( 310, 111 );
     this.gGyroTemp.Name = "gGyroTemp";
     this.gGyroTemp.Range = 1000F;
     this.gGyroTemp.Size = new System.Drawing.Size( 91, 89 );
     this.gGyroTemp.TabIndex = 16;
     this.gGyroTemp.Value = 0F;
     //
     // gAccelZ
     //
     this.gAccelZ.AverageCount = 128;
     this.gAccelZ.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.gAccelZ.Location = new System.Drawing.Point( 203, 111 );
     this.gAccelZ.Name = "gAccelZ";
     this.gAccelZ.Range = 32768F;
     this.gAccelZ.Size = new System.Drawing.Size( 91, 89 );
     this.gAccelZ.TabIndex = 5;
     this.gAccelZ.Value = 0F;
     //
     // gAccelY
     //
     this.gAccelY.AverageCount = 128;
     this.gAccelY.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.gAccelY.Location = new System.Drawing.Point( 106, 111 );
     this.gAccelY.Name = "gAccelY";
     this.gAccelY.Range = 32768F;
     this.gAccelY.Size = new System.Drawing.Size( 91, 89 );
     this.gAccelY.TabIndex = 4;
     this.gAccelY.Value = 0F;
     //
     // gAccelX
     //
     this.gAccelX.AverageCount = 128;
     this.gAccelX.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.gAccelX.Location = new System.Drawing.Point( 9, 111 );
     this.gAccelX.Name = "gAccelX";
     this.gAccelX.Range = 32768F;
     this.gAccelX.Size = new System.Drawing.Size( 91, 89 );
     this.gAccelX.TabIndex = 3;
     this.gAccelX.Value = 0F;
     //
     // gGyroZ
     //
     this.gGyroZ.AverageCount = 128;
     this.gGyroZ.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.gGyroZ.Location = new System.Drawing.Point( 204, 5 );
     this.gGyroZ.Name = "gGyroZ";
     this.gGyroZ.Range = 32768F;
     this.gGyroZ.Size = new System.Drawing.Size( 91, 89 );
     this.gGyroZ.TabIndex = 2;
     this.gGyroZ.Value = 0F;
     //
     // gGyroY
     //
     this.gGyroY.AverageCount = 128;
     this.gGyroY.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.gGyroY.Location = new System.Drawing.Point( 106, 5 );
     this.gGyroY.Name = "gGyroY";
     this.gGyroY.Range = 32768F;
     this.gGyroY.Size = new System.Drawing.Size( 91, 89 );
     this.gGyroY.TabIndex = 1;
     this.gGyroY.Value = 0F;
     //
     // gGyroX
     //
     this.gGyroX.AverageCount = 128;
     this.gGyroX.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.gGyroX.Location = new System.Drawing.Point( 9, 5 );
     this.gGyroX.Name = "gGyroX";
     this.gGyroX.Range = 32768F;
     this.gGyroX.Size = new System.Drawing.Size( 91, 89 );
     this.gGyroX.TabIndex = 0;
     this.gGyroX.Value = 0F;
     //
     // tpMotorTest
     //
     this.tpMotorTest.Controls.Add( this.lblCalibrateDocs );
     this.tpMotorTest.Controls.Add( this.btnThrottleCalibrate );
     this.tpMotorTest.Controls.Add( this.btnLED );
     this.tpMotorTest.Controls.Add( this.btnBeeper );
     this.tpMotorTest.Controls.Add( this.textBox3 );
     this.tpMotorTest.Controls.Add( this.btnMotor4 );
     this.tpMotorTest.Controls.Add( this.btnMotor3 );
     this.tpMotorTest.Controls.Add( this.btnMotor2 );
     this.tpMotorTest.Controls.Add( this.btnMotor1 );
     this.tpMotorTest.Location = new System.Drawing.Point( 4, 22 );
     this.tpMotorTest.Name = "tpMotorTest";
     this.tpMotorTest.Size = new System.Drawing.Size( 633, 330 );
     this.tpMotorTest.TabIndex = 2;
     this.tpMotorTest.Text = "Motor Test";
     this.tpMotorTest.UseVisualStyleBackColor = true;
     //
     // lblCalibrateDocs
     //
     this.lblCalibrateDocs.Location = new System.Drawing.Point( 57, 279 );
     this.lblCalibrateDocs.Name = "lblCalibrateDocs";
     this.lblCalibrateDocs.Size = new System.Drawing.Size( 301, 31 );
     this.lblCalibrateDocs.TabIndex = 18;
     this.lblCalibrateDocs.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // btnThrottleCalibrate
     //
     this.btnThrottleCalibrate.Location = new System.Drawing.Point( 170, 219 );
     this.btnThrottleCalibrate.Name = "btnThrottleCalibrate";
     this.btnThrottleCalibrate.Size = new System.Drawing.Size( 75, 47 );
     this.btnThrottleCalibrate.TabIndex = 17;
     this.btnThrottleCalibrate.Text = "Throttle Calibration";
     this.btnThrottleCalibrate.UseVisualStyleBackColor = true;
     this.btnThrottleCalibrate.Click += new System.EventHandler( this.btnThrottleCalibrate_Click );
     //
     // btnLED
     //
     this.btnLED.Location = new System.Drawing.Point( 170, 161 );
     this.btnLED.Name = "btnLED";
     this.btnLED.Size = new System.Drawing.Size( 75, 33 );
     this.btnLED.TabIndex = 5;
     this.btnLED.Text = "LED";
     this.btnLED.UseVisualStyleBackColor = true;
     this.btnLED.Click += new System.EventHandler( this.btnLED_Click );
     //
     // btnBeeper
     //
     this.btnBeeper.Location = new System.Drawing.Point( 170, 113 );
     this.btnBeeper.Name = "btnBeeper";
     this.btnBeeper.Size = new System.Drawing.Size( 75, 33 );
     this.btnBeeper.TabIndex = 4;
     this.btnBeeper.Text = "Beeper";
     this.btnBeeper.UseVisualStyleBackColor = true;
     this.btnBeeper.Click += new System.EventHandler( this.btnBeeper_Click );
     //
     // textBox3
     //
     this.textBox3.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.textBox3.Enabled = false;
     this.textBox3.Location = new System.Drawing.Point( 407, 73 );
     this.textBox3.Multiline = true;
     this.textBox3.Name = "textBox3";
     this.textBox3.ReadOnly = true;
     this.textBox3.Size = new System.Drawing.Size( 185, 155 );
     this.textBox3.TabIndex = 16;
     this.textBox3.Text = resources.GetString( "textBox3.Text" );
     this.textBox3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     //
     // btnMotor4
     //
     this.btnMotor4.Image = global::Elev8.Properties.Resources.Icon_CounterClockwise;
     this.btnMotor4.Location = new System.Drawing.Point( 57, 209 );
     this.btnMotor4.Name = "btnMotor4";
     this.btnMotor4.Size = new System.Drawing.Size( 75, 67 );
     this.btnMotor4.TabIndex = 3;
     this.btnMotor4.Text = "4";
     this.btnMotor4.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
     this.btnMotor4.UseVisualStyleBackColor = true;
     this.btnMotor4.Click += new System.EventHandler( this.btnMotor4_Click );
     this.btnMotor4.MouseDown += new System.Windows.Forms.MouseEventHandler( this.btnMotor4_MouseDown );
     this.btnMotor4.MouseUp += new System.Windows.Forms.MouseEventHandler( this.btnMotor_MouseUp );
     //
     // btnMotor3
     //
     this.btnMotor3.Image = global::Elev8.Properties.Resources.Icon_Clockwise;
     this.btnMotor3.Location = new System.Drawing.Point( 283, 209 );
     this.btnMotor3.Name = "btnMotor3";
     this.btnMotor3.Size = new System.Drawing.Size( 75, 67 );
     this.btnMotor3.TabIndex = 2;
     this.btnMotor3.Text = "3";
     this.btnMotor3.TextAlign = System.Drawing.ContentAlignment.BottomRight;
     this.btnMotor3.UseVisualStyleBackColor = true;
     this.btnMotor3.Click += new System.EventHandler( this.btnMotor3_Click );
     this.btnMotor3.MouseDown += new System.Windows.Forms.MouseEventHandler( this.btnMotor3_MouseDown );
     this.btnMotor3.MouseUp += new System.Windows.Forms.MouseEventHandler( this.btnMotor_MouseUp );
     //
     // btnMotor2
     //
     this.btnMotor2.Image = global::Elev8.Properties.Resources.Icon_CounterClockwise;
     this.btnMotor2.Location = new System.Drawing.Point( 283, 31 );
     this.btnMotor2.Name = "btnMotor2";
     this.btnMotor2.Size = new System.Drawing.Size( 75, 67 );
     this.btnMotor2.TabIndex = 1;
     this.btnMotor2.Text = "2";
     this.btnMotor2.TextAlign = System.Drawing.ContentAlignment.TopRight;
     this.btnMotor2.UseVisualStyleBackColor = true;
     this.btnMotor2.MouseDown += new System.Windows.Forms.MouseEventHandler( this.btnMotor2_MouseDown );
     this.btnMotor2.MouseUp += new System.Windows.Forms.MouseEventHandler( this.btnMotor_MouseUp );
     //
     // btnMotor1
     //
     this.btnMotor1.Image = global::Elev8.Properties.Resources.Icon_Clockwise;
     this.btnMotor1.Location = new System.Drawing.Point( 57, 31 );
     this.btnMotor1.Name = "btnMotor1";
     this.btnMotor1.Size = new System.Drawing.Size( 75, 67 );
     this.btnMotor1.TabIndex = 0;
     this.btnMotor1.Text = "1";
     this.btnMotor1.TextAlign = System.Drawing.ContentAlignment.TopLeft;
     this.btnMotor1.UseVisualStyleBackColor = true;
     this.btnMotor1.MouseDown += new System.Windows.Forms.MouseEventHandler( this.btnMotor1_MouseDown );
     this.btnMotor1.MouseUp += new System.Windows.Forms.MouseEventHandler( this.btnMotor_MouseUp );
     //
     // tpGyroCalibration
     //
     this.tpGyroCalibration.Controls.Add( this.gCalibTemp );
     this.tpGyroCalibration.Controls.Add( this.gCalibZ );
     this.tpGyroCalibration.Controls.Add( this.gCalibY );
     this.tpGyroCalibration.Controls.Add( this.gCalibX );
     this.tpGyroCalibration.Controls.Add( this.btnUploadGyroCalibration );
     this.tpGyroCalibration.Controls.Add( this.btnResetGyroCal );
     this.tpGyroCalibration.Controls.Add( this.groupBox10 );
     this.tpGyroCalibration.Controls.Add( this.groupBox11 );
     this.tpGyroCalibration.Controls.Add( this.groupBox12 );
     this.tpGyroCalibration.Controls.Add( this.lfGraph );
     this.tpGyroCalibration.Location = new System.Drawing.Point( 4, 22 );
     this.tpGyroCalibration.Name = "tpGyroCalibration";
     this.tpGyroCalibration.Size = new System.Drawing.Size( 633, 330 );
     this.tpGyroCalibration.TabIndex = 3;
     this.tpGyroCalibration.Text = "Gyro Calibration";
     this.tpGyroCalibration.UseVisualStyleBackColor = true;
     //
     // gCalibTemp
     //
     this.gCalibTemp.AverageCount = 128;
     this.gCalibTemp.Location = new System.Drawing.Point( 205, 238 );
     this.gCalibTemp.Name = "gCalibTemp";
     this.gCalibTemp.Range = 8192F;
     this.gCalibTemp.Size = new System.Drawing.Size( 84, 84 );
     this.gCalibTemp.TabIndex = 28;
     this.gCalibTemp.Value = 0F;
     //
     // gCalibZ
     //
     this.gCalibZ.AverageCount = 128;
     this.gCalibZ.Location = new System.Drawing.Point( 514, 238 );
     this.gCalibZ.Name = "gCalibZ";
     this.gCalibZ.Range = 8192F;
     this.gCalibZ.Size = new System.Drawing.Size( 84, 84 );
     this.gCalibZ.TabIndex = 27;
     this.gCalibZ.Value = 0F;
     //
     // gCalibY
     //
     this.gCalibY.AverageCount = 128;
     this.gCalibY.Location = new System.Drawing.Point( 420, 238 );
     this.gCalibY.Name = "gCalibY";
     this.gCalibY.Range = 8192F;
     this.gCalibY.Size = new System.Drawing.Size( 84, 84 );
     this.gCalibY.TabIndex = 26;
     this.gCalibY.Value = 0F;
     //
     // gCalibX
     //
     this.gCalibX.AverageCount = 128;
     this.gCalibX.Location = new System.Drawing.Point( 326, 238 );
     this.gCalibX.Name = "gCalibX";
     this.gCalibX.Range = 8192F;
     this.gCalibX.Size = new System.Drawing.Size( 84, 84 );
     this.gCalibX.TabIndex = 25;
     this.gCalibX.Value = 0F;
     //
     // btnUploadGyroCalibration
     //
     this.btnUploadGyroCalibration.Location = new System.Drawing.Point( 15, 212 );
     this.btnUploadGyroCalibration.Name = "btnUploadGyroCalibration";
     this.btnUploadGyroCalibration.Size = new System.Drawing.Size( 147, 23 );
     this.btnUploadGyroCalibration.TabIndex = 24;
     this.btnUploadGyroCalibration.Text = "Upload Calibration Settings";
     this.btnUploadGyroCalibration.UseVisualStyleBackColor = true;
     this.btnUploadGyroCalibration.Click += new System.EventHandler( this.btnUploadCalibration_Click );
     //
     // btnResetGyroCal
     //
     this.btnResetGyroCal.Location = new System.Drawing.Point( 14, 160 );
     this.btnResetGyroCal.Name = "btnResetGyroCal";
     this.btnResetGyroCal.Size = new System.Drawing.Size( 147, 23 );
     this.btnResetGyroCal.TabIndex = 23;
     this.btnResetGyroCal.Text = "Restart Calibration";
     this.btnResetGyroCal.UseVisualStyleBackColor = true;
     this.btnResetGyroCal.Click += new System.EventHandler( this.btnResetCalib_Click );
     //
     // groupBox10
     //
     this.groupBox10.Controls.Add( this.label18 );
     this.groupBox10.Controls.Add( this.gzOffset );
     this.groupBox10.Controls.Add( this.label20 );
     this.groupBox10.Controls.Add( this.gzScale );
     this.groupBox10.Location = new System.Drawing.Point( 4, 95 );
     this.groupBox10.Name = "groupBox10";
     this.groupBox10.Size = new System.Drawing.Size( 168, 40 );
     this.groupBox10.TabIndex = 22;
     this.groupBox10.TabStop = false;
     this.groupBox10.Text = "GZ";
     //
     // label18
     //
     this.label18.AutoSize = true;
     this.label18.Location = new System.Drawing.Point( 91, 14 );
     this.label18.Name = "label18";
     this.label18.Size = new System.Drawing.Size( 35, 13 );
     this.label18.TabIndex = 11;
     this.label18.Text = "Offset";
     this.label18.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // gzOffset
     //
     this.gzOffset.Location = new System.Drawing.Point( 132, 14 );
     this.gzOffset.Name = "gzOffset";
     this.gzOffset.Size = new System.Drawing.Size( 36, 13 );
     this.gzOffset.TabIndex = 10;
     this.gzOffset.Text = "0";
     this.gzOffset.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label20
     //
     this.label20.AutoSize = true;
     this.label20.Location = new System.Drawing.Point( 8, 14 );
     this.label20.Name = "label20";
     this.label20.Size = new System.Drawing.Size( 34, 13 );
     this.label20.TabIndex = 8;
     this.label20.Text = "Scale";
     this.label20.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // gzScale
     //
     this.gzScale.Location = new System.Drawing.Point( 47, 14 );
     this.gzScale.Name = "gzScale";
     this.gzScale.Size = new System.Drawing.Size( 36, 13 );
     this.gzScale.TabIndex = 9;
     this.gzScale.Text = "0";
     this.gzScale.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // groupBox11
     //
     this.groupBox11.Controls.Add( this.label22 );
     this.groupBox11.Controls.Add( this.gyOffset );
     this.groupBox11.Controls.Add( this.label24 );
     this.groupBox11.Controls.Add( this.gyScale );
     this.groupBox11.Location = new System.Drawing.Point( 3, 49 );
     this.groupBox11.Name = "groupBox11";
     this.groupBox11.Size = new System.Drawing.Size( 169, 40 );
     this.groupBox11.TabIndex = 21;
     this.groupBox11.TabStop = false;
     this.groupBox11.Text = "GY";
     //
     // label22
     //
     this.label22.AutoSize = true;
     this.label22.Location = new System.Drawing.Point( 92, 14 );
     this.label22.Name = "label22";
     this.label22.Size = new System.Drawing.Size( 35, 13 );
     this.label22.TabIndex = 11;
     this.label22.Text = "Offset";
     this.label22.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // gyOffset
     //
     this.gyOffset.Location = new System.Drawing.Point( 133, 14 );
     this.gyOffset.Name = "gyOffset";
     this.gyOffset.Size = new System.Drawing.Size( 36, 13 );
     this.gyOffset.TabIndex = 10;
     this.gyOffset.Text = "0";
     this.gyOffset.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label24
     //
     this.label24.AutoSize = true;
     this.label24.Location = new System.Drawing.Point( 8, 14 );
     this.label24.Name = "label24";
     this.label24.Size = new System.Drawing.Size( 34, 13 );
     this.label24.TabIndex = 8;
     this.label24.Text = "Scale";
     this.label24.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // gyScale
     //
     this.gyScale.Location = new System.Drawing.Point( 47, 14 );
     this.gyScale.Name = "gyScale";
     this.gyScale.Size = new System.Drawing.Size( 36, 13 );
     this.gyScale.TabIndex = 9;
     this.gyScale.Text = "0";
     this.gyScale.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // groupBox12
     //
     this.groupBox12.Controls.Add( this.label26 );
     this.groupBox12.Controls.Add( this.gxOffset );
     this.groupBox12.Controls.Add( this.label28 );
     this.groupBox12.Controls.Add( this.gxScale );
     this.groupBox12.Location = new System.Drawing.Point( 3, 3 );
     this.groupBox12.Name = "groupBox12";
     this.groupBox12.Size = new System.Drawing.Size( 169, 40 );
     this.groupBox12.TabIndex = 20;
     this.groupBox12.TabStop = false;
     this.groupBox12.Text = "GX";
     //
     // label26
     //
     this.label26.AutoSize = true;
     this.label26.Location = new System.Drawing.Point( 92, 16 );
     this.label26.Name = "label26";
     this.label26.Size = new System.Drawing.Size( 35, 13 );
     this.label26.TabIndex = 7;
     this.label26.Text = "Offset";
     this.label26.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // gxOffset
     //
     this.gxOffset.Location = new System.Drawing.Point( 133, 16 );
     this.gxOffset.Name = "gxOffset";
     this.gxOffset.Size = new System.Drawing.Size( 36, 13 );
     this.gxOffset.TabIndex = 6;
     this.gxOffset.Text = "0";
     this.gxOffset.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label28
     //
     this.label28.AutoSize = true;
     this.label28.Location = new System.Drawing.Point( 8, 16 );
     this.label28.Name = "label28";
     this.label28.Size = new System.Drawing.Size( 34, 13 );
     this.label28.TabIndex = 4;
     this.label28.Text = "Scale";
     this.label28.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
     //
     // gxScale
     //
     this.gxScale.Location = new System.Drawing.Point( 47, 16 );
     this.gxScale.Name = "gxScale";
     this.gxScale.Size = new System.Drawing.Size( 36, 13 );
     this.gxScale.TabIndex = 5;
     this.gxScale.Text = "0";
     this.gxScale.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lfGraph
     //
     this.lfGraph.Location = new System.Drawing.Point( 178, 3 );
     this.lfGraph.Name = "lfGraph";
     this.lfGraph.Size = new System.Drawing.Size( 447, 232 );
     this.lfGraph.TabIndex = 0;
     //
     // tpAccelCalibration
     //
     this.tpAccelCalibration.Controls.Add( this.groupBox6 );
     this.tpAccelCalibration.Controls.Add( this.groupBox5 );
     this.tpAccelCalibration.Location = new System.Drawing.Point( 4, 22 );
     this.tpAccelCalibration.Name = "tpAccelCalibration";
     this.tpAccelCalibration.Size = new System.Drawing.Size( 633, 330 );
     this.tpAccelCalibration.TabIndex = 7;
     this.tpAccelCalibration.Text = "Accel Calibration";
     this.tpAccelCalibration.UseVisualStyleBackColor = true;
     //
     // lblAccelCalFinal
     //
     this.lblAccelCalFinal.Location = new System.Drawing.Point( 100, 278 );
     this.lblAccelCalFinal.Name = "lblAccelCalFinal";
     this.lblAccelCalFinal.Size = new System.Drawing.Size( 147, 18 );
     this.lblAccelCalFinal.TabIndex = 27;
     //
     // lblAccelCal4
     //
     this.lblAccelCal4.Location = new System.Drawing.Point( 100, 241 );
     this.lblAccelCal4.Name = "lblAccelCal4";
     this.lblAccelCal4.Size = new System.Drawing.Size( 147, 18 );
     this.lblAccelCal4.TabIndex = 26;
     //
     // lblAccelCal3
     //
     this.lblAccelCal3.Location = new System.Drawing.Point( 100, 212 );
     this.lblAccelCal3.Name = "lblAccelCal3";
     this.lblAccelCal3.Size = new System.Drawing.Size( 147, 18 );
     this.lblAccelCal3.TabIndex = 25;
     //
     // lblAccelCal2
     //
     this.lblAccelCal2.Location = new System.Drawing.Point( 100, 183 );
     this.lblAccelCal2.Name = "lblAccelCal2";
     this.lblAccelCal2.Size = new System.Drawing.Size( 147, 18 );
     this.lblAccelCal2.TabIndex = 24;
     //
     // lblAccelCal1
     //
     this.lblAccelCal1.Location = new System.Drawing.Point( 100, 154 );
     this.lblAccelCal1.Name = "lblAccelCal1";
     this.lblAccelCal1.Size = new System.Drawing.Size( 147, 18 );
     this.lblAccelCal1.TabIndex = 23;
     //
     // btnUploadAccelCal
     //
     this.btnUploadAccelCal.Location = new System.Drawing.Point( 8, 273 );
     this.btnUploadAccelCal.Name = "btnUploadAccelCal";
     this.btnUploadAccelCal.Size = new System.Drawing.Size( 75, 23 );
     this.btnUploadAccelCal.TabIndex = 22;
     this.btnUploadAccelCal.Text = "Upload";
     this.btnUploadAccelCal.UseVisualStyleBackColor = true;
     this.btnUploadAccelCal.Click += new System.EventHandler( this.btnUploadAccelCal_Click );
     //
     // btnAccelCal4
     //
     this.btnAccelCal4.Location = new System.Drawing.Point( 8, 236 );
     this.btnAccelCal4.Name = "btnAccelCal4";
     this.btnAccelCal4.Size = new System.Drawing.Size( 75, 23 );
     this.btnAccelCal4.TabIndex = 21;
     this.btnAccelCal4.Text = "Reading 4";
     this.btnAccelCal4.UseVisualStyleBackColor = true;
     this.btnAccelCal4.Click += new System.EventHandler( this.btnAccelCal4_Click );
     //
     // btnAccelCal3
     //
     this.btnAccelCal3.Location = new System.Drawing.Point( 8, 207 );
     this.btnAccelCal3.Name = "btnAccelCal3";
     this.btnAccelCal3.Size = new System.Drawing.Size( 75, 23 );
     this.btnAccelCal3.TabIndex = 20;
     this.btnAccelCal3.Text = "Reading 3";
     this.btnAccelCal3.UseVisualStyleBackColor = true;
     this.btnAccelCal3.Click += new System.EventHandler( this.btnAccelCal3_Click );
     //
     // btnAccelCal2
     //
     this.btnAccelCal2.Location = new System.Drawing.Point( 8, 178 );
     this.btnAccelCal2.Name = "btnAccelCal2";
     this.btnAccelCal2.Size = new System.Drawing.Size( 75, 23 );
     this.btnAccelCal2.TabIndex = 19;
     this.btnAccelCal2.Text = "Reading 2";
     this.btnAccelCal2.UseVisualStyleBackColor = true;
     this.btnAccelCal2.Click += new System.EventHandler( this.btnAccelCal2_Click );
     //
     // btnAccelCal1
     //
     this.btnAccelCal1.Location = new System.Drawing.Point( 8, 149 );
     this.btnAccelCal1.Name = "btnAccelCal1";
     this.btnAccelCal1.Size = new System.Drawing.Size( 75, 23 );
     this.btnAccelCal1.TabIndex = 18;
     this.btnAccelCal1.Text = "Reading 1";
     this.btnAccelCal1.UseVisualStyleBackColor = true;
     this.btnAccelCal1.Click += new System.EventHandler( this.btnAccelCal1_Click );
     //
     // label37
     //
     this.label37.AutoSize = true;
     this.label37.Location = new System.Drawing.Point( 198, 111 );
     this.label37.Name = "label37";
     this.label37.Size = new System.Drawing.Size( 44, 13 );
     this.label37.TabIndex = 17;
     this.label37.Text = "Accel Z";
     //
     // label38
     //
     this.label38.AutoSize = true;
     this.label38.Location = new System.Drawing.Point( 100, 111 );
     this.label38.Name = "label38";
     this.label38.Size = new System.Drawing.Size( 44, 13 );
     this.label38.TabIndex = 16;
     this.label38.Text = "Accel Y";
     //
     // label39
     //
     this.label39.AutoSize = true;
     this.label39.Location = new System.Drawing.Point( 5, 111 );
     this.label39.Name = "label39";
     this.label39.Size = new System.Drawing.Size( 44, 13 );
     this.label39.TabIndex = 15;
     this.label39.Text = "Accel X";
     //
     // gAccelZCal
     //
     this.gAccelZCal.AverageCount = 325;
     this.gAccelZCal.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.gAccelZCal.Location = new System.Drawing.Point( 200, 19 );
     this.gAccelZCal.Name = "gAccelZCal";
     this.gAccelZCal.Range = 32768F;
     this.gAccelZCal.Size = new System.Drawing.Size( 91, 89 );
     this.gAccelZCal.TabIndex = 14;
     this.gAccelZCal.Value = 0F;
     //
     // gAccelYCal
     //
     this.gAccelYCal.AverageCount = 325;
     this.gAccelYCal.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.gAccelYCal.Location = new System.Drawing.Point( 103, 19 );
     this.gAccelYCal.Name = "gAccelYCal";
     this.gAccelYCal.Range = 32768F;
     this.gAccelYCal.Size = new System.Drawing.Size( 91, 89 );
     this.gAccelYCal.TabIndex = 13;
     this.gAccelYCal.Value = 0F;
     //
     // gAccelXCal
     //
     this.gAccelXCal.AverageCount = 325;
     this.gAccelXCal.Font = new System.Drawing.Font( "Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.gAccelXCal.Location = new System.Drawing.Point( 6, 19 );
     this.gAccelXCal.Name = "gAccelXCal";
     this.gAccelXCal.Range = 32768F;
     this.gAccelXCal.Size = new System.Drawing.Size( 91, 89 );
     this.gAccelXCal.TabIndex = 12;
     this.gAccelXCal.Value = 0F;
     //
     // tpIMUTest
     //
     this.tpIMUTest.Controls.Add( this.label17 );
     this.tpIMUTest.Controls.Add( this.label16 );
     this.tpIMUTest.Controls.Add( this.label14 );
     this.tpIMUTest.Controls.Add( this.textBox4 );
     this.tpIMUTest.Controls.Add( this.gYaw );
     this.tpIMUTest.Controls.Add( this.gRoll );
     this.tpIMUTest.Controls.Add( this.gPitch );
     this.tpIMUTest.Controls.Add( this.ocOrientation );
     this.tpIMUTest.Location = new System.Drawing.Point( 4, 22 );
     this.tpIMUTest.Name = "tpIMUTest";
     this.tpIMUTest.Size = new System.Drawing.Size( 633, 330 );
     this.tpIMUTest.TabIndex = 4;
     this.tpIMUTest.Text = "IMU Test";
     this.tpIMUTest.UseVisualStyleBackColor = true;
     //
     // label17
     //
     this.label17.AutoSize = true;
     this.label17.Location = new System.Drawing.Point( 512, 303 );
     this.label17.Name = "label17";
     this.label17.Size = new System.Drawing.Size( 28, 13 );
     this.label17.TabIndex = 23;
     this.label17.Text = "Yaw";
     //
     // label16
     //
     this.label16.AutoSize = true;
     this.label16.Location = new System.Drawing.Point( 568, 106 );
     this.label16.Name = "label16";
     this.label16.Size = new System.Drawing.Size( 25, 13 );
     this.label16.TabIndex = 22;
     this.label16.Text = "Roll";
     //
     // label14
     //
     this.label14.AutoSize = true;
     this.label14.Location = new System.Drawing.Point( 459, 106 );
     this.label14.Name = "label14";
     this.label14.Size = new System.Drawing.Size( 31, 13 );
     this.label14.TabIndex = 21;
     this.label14.Text = "Pitch";
     //
     // textBox4
     //
     this.textBox4.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.textBox4.Enabled = false;
     this.textBox4.Location = new System.Drawing.Point( 424, 122 );
     this.textBox4.Multiline = true;
     this.textBox4.Name = "textBox4";
     this.textBox4.ReadOnly = true;
     this.textBox4.Size = new System.Drawing.Size( 201, 82 );
     this.textBox4.TabIndex = 17;
     this.textBox4.Text = "\r\nThe box to the left is a representation\r\nof your Elev8-FC control board.  If\r\ny" +
         "our controller is level, the box\r\nshould be too.";
     this.textBox4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     //
     // gYaw
     //
     this.gYaw.AverageCount = 128;
     this.gYaw.Location = new System.Drawing.Point( 481, 210 );
     this.gYaw.Name = "gYaw";
     this.gYaw.Range = 32768F;
     this.gYaw.Size = new System.Drawing.Size( 90, 90 );
     this.gYaw.TabIndex = 20;
     this.gYaw.Value = 0F;
     //
     // gRoll
     //
     this.gRoll.AverageCount = 128;
     this.gRoll.Location = new System.Drawing.Point( 535, 13 );
     this.gRoll.Name = "gRoll";
     this.gRoll.Range = 32768F;
     this.gRoll.Size = new System.Drawing.Size( 90, 90 );
     this.gRoll.TabIndex = 19;
     this.gRoll.Value = 0F;
     //
     // gPitch
     //
     this.gPitch.AverageCount = 128;
     this.gPitch.Location = new System.Drawing.Point( 429, 13 );
     this.gPitch.Name = "gPitch";
     this.gPitch.Range = 32768F;
     this.gPitch.Size = new System.Drawing.Size( 90, 90 );
     this.gPitch.TabIndex = 18;
     this.gPitch.Value = 0F;
     //
     // ocOrientation
     //
     this.ocOrientation.CubeDepth = 1F;
     this.ocOrientation.CubeHeight = 0.2F;
     this.ocOrientation.CubeWidth = 1F;
     this.ocOrientation.Location = new System.Drawing.Point( 4, 4 );
     this.ocOrientation.Name = "ocOrientation";
     this.ocOrientation.Size = new System.Drawing.Size( 414, 312 );
     this.ocOrientation.TabIndex = 0;
     //
     // tpIMUComp
     //
     this.tpIMUComp.Controls.Add( this.lblStatOutput );
     this.tpIMUComp.Controls.Add( this.label27 );
     this.tpIMUComp.Controls.Add( this.label25 );
     this.tpIMUComp.Controls.Add( this.ocCompQ2 );
     this.tpIMUComp.Controls.Add( this.ocCompQ1 );
     this.tpIMUComp.Location = new System.Drawing.Point( 4, 22 );
     this.tpIMUComp.Name = "tpIMUComp";
     this.tpIMUComp.Size = new System.Drawing.Size( 633, 330 );
     this.tpIMUComp.TabIndex = 5;
     this.tpIMUComp.Text = "IMU Compare";
     this.tpIMUComp.UseVisualStyleBackColor = true;
     //
     // lblStatOutput
     //
     this.lblStatOutput.Font = new System.Drawing.Font( "Lucida Console", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)) );
     this.lblStatOutput.Location = new System.Drawing.Point( 9, 215 );
     this.lblStatOutput.Name = "lblStatOutput";
     this.lblStatOutput.Size = new System.Drawing.Size( 616, 30 );
     this.lblStatOutput.TabIndex = 4;
     this.lblStatOutput.Text = "Test test";
     //
     // label27
     //
     this.label27.AutoSize = true;
     this.label27.Location = new System.Drawing.Point( 324, 175 );
     this.label27.Name = "label27";
     this.label27.Size = new System.Drawing.Size( 87, 13 );
     this.label27.TabIndex = 3;
     this.label27.Text = "Alternate method";
     this.label27.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // label25
     //
     this.label25.AutoSize = true;
     this.label25.Location = new System.Drawing.Point( 88, 175 );
     this.label25.Name = "label25";
     this.label25.Size = new System.Drawing.Size( 80, 13 );
     this.label25.TabIndex = 2;
     this.label25.Text = "Original method";
     this.label25.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // ocCompQ2
     //
     this.ocCompQ2.CubeDepth = 1.1F;
     this.ocCompQ2.CubeHeight = 0.2F;
     this.ocCompQ2.CubeWidth = 1.1F;
     this.ocCompQ2.Location = new System.Drawing.Point( 248, 32 );
     this.ocCompQ2.Name = "ocCompQ2";
     this.ocCompQ2.Size = new System.Drawing.Size( 234, 140 );
     this.ocCompQ2.TabIndex = 1;
     //
     // ocCompQ1
     //
     this.ocCompQ1.CubeDepth = 1.1F;
     this.ocCompQ1.CubeHeight = 0.2F;
     this.ocCompQ1.CubeWidth = 1.1F;
     this.ocCompQ1.Location = new System.Drawing.Point( 8, 32 );
     this.ocCompQ1.Name = "ocCompQ1";
     this.ocCompQ1.Size = new System.Drawing.Size( 234, 140 );
     this.ocCompQ1.TabIndex = 0;
     //
     // tpVibration
     //
     this.tpVibration.Controls.Add( this.label32 );
     this.tpVibration.Controls.Add( this.label31 );
     this.tpVibration.Controls.Add( this.label30 );
     this.tpVibration.Controls.Add( this.label29 );
     this.tpVibration.Controls.Add( this.groupBox3 );
     this.tpVibration.Controls.Add( this.groupBox2 );
     this.tpVibration.Controls.Add( this.groupBox1 );
     this.tpVibration.Controls.Add( this.grGyro );
     this.tpVibration.Location = new System.Drawing.Point( 4, 22 );
     this.tpVibration.Name = "tpVibration";
     this.tpVibration.Size = new System.Drawing.Size( 633, 330 );
     this.tpVibration.TabIndex = 6;
     this.tpVibration.Text = "Vibration Test";
     this.tpVibration.UseVisualStyleBackColor = true;
     //
     // label32
     //
     this.label32.AutoSize = true;
     this.label32.Location = new System.Drawing.Point( 180, 128 );
     this.label32.Name = "label32";
     this.label32.Size = new System.Drawing.Size( 49, 13 );
     this.label32.TabIndex = 27;
     this.label32.Text = "Variance";
     //
     // label31
     //
     this.label31.AutoSize = true;
     this.label31.Location = new System.Drawing.Point( 135, 128 );
     this.label31.Name = "label31";
     this.label31.Size = new System.Drawing.Size( 26, 13 );
     this.label31.TabIndex = 26;
     this.label31.Text = "Avg";
     //
     // label30
     //
     this.label30.AutoSize = true;
     this.label30.Location = new System.Drawing.Point( 80, 128 );
     this.label30.Name = "label30";
     this.label30.Size = new System.Drawing.Size( 27, 13 );
     this.label30.TabIndex = 25;
     this.label30.Text = "Max";
     //
     // label29
     //
     this.label29.AutoSize = true;
     this.label29.Location = new System.Drawing.Point( 25, 128 );
     this.label29.Name = "label29";
     this.label29.Size = new System.Drawing.Size( 24, 13 );
     this.label29.TabIndex = 24;
     this.label29.Text = "Min";
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add( this.lblGZAvg );
     this.groupBox3.Controls.Add( this.lblGZVar );
     this.groupBox3.Controls.Add( this.lblGZMin );
     this.groupBox3.Controls.Add( this.lblGZMax );
     this.groupBox3.Location = new System.Drawing.Point( 8, 85 );
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.Size = new System.Drawing.Size( 231, 40 );
     this.groupBox3.TabIndex = 19;
     this.groupBox3.TabStop = false;
     this.groupBox3.Text = "GZ";
     //
     // lblGZAvg
     //
     this.lblGZAvg.Location = new System.Drawing.Point( 118, 14 );
     this.lblGZAvg.Name = "lblGZAvg";
     this.lblGZAvg.Size = new System.Drawing.Size( 49, 13 );
     this.lblGZAvg.TabIndex = 11;
     this.lblGZAvg.Text = "0.0";
     this.lblGZAvg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblGZVar
     //
     this.lblGZVar.Location = new System.Drawing.Point( 173, 14 );
     this.lblGZVar.Name = "lblGZVar";
     this.lblGZVar.Size = new System.Drawing.Size( 49, 13 );
     this.lblGZVar.TabIndex = 10;
     this.lblGZVar.Text = "0.0";
     this.lblGZVar.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblGZMin
     //
     this.lblGZMin.Location = new System.Drawing.Point( 8, 14 );
     this.lblGZMin.Name = "lblGZMin";
     this.lblGZMin.Size = new System.Drawing.Size( 49, 13 );
     this.lblGZMin.TabIndex = 8;
     this.lblGZMin.Text = "0.0";
     this.lblGZMin.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblGZMax
     //
     this.lblGZMax.Location = new System.Drawing.Point( 63, 14 );
     this.lblGZMax.Name = "lblGZMax";
     this.lblGZMax.Size = new System.Drawing.Size( 49, 13 );
     this.lblGZMax.TabIndex = 9;
     this.lblGZMax.Text = "0.0";
     this.lblGZMax.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // groupBox2
     //
     this.groupBox2.Controls.Add( this.lblGYAvg );
     this.groupBox2.Controls.Add( this.lblGYVar );
     this.groupBox2.Controls.Add( this.lblGYMin );
     this.groupBox2.Controls.Add( this.lblGYMax );
     this.groupBox2.Location = new System.Drawing.Point( 7, 46 );
     this.groupBox2.Name = "groupBox2";
     this.groupBox2.Size = new System.Drawing.Size( 231, 40 );
     this.groupBox2.TabIndex = 18;
     this.groupBox2.TabStop = false;
     this.groupBox2.Text = "GY";
     //
     // lblGYAvg
     //
     this.lblGYAvg.Location = new System.Drawing.Point( 118, 14 );
     this.lblGYAvg.Name = "lblGYAvg";
     this.lblGYAvg.Size = new System.Drawing.Size( 49, 13 );
     this.lblGYAvg.TabIndex = 11;
     this.lblGYAvg.Text = "0.0";
     this.lblGYAvg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblGYVar
     //
     this.lblGYVar.Location = new System.Drawing.Point( 173, 14 );
     this.lblGYVar.Name = "lblGYVar";
     this.lblGYVar.Size = new System.Drawing.Size( 49, 13 );
     this.lblGYVar.TabIndex = 10;
     this.lblGYVar.Text = "0.0";
     this.lblGYVar.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblGYMin
     //
     this.lblGYMin.Location = new System.Drawing.Point( 8, 14 );
     this.lblGYMin.Name = "lblGYMin";
     this.lblGYMin.Size = new System.Drawing.Size( 49, 13 );
     this.lblGYMin.TabIndex = 8;
     this.lblGYMin.Text = "0.0";
     this.lblGYMin.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblGYMax
     //
     this.lblGYMax.Location = new System.Drawing.Point( 63, 14 );
     this.lblGYMax.Name = "lblGYMax";
     this.lblGYMax.Size = new System.Drawing.Size( 49, 13 );
     this.lblGYMax.TabIndex = 9;
     this.lblGYMax.Text = "0.0";
     this.lblGYMax.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add( this.lblGXAvg );
     this.groupBox1.Controls.Add( this.lblGXVar );
     this.groupBox1.Controls.Add( this.lblGXMin );
     this.groupBox1.Controls.Add( this.lblGXMax );
     this.groupBox1.Location = new System.Drawing.Point( 7, 7 );
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size( 231, 40 );
     this.groupBox1.TabIndex = 17;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "GX";
     //
     // lblGXAvg
     //
     this.lblGXAvg.Location = new System.Drawing.Point( 118, 16 );
     this.lblGXAvg.Name = "lblGXAvg";
     this.lblGXAvg.Size = new System.Drawing.Size( 49, 13 );
     this.lblGXAvg.TabIndex = 7;
     this.lblGXAvg.Text = "0.0";
     this.lblGXAvg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblGXVar
     //
     this.lblGXVar.Location = new System.Drawing.Point( 173, 16 );
     this.lblGXVar.Name = "lblGXVar";
     this.lblGXVar.Size = new System.Drawing.Size( 49, 13 );
     this.lblGXVar.TabIndex = 6;
     this.lblGXVar.Text = "0.0";
     this.lblGXVar.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblGXMin
     //
     this.lblGXMin.Location = new System.Drawing.Point( 8, 16 );
     this.lblGXMin.Name = "lblGXMin";
     this.lblGXMin.Size = new System.Drawing.Size( 49, 13 );
     this.lblGXMin.TabIndex = 4;
     this.lblGXMin.Text = "0.0";
     this.lblGXMin.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // lblGXMax
     //
     this.lblGXMax.Location = new System.Drawing.Point( 63, 16 );
     this.lblGXMax.Name = "lblGXMax";
     this.lblGXMax.Size = new System.Drawing.Size( 49, 13 );
     this.lblGXMax.TabIndex = 5;
     this.lblGXMax.Text = "0.0";
     this.lblGXMax.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // grGyro
     //
     this.grGyro.Location = new System.Drawing.Point( 3, 144 );
     this.grGyro.Name = "grGyro";
     this.grGyro.Size = new System.Drawing.Size( 627, 178 );
     this.grGyro.TabIndex = 0;
     //
     // tickTimer
     //
     this.tickTimer.Enabled = true;
     this.tickTimer.Interval = 20;
     this.tickTimer.Tick += new System.EventHandler( this.tickTimer_Tick );
     //
     // stStatus
     //
     this.stStatus.Items.AddRange( new System.Windows.Forms.ToolStripItem[] {
     this.tsStatLabel} );
     this.stStatus.Location = new System.Drawing.Point( 0, 359 );
     this.stStatus.Name = "stStatus";
     this.stStatus.Size = new System.Drawing.Size( 641, 22 );
     this.stStatus.TabIndex = 0;
     this.stStatus.Text = "statusStrip1";
     //
     // tsStatLabel
     //
     this.tsStatLabel.AutoSize = false;
     this.tsStatLabel.Name = "tsStatLabel";
     this.tsStatLabel.Size = new System.Drawing.Size( 150, 17 );
     this.tsStatLabel.Text = "Finding Elev8-FC";
     //
     // udRollCorrection
     //
     this.udRollCorrection.DecimalPlaces = 2;
     this.udRollCorrection.Increment = new decimal( new int[] {
     1,
     0,
     0,
     65536} );
     this.udRollCorrection.Location = new System.Drawing.Point( 165, 30 );
     this.udRollCorrection.Maximum = new decimal( new int[] {
     30,
     0,
     0,
     0} );
     this.udRollCorrection.Minimum = new decimal( new int[] {
     30,
     0,
     0,
     -2147483648} );
     this.udRollCorrection.Name = "udRollCorrection";
     this.udRollCorrection.Size = new System.Drawing.Size( 76, 20 );
     this.udRollCorrection.TabIndex = 28;
     //
     // label41
     //
     this.label41.AutoSize = true;
     this.label41.Location = new System.Drawing.Point( 47, 32 );
     this.label41.Name = "label41";
     this.label41.Size = new System.Drawing.Size( 106, 13 );
     this.label41.TabIndex = 29;
     this.label41.Text = "Roll Angle Correction";
     //
     // label42
     //
     this.label42.AutoSize = true;
     this.label42.Location = new System.Drawing.Point( 47, 63 );
     this.label42.Name = "label42";
     this.label42.Size = new System.Drawing.Size( 112, 13 );
     this.label42.TabIndex = 31;
     this.label42.Text = "Pitch Angle Correction";
     //
     // udPitchCorrection
     //
     this.udPitchCorrection.DecimalPlaces = 2;
     this.udPitchCorrection.Increment = new decimal( new int[] {
     1,
     0,
     0,
     65536} );
     this.udPitchCorrection.Location = new System.Drawing.Point( 165, 61 );
     this.udPitchCorrection.Maximum = new decimal( new int[] {
     30,
     0,
     0,
     0} );
     this.udPitchCorrection.Minimum = new decimal( new int[] {
     30,
     0,
     0,
     -2147483648} );
     this.udPitchCorrection.Name = "udPitchCorrection";
     this.udPitchCorrection.Size = new System.Drawing.Size( 76, 20 );
     this.udPitchCorrection.TabIndex = 30;
     //
     // btnUploadAngleCorrection
     //
     this.btnUploadAngleCorrection.Location = new System.Drawing.Point( 114, 102 );
     this.btnUploadAngleCorrection.Name = "btnUploadAngleCorrection";
     this.btnUploadAngleCorrection.Size = new System.Drawing.Size( 75, 23 );
     this.btnUploadAngleCorrection.TabIndex = 32;
     this.btnUploadAngleCorrection.Text = "Upload";
     this.btnUploadAngleCorrection.UseVisualStyleBackColor = true;
     this.btnUploadAngleCorrection.Click += new System.EventHandler( this.btnUploadAngleCorrection_Click );
     //
     // groupBox5
     //
     this.groupBox5.Controls.Add( this.gAccelXCal );
     this.groupBox5.Controls.Add( this.gAccelYCal );
     this.groupBox5.Controls.Add( this.gAccelZCal );
     this.groupBox5.Controls.Add( this.label39 );
     this.groupBox5.Controls.Add( this.label38 );
     this.groupBox5.Controls.Add( this.label37 );
     this.groupBox5.Controls.Add( this.lblAccelCalFinal );
     this.groupBox5.Controls.Add( this.btnAccelCal1 );
     this.groupBox5.Controls.Add( this.lblAccelCal4 );
     this.groupBox5.Controls.Add( this.btnAccelCal2 );
     this.groupBox5.Controls.Add( this.lblAccelCal3 );
     this.groupBox5.Controls.Add( this.btnAccelCal3 );
     this.groupBox5.Controls.Add( this.lblAccelCal2 );
     this.groupBox5.Controls.Add( this.btnAccelCal4 );
     this.groupBox5.Controls.Add( this.lblAccelCal1 );
     this.groupBox5.Controls.Add( this.btnUploadAccelCal );
     this.groupBox5.Location = new System.Drawing.Point( 3, 3 );
     this.groupBox5.Name = "groupBox5";
     this.groupBox5.Size = new System.Drawing.Size( 303, 310 );
     this.groupBox5.TabIndex = 33;
     this.groupBox5.TabStop = false;
     this.groupBox5.Text = "Fixed offset compensation";
     //
     // groupBox6
     //
     this.groupBox6.Controls.Add( this.btnUploadAngleCorrection );
     this.groupBox6.Controls.Add( this.udRollCorrection );
     this.groupBox6.Controls.Add( this.label41 );
     this.groupBox6.Controls.Add( this.label42 );
     this.groupBox6.Controls.Add( this.udPitchCorrection );
     this.groupBox6.Location = new System.Drawing.Point( 312, 3 );
     this.groupBox6.Name = "groupBox6";
     this.groupBox6.Size = new System.Drawing.Size( 313, 137 );
     this.groupBox6.TabIndex = 34;
     this.groupBox6.TabStop = false;
     this.groupBox6.Text = "Angular offset correction";
     //
     // MainForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 13F );
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size( 641, 381 );
     this.Controls.Add( this.stStatus );
     this.Controls.Add( this.tcMainTabs );
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.Name = "MainForm";
     this.Text = "Parallax Elev8 Flight Controller configuration";
     this.Deactivate += new System.EventHandler( this.MainForm_Deactivate );
     this.Activated += new System.EventHandler( this.MainForm_Activated );
     this.FormClosed += new System.Windows.Forms.FormClosedEventHandler( this.MainForm_FormClosed );
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler( this.MainForm_FormClosing );
     this.tcMainTabs.ResumeLayout( false );
     this.tpRadioTest.ResumeLayout( false );
     this.tpRadioTest.PerformLayout();
     this.groupBox4.ResumeLayout( false );
     this.groupBox4.PerformLayout();
     this.tpSensorTest.ResumeLayout( false );
     this.tpSensorTest.PerformLayout();
     this.tpMotorTest.ResumeLayout( false );
     this.tpMotorTest.PerformLayout();
     this.tpGyroCalibration.ResumeLayout( false );
     this.groupBox10.ResumeLayout( false );
     this.groupBox10.PerformLayout();
     this.groupBox11.ResumeLayout( false );
     this.groupBox11.PerformLayout();
     this.groupBox12.ResumeLayout( false );
     this.groupBox12.PerformLayout();
     this.tpAccelCalibration.ResumeLayout( false );
     this.tpIMUTest.ResumeLayout( false );
     this.tpIMUTest.PerformLayout();
     this.tpIMUComp.ResumeLayout( false );
     this.tpIMUComp.PerformLayout();
     this.tpVibration.ResumeLayout( false );
     this.tpVibration.PerformLayout();
     this.groupBox3.ResumeLayout( false );
     this.groupBox2.ResumeLayout( false );
     this.groupBox1.ResumeLayout( false );
     this.stStatus.ResumeLayout( false );
     this.stStatus.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.udRollCorrection)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.udPitchCorrection)).EndInit();
     this.groupBox5.ResumeLayout( false );
     this.groupBox5.PerformLayout();
     this.groupBox6.ResumeLayout( false );
     this.groupBox6.PerformLayout();
     this.ResumeLayout( false );
     this.PerformLayout();
 }
Exemplo n.º 25
0
 private void Awake()
 {
     Gauge.Instance = this;
 }
Exemplo n.º 26
0
        private static void Ping(string url, Gauge apiUpName, Gauge apiDownName, int animalCounter)
        {
            int  x         = 0;
            bool testGoing = true;

            //start timer
            Stopwatch clockStop   = Stopwatch.StartNew();
            string    clockString = clockStop.ElapsedMilliseconds.ToString();

            Console.WriteLine("starting clock");
            clockStop = Stopwatch.StartNew();
            testGoing = true;
            while (testGoing)
            {
                string responseCode = "";
                try
                {
                    // create a http request for a ping
                    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(url);
                    request.Timeout           = 3000;
                    request.AllowAutoRedirect = false;     // find out if this site is up and don't follow a redirector
                    request.Method            = "HEAD";
                    System.Net.HttpWebResponse response = (System.Net.HttpWebResponse)request.GetResponse();
                    responseCode = response.StatusCode.ToString();
                    if (responseCode == "OK")
                    {
                        x = 0;

                        Console.WriteLine("Returned " + responseCode);

                        var data = response.GetResponseStream();

                        // crate a struct for our json class
                        List <animal> items2 = new List <animal>();;

                        try
                        {
                            // put the json we find into our json class
                            string json2 = new WebClient().DownloadString(url);

                            items2 = JsonConvert.DeserializeObject <List <animal> >(json2);

                            foreach (var item in items2)
                            {
                                Console.WriteLine(item.type.ToString());
                                Console.WriteLine(item.text.ToString());
                            }
                        }
                        catch (Exception e)
                        {
                            Console.WriteLine(e);
                        }

                        // comparison to check to see if our results are working from the api.
                        if (items2[0].type == dictAnimalType[animalCounter] && items2[1].type == dictAnimalType[animalCounter])
                        {
                            apiUpName.Set(100);
                            apiDownName.Set(0);
                            testGoing = false;
                            Console.WriteLine("\nComparsion Passed " + dictAnimalType[animalCounter] + " We got a " + dictAnimalType[animalCounter] + " Facts \n");
                            Thread.Sleep(6000);
                        }
                        else
                        {
                            apiUpName.Set(0);
                            apiDownName.Set(100);
                            testGoing = false;
                            Console.WriteLine("comparsion failed");
                        }
                    }
                    else
                    {
                        Console.WriteLine("Returned " + responseCode);
                    }
                    testGoing = false;
                }
                catch (Exception e)
                {
                    // get error code
                    var checker      = e.ToString();
                    var checkerSplit = checker.Split(' ');
                    var errorCode    = checkerSplit[7];

                    if (responseCode == "")
                    {
                        Console.WriteLine("Response Code " + errorCode);
                    }
                    else
                    {
                        Console.WriteLine("Response Code " + responseCode);
                    }

                    x++;

                    if (x == 5)
                    {
                        apiUpName.Set(0);
                        apiDownName.Set(100);
                        testGoing = false;
                    }
                }
                clockStop.Stop();
                Console.WriteLine(clockStop.ElapsedMilliseconds);
            }
        }
Exemplo n.º 27
0
 void Awake()
 {
     fishGauge = this;
 }
Exemplo n.º 28
0
 public void RegisterMetrics(MetricFactory metrics)
 {
     MethodsJittedTotal        = metrics.CreateCounter("dotnet_jit_method_total", "Total number of methods compiled by the JIT compiler", DynamicLabel);
     MethodsJittedSecondsTotal = metrics.CreateCounter("dotnet_jit_method_seconds_total", "Total number of seconds spent in the JIT compiler", DynamicLabel);
     CpuRatio = metrics.CreateGauge("dotnet_jit_cpu_ratio", "The amount of total CPU time consumed spent JIT'ing");
 }
Exemplo n.º 29
0
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         if (Type != null)
         {
             hashCode = hashCode * 59 + Type.GetHashCode();
         }
         if (Visible != null)
         {
             hashCode = hashCode * 59 + Visible.GetHashCode();
         }
         if (Name != null)
         {
             hashCode = hashCode * 59 + Name.GetHashCode();
         }
         if (UId != null)
         {
             hashCode = hashCode * 59 + UId.GetHashCode();
         }
         if (Ids != null)
         {
             hashCode = hashCode * 59 + Ids.GetHashCode();
         }
         if (CustomData != null)
         {
             hashCode = hashCode * 59 + CustomData.GetHashCode();
         }
         if (Meta != null)
         {
             hashCode = hashCode * 59 + Meta.GetHashCode();
         }
         if (MetaArray != null)
         {
             hashCode = hashCode * 59 + MetaArray.GetHashCode();
         }
         if (Stream != null)
         {
             hashCode = hashCode * 59 + Stream.GetHashCode();
         }
         if (Transforms != null)
         {
             hashCode = hashCode * 59 + Transforms.GetHashCode();
         }
         if (UiRevision != null)
         {
             hashCode = hashCode * 59 + UiRevision.GetHashCode();
         }
         if (Mode != null)
         {
             hashCode = hashCode * 59 + Mode.GetHashCode();
         }
         if (Value != null)
         {
             hashCode = hashCode * 59 + Value.GetHashCode();
         }
         if (Align != null)
         {
             hashCode = hashCode * 59 + Align.GetHashCode();
         }
         if (Domain != null)
         {
             hashCode = hashCode * 59 + Domain.GetHashCode();
         }
         if (Title != null)
         {
             hashCode = hashCode * 59 + Title.GetHashCode();
         }
         if (Number != null)
         {
             hashCode = hashCode * 59 + Number.GetHashCode();
         }
         if (Delta != null)
         {
             hashCode = hashCode * 59 + Delta.GetHashCode();
         }
         if (Gauge != null)
         {
             hashCode = hashCode * 59 + Gauge.GetHashCode();
         }
         if (IdsSrc != null)
         {
             hashCode = hashCode * 59 + IdsSrc.GetHashCode();
         }
         if (CustomDataSrc != null)
         {
             hashCode = hashCode * 59 + CustomDataSrc.GetHashCode();
         }
         if (MetaSrc != null)
         {
             hashCode = hashCode * 59 + MetaSrc.GetHashCode();
         }
         return(hashCode);
     }
 }
Exemplo n.º 30
0
 /// <summary>
 /// Creates the Prometheus metric.
 /// </summary>
 /// <param name="factory">Factory to create metric using</param>
 public void CreateMetrics(MetricFactory factory)
 {
     Load1  = factory.CreateGauge("node_load1", "Load average over the last minute.");
     Load5  = factory.CreateGauge("node_load5", "Load average over the last 5 minutes.");
     Load15 = factory.CreateGauge("node_load15", "Load average over the last 15 minutes.");
 }
Exemplo n.º 31
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GaugeHtmlBuilder" /> class.
 /// </summary>
 /// <param name="component">The Gauge component.</param>
 public GaugeHtmlBuilder(Gauge component)
 {
     gauge = component;
 }
Exemplo n.º 32
0
 private void reportGauge(long timestamp, MetricName name, Gauge gauge)
 {
     report(timestamp, name, "value", gauge.ValueAsString);
 }
Exemplo n.º 33
0
		public void UpdateGauge ( Gauge p_gauge, float p_val )
		{
			switch(p_gauge)
			{
				case Gauge.Bond:
					//m_bondGauge.GetComponent<BondProgress>().addValue(p_val);
				break;
				case Gauge.Energy:
					m_energyGauge.GetComponent<EnergyProgress>().addValue(p_val);
				break;
			}	
		}
Exemplo n.º 34
0
        public Gauge CreateGauge(string name, string help, params string[] labelNames)
        {
            var metric = new Gauge(name, help, labelNames);

            return((Gauge)_registry.GetOrAdd(metric));
        }