Package IMU
Class IMUImportMananger
java.lang.Object
IMU.IMUImportMananger
Import IMU data from .csv. File must be in the following format: 
 
rows of:
time (MATLAB datenum),heading, pitch, roll --format -all in radians: Note: the PAMGAURD format for 3D IMU angles is:
Bearing- 0==north, 90==east 180=south, 270==west
Pitch- 90=-g, 0=0g, -90=g
Tilt 0->180 -camera turning towards left to upside down 0->-180 camera turning right to upside down
- Author:
 - Jamie Macaulay
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUnable to load csv data.static final intThe file is in the wrong format. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataToDataBlock(AngleDataUnit dataUnit) protected voidEnd the current import.getName()getProportyListener(IMU.IMUImport.ImportIMUThread saveDBThread) voidsetIMULoadIntermediate(boolean intermediate) Set whether the load progress is intermediatevoidsetLoadProgress(int prog) voidsetTextProgress(int N, int ofN, String name) protected voidstartImport(String csvFile) Starts the process of loading a .csv file, converting to an IMU data unit and then saving to database.protected voidupdateLoadBar(IMU.IMUImport.ImportIMUThread importCSVthread)  
- 
Field Details
- 
NO_CSV_LOAD
public static final int NO_CSV_LOADUnable to load csv data. Probably a bad file path.- See Also:
 
 - 
WRONG_FORMAT
public static final int WRONG_FORMATThe file is in the wrong format.- See Also:
 
 
 - 
 - 
Constructor Details
- 
IMUImportMananger
 
 - 
 - 
Method Details
- 
getName
 - 
startImport
Starts the process of loading a .csv file, converting to an IMU data unit and then saving to database.- Parameters:
 csvFile-
 - 
endImport
End the current import. - 
getIMULoadBar
 - 
setIMULoadIntermediate
public void setIMULoadIntermediate(boolean intermediate) Set whether the load progress is intermediate- Parameters:
 intermediate- . true of load progress is intermediate.
 - 
updateLoadBar
protected void updateLoadBar(IMU.IMUImport.ImportIMUThread importCSVthread)  - 
setLoadProgress
public void setLoadProgress(int prog)  - 
setTextProgress
 - 
getProportyListener
 - 
getIMUDataBlock
 - 
addDataToDataBlock
 - 
getImuControl
 
 -