Example #1
0
        public void initialise(string _name)
        {
            name = _name;
            string imuBTName = "IMU_BT_" + name;

            if (name.Length == 4)
            {
                imuBTName = "IMU_BT_" + name;
            }
            else
            {
                imuBTName = "NU_BT_" + name;
            }

            string imuUSBName = "IMU_USB_" + name;
            // TODO debug this directory!
            string imuMemory = MMark.Info.MMarkInfo.MMarkResources + "IMU_Memory/IMU_BT_" + name + ".txt";

            NUClass = this;
            bool bluetooth = true;

            try
            {
                Comms = new CommunicationsClass();                      //Attempt to create bluetooth object (Fails if computer does not support bluetooth)
            }
            catch (Exception)
            {
                WriteDataToBox("The computer does not appear to have bluetooth capabilities\n");
                bluetooth = false;
            }

            bluetoothConnection = BluetoothConnect(imuMemory, bluetooth, imuBTName);
            if (bluetoothConnection && USBConnection)
            {
            }
            if (bluetoothConnection)
            {
                cali = new Calibration(name);
            }
        }
Example #2
0
 public void loadCalifiles(string name)
 {
     cali = new Calibration(name);
 }