Restructuring sensor fusion folder structure 39/19939/1 dev/ramasamy
authorRamasamy <ram.kannan@samsung.com>
Wed, 23 Apr 2014 08:31:51 +0000 (14:01 +0530)
committerRamasamy <ram.kannan@samsung.com>
Wed, 23 Apr 2014 08:32:16 +0000 (14:02 +0530)
- Changing structure to support new virtual sensors
- adding folder for reference and design documents
- adding folder for results
- renaming folders

signed-off-by: Ramasamy <ram.kannan@samsung.com>
Change-Id: Iea7dd562c15f88003996512eefe47932a7efcd63

17 files changed:
SensorFusion/SF_Orien.m
SensorFusion/data/100ms/pitch/accel.txt [moved from SensorFusion/sensor_data/100ms/pitch/accel.txt with 100% similarity]
SensorFusion/data/100ms/pitch/gyro.txt [moved from SensorFusion/sensor_data/100ms/pitch/gyro.txt with 100% similarity]
SensorFusion/data/100ms/pitch/magnetic.txt [moved from SensorFusion/sensor_data/100ms/pitch/magnetic.txt with 100% similarity]
SensorFusion/data/100ms/roll/accel.txt [moved from SensorFusion/sensor_data/100ms/roll/accel.txt with 100% similarity]
SensorFusion/data/100ms/roll/gyro.txt [moved from SensorFusion/sensor_data/100ms/roll/gyro.txt with 100% similarity]
SensorFusion/data/100ms/roll/magnetic.txt [moved from SensorFusion/sensor_data/100ms/roll/magnetic.txt with 100% similarity]
SensorFusion/data/100ms/roll_pitch_yaw/accel.txt [moved from SensorFusion/sensor_data/100ms/roll_pitch_yaw/accel.txt with 100% similarity]
SensorFusion/data/100ms/roll_pitch_yaw/gyro.txt [moved from SensorFusion/sensor_data/100ms/roll_pitch_yaw/gyro.txt with 100% similarity]
SensorFusion/data/100ms/roll_pitch_yaw/magnetic.txt [moved from SensorFusion/sensor_data/100ms/roll_pitch_yaw/magnetic.txt with 100% similarity]
SensorFusion/data/100ms/yaw/accel.txt [moved from SensorFusion/sensor_data/100ms/yaw/accel.txt with 100% similarity]
SensorFusion/data/100ms/yaw/gyro.txt [moved from SensorFusion/sensor_data/100ms/yaw/gyro.txt with 100% similarity]
SensorFusion/data/100ms/yaw/magnetic.txt [moved from SensorFusion/sensor_data/100ms/yaw/magnetic.txt with 100% similarity]
SensorFusion/lib/Quat2Euler.m [moved from SensorFusion/Quat2Euler.m with 100% similarity]
SensorFusion/lib/Quat2RotMat.m [moved from SensorFusion/Quat2RotMat.m with 100% similarity]
SensorFusion/lib/QuatProd.m [moved from SensorFusion/QuatProd.m with 100% similarity]
SensorFusion/lib/RotMat2Quat.m [moved from SensorFusion/RotMat2Quat.m with 100% similarity]

index 66a708a..c9c8ec5 100755 (executable)
@@ -20,8 +20,9 @@
 % - Quaternion based approach\r
 % - Estimation and correction of Euler errors and bias errors for gyroscope using Kalman filter\r
 \r
-\r
+addpath('lib'); \r
 clear\r
+clc\r
 \r
 LOW_PASS_FILTERING_ON = 1;\r
 \r
@@ -58,16 +59,16 @@ TauW = 1000; %secs
 %ZigmaW = 0; %deg/s  \r
 \r
 % get accel x,y,z axis data from stored file\r
-Ax = (((dlmread("sensor_data/100ms/roll_pitch_yaw/accel.txt")(:,1))') - Bias_Ax)(1:BUFFER_SIZE);\r
-Ay = (((dlmread("sensor_data/100ms/roll_pitch_yaw/accel.txt")(:,2))') - Bias_Ay)(1:BUFFER_SIZE);\r
-Az = (((dlmread("sensor_data/100ms/roll_pitch_yaw/accel.txt")(:,3))') - Bias_Az)(1:BUFFER_SIZE);\r
-ATime = ((dlmread("sensor_data/100ms/roll_pitch_yaw/accel.txt")(:,4))');\r
+Ax = (((dlmread("data/100ms/roll_pitch_yaw/accel.txt")(:,1))') - Bias_Ax)(1:BUFFER_SIZE);\r
+Ay = (((dlmread("data/100ms/roll_pitch_yaw/accel.txt")(:,2))') - Bias_Ay)(1:BUFFER_SIZE);\r
+Az = (((dlmread("data/100ms/roll_pitch_yaw/accel.txt")(:,3))') - Bias_Az)(1:BUFFER_SIZE);\r
+ATime = ((dlmread("data/100ms/roll_pitch_yaw/accel.txt")(:,4))');\r
 \r
 % get gyro x,y,z axis data from stored file\r
-Gx = (((dlmread("sensor_data/100ms/roll_pitch_yaw/gyro.txt")(:,1))') - Bias_Gx)(1:BUFFER_SIZE);\r
-Gy = (((dlmread("sensor_data/100ms/roll_pitch_yaw/gyro.txt")(:,2))') - Bias_Gy)(1:BUFFER_SIZE);\r
-Gz = (((dlmread("sensor_data/100ms/roll_pitch_yaw/gyro.txt")(:,3))') - Bias_Gz)(1:BUFFER_SIZE);\r
-GTime = ((dlmread("sensor_data/100ms/roll_pitch_yaw/gyro.txt")(:,4))');\r
+Gx = (((dlmread("data/100ms/roll_pitch_yaw/gyro.txt")(:,1))') - Bias_Gx)(1:BUFFER_SIZE);\r
+Gy = (((dlmread("data/100ms/roll_pitch_yaw/gyro.txt")(:,2))') - Bias_Gy)(1:BUFFER_SIZE);\r
+Gz = (((dlmread("data/100ms/roll_pitch_yaw/gyro.txt")(:,3))') - Bias_Gz)(1:BUFFER_SIZE);\r
+GTime = ((dlmread("data/100ms/roll_pitch_yaw/gyro.txt")(:,4))');\r
 \r
 scale_Gyro = 575;\r
 Gx = Gx/scale_Gyro;\r
@@ -75,10 +76,10 @@ Gy = Gy/scale_Gyro;
 Gz = Gz/scale_Gyro;\r
 \r
 % get magnetometer x,y,z axis data from stored file\r
-Mx = (((dlmread("sensor_data/100ms/roll_pitch_yaw/magnetic.txt")(:,1))'))(1:BUFFER_SIZE);\r
-My = (((dlmread("sensor_data/100ms/roll_pitch_yaw/magnetic.txt")(:,2))'))(1:BUFFER_SIZE);\r
-Mz = (((dlmread("sensor_data/100ms/roll_pitch_yaw/magnetic.txt")(:,3))'))(1:BUFFER_SIZE);\r
-MTime = ((dlmread("sensor_data/100ms/roll_pitch_yaw/magnetic.txt")(:,4))');\r
+Mx = (((dlmread("data/100ms/roll_pitch_yaw/magnetic.txt")(:,1))'))(1:BUFFER_SIZE);\r
+My = (((dlmread("data/100ms/roll_pitch_yaw/magnetic.txt")(:,2))'))(1:BUFFER_SIZE);\r
+Mz = (((dlmread("data/100ms/roll_pitch_yaw/magnetic.txt")(:,3))'))(1:BUFFER_SIZE);\r
+MTime = ((dlmread("data/100ms/roll_pitch_yaw/magnetic.txt")(:,4))');\r
 \r
 % Gyroscope Bias Variables\r
 Bx = 0; By = 0; Bz = 0;\r