Package IMU

Class IMUImport

java.lang.Object
IMU.IMUImport

public class IMUImport extends Object
Sets up a thread to import .csv files and save data units to a database.
Author:
Jamie Macaulay.
  • Constructor Details

  • Method Details

    • isDataFormatOK

      public boolean isDataFormatOK(ArrayList<Double> imuData)
    • importcsvData

      public ArrayList<ArrayList<Double>> importcsvData(String file)
      Import the data form the .csv file into a 2D ArrayList.
      Parameters:
      file - :
      Returns:
    • saveToDB

      public int saveToDB()
    • newThread

      public IMU.IMUImport.ImportIMUThread newThread(String csvFile)
    • getErrorCode

      public Integer getErrorCode()
      Get the error code for the import IMU thread.
      Returns:
    • createDataUnit

      public AngleDataUnit createDataUnit(ArrayList<Double> imuData)
      Create a data unit from input Array:
      Parameters:
      imuData - [0]=time (matlab datenum); [1] heading (degrees) [2] pitch (degrees) [3] roll degrees.
      Returns:
      angle data unit