A wave was simulated by moving the RPI by hand up and down and the algorithm was run. Both the display of a laptop and movement of the RPI was recorded. When playing the video in slow motion, it is apparent that the algorithm identifies fake wave crests. The reason for that may be that there is no filter applied on the raw IMU data, instead, smoothening algorithm is used. This algorithm should be further tested on the sea, since the fake crests might have been caused by irregularities when moving the RPI by hand. Alternatively, another algorithm can be developed that uses different method, e.g. it stores the IMU data and fits a sinusoid to it. If this is done with reasonable time range and frequency, it should eliminate the fake wave crests.
A wave was simulated by moving the RPI by hand up and down and the algorithm was run. Both the display of a laptop and movement of the RPI was recorded. When playing the video in slow motion, it is apparent that the algorithm identifies fake wave crests. The reason for that may be that there is no filter applied on the raw IMU data, instead, smoothening algorithm is used. This algorithm should be further tested on the sea, since the fake crests might have been caused by irregularities when moving the RPI by hand. Alternatively, another algorithm can be developed that uses different method, e.g. it stores the IMU data and fits a sinusoid to it. If this is done with reasonable time range and frequency, it should eliminate the fake wave crests.