Пример #1
0
 /// <summary>
 /// Creates new record and Bluetooth manager classes before attempting to connect to the IMU device.
 /// If an instance of the Bluetooth manager is already in effect, will make a call to dispose of it first.
 /// </summary>
 /// <returns> Whether the connection attempt to the IMU device was successful.</returns>
 public bool connect()
 {
     if (bt_manager != null)
     {
         dispose_previous_connection();
     }
     records    = new Records(IMU_number);
     bt_manager = new BTManager(this, MAC_address, debug_connection_reports, conn_info_set);
     return(bt_manager.connect());
 }