Acceleration categorization for buzzer (danger levels)
Added categorization function: Parameters are current acceleration, return value is 0, 1, 2, or 3 which correspond increasing danger levels (3 for greatest acceleration). The while loop implements the if-statement chain (shown in design doc flowchart), which determine danger level. Testing with STM32CubeMonitor verifies the functionality of this feature.