Package IMU
Class IMUImport
java.lang.Object
IMU.IMUImport
Sets up a thread to import .csv files and save data units to a database.
- Author:
- Jamie Macaulay.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateDataUnit
(ArrayList<Double> imuData) Create a data unit from input Array:Get the error code for the import IMU thread.importcsvData
(String file) Import the data form the .csv file into a 2D ArrayList.boolean
isDataFormatOK
(ArrayList<Double> imuData) IMU.IMUImport.ImportIMUThread
int
saveToDB()
-
Constructor Details
-
IMUImport
-
-
Method Details
-
isDataFormatOK
-
importcsvData
Import the data form the .csv file into a 2D ArrayList.- Parameters:
file
- :- Returns:
-
saveToDB
public int saveToDB() -
newThread
-
getErrorCode
Get the error code for the import IMU thread.- Returns:
-
createDataUnit
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
-