Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using System.Xml;
- using System.IO;
- namespace ABD
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- fbdPOS.SelectedPath = @"C:\Users\nbolton\Desktop\Airborne Direct Tests\Test 1";
- cboSysConfig.DataSource = new BindingSource(IMUAngleDXNRY, null);
- cboSysConfig.DisplayMember = "Key";
- cboSysConfig.ValueMember = "Value";
- }
- string pospath;
- string[] posfiles;
- string firstfile;
- string lastfile;
- string mntanglex;
- string mntangley;
- string mntanglez;
- Dictionary<string, string> IMUAngleDXNRY = new Dictionary<string, string>()
- {
- {"N/A", "" },
- { "UCE-LN200", "-0.17080,-0.01300,-0.46090,0,0,0" },
- {"UCE-Type 31", "-0.13030,-0.04550,-0.47530,90,0,90" },
- {"UCE-Type 46", "-0.13060,-0.02050,-0.48500,90,0,90" },
- {"UCFp-Type 46", "-0.13060,-0.02050,-0.51310,90,0,90" },
- {"UCFp-Type 52", "-0.14560,-0.02050,-0.51310,90,0,90" },
- };
- private void cboSysConfig_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (cboSysConfig.SelectedIndex != 0)
- {
- tbxIMUx.Text = IMUAngleDXNRY[cboSysConfig.SelectedItem.ToString()].Split(',')[0];
- tbxIMUy.Text = IMUAngleDXNRY[cboSysConfig.SelectedItem.ToString()].Split(',')[1];
- tbxIMUz.Text = IMUAngleDXNRY[cboSysConfig.SelectedItem.ToString()].Split(',')[2];
- mntanglex = IMUAngleDXNRY[cboSysConfig.SelectedItem.ToString()].Split(',')[3];
- mntangley = IMUAngleDXNRY[cboSysConfig.SelectedItem.ToString()].Split(',')[4];
- mntanglez = IMUAngleDXNRY[cboSysConfig.SelectedItem.ToString()].Split(',')[5];
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement