use butter lowpass filter

This commit is contained in:
Mateusz Tylka 2023-08-18 11:54:47 +02:00
parent ac8d1788e4
commit 0bbba5b93f
3 changed files with 6 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

View File

@ -129,13 +129,13 @@ acceX = normalize_data_vector(acceX, division_param)
acceY = normalize_data_vector(acceY, division_param)
acceZ = normalize_data_vector(acceZ, division_param)
# gyroX = butter_lowpass_filter(gyroX, cutoff, fs, order)
# gyroY = butter_lowpass_filter(gyroY, cutoff, fs, order)
# gyroZ = butter_lowpass_filter(gyroZ, cutoff, fs, order)
gyroX = butter_lowpass_filter(gyroX, cutoff, fs, order)
gyroY = butter_lowpass_filter(gyroY, cutoff, fs, order)
gyroZ = butter_lowpass_filter(gyroZ, cutoff, fs, order)
# acceX = butter_lowpass_filter(acceX, cutoff, fs, order)
# acceY = butter_lowpass_filter(acceY, cutoff, fs, order)
# acceZ = butter_lowpass_filter(acceZ, cutoff, fs, order)
acceX = butter_lowpass_filter(acceX, cutoff, fs, order)
acceY = butter_lowpass_filter(acceY, cutoff, fs, order)
acceZ = butter_lowpass_filter(acceZ, cutoff, fs, order)
gyro_data = [gyroX, gyroY, gyroZ]
acce_data = [acceX, acceY, acceZ]