1package config
2
3import (
4 "time"
5
6 "github.com/rs/zerolog"
7)
8
9const Debug = true
10const DebugFunctionAreas = 200
11const DebugBoundingBoxPadding = 0.02 // rad
12const DebugResolution = 1440
13
14const BufferSize = 36000 //36000 // in samples (6 minutes)
15
16var WebUITrackedStations = []string{"CKHZ", "ALRZ", "TEME", "LZG", "TEO"}
17
18// Close to ALRZ: https://dataview.raspberryshake.org/#/AM/R3D73/00/EHZ
19
20var DelayBetweenHandshakes = 50 * time.Millisecond
21
22const FastStartup = true
23
24const ColdStartCalibrationTime = 5 * time.Minute
25
26const MinWaveDelayInSamples = 50
27
28const PWaveSensitivity = 2.0 // 2.0
29const SWaveSensitivity = 8.0 // 8.0
30
31const DefaultSampleRate = 100 // Hz
32
33const EventTimeout = 20 * time.Second // Time before final conclusions are drawn after last detection
34
35const EventExtent = 1.0472 / 2 //rad
36
37const NumberOfDetectionsThreshold = 4
38
39const GlobalLogLevel = zerolog.InfoLevel