|
Algorithm 1 Compute and plot OADEV for sensor data |
-
1:
Initialize sensor_files with paths to sensor output files
-
2:
for each file in sensor_files do
-
3:
data ← read_sensor_data(file)
-
4:
for axis in {x, y, z} for both gyroscope and accelerometer do
-
5:
axis_data ← extract_data_for_axis(data, axis)
-
6:
oadev_result ← compute_oadev(axis_data)
-
7:
[N, B] ← find_noise_values(oadev_result)
-
8:
plot_oadev(oadev_result)
-
9:
output_values(N, B)
-
10:
end for
-
11:
end for
-
12:
function read_sensor_data(file)
-
13:
return data from file
-
14:
end function
-
15:
function extract_data_for_axis(data, axis)
-
16:
return data corresponding to specified axis
-
17:
end function
-
18:
function compute_oadev(axis_data)
-
19:
return OADEV computation result
-
20:
end function
-
21:
function plot_oadev(oadev_result)
-
22:
Plot the OADEV result
-
23:
end function
-
24:
function find_noise_values(oadev_result)
-
25:
Analyze the OADEV plot to find N and B values
-
26:
return [N, B]
-
27:
end function
-
28:
function output_values(N, B)
-
29:
Display or save the N and B values
-
30:
end function
|