-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
POLL_RATE = 0.1 #latency on detection vs cpu/usage | ||
GRAPH_RATE = 2 # # graph update rate as function of POLL_RATE | ||
GRAPH_Y_LIMIT = 1000 | ||
POLL_RATE = 0.05 #latency on detection vs cpu/usage | ||
GRAPH_RATE = 1 # # graph update rate as function of POLL_RATE | ||
GRAPH_Y_LIMIT = 150 #acceleromter graph Y-limit | ||
|
||
DEFAULT_ACCELEROMETER_RATE = 500 #Galaxy S10 | ||
DEFAULT_MAGNETOMETER_RATE = 100 # Galaxy S10 | ||
|
||
ACCELEROMETER_BUFFER_LEN = 300 #point buffer history length | ||
SHOT_THRESH = 60 #when to detect a shot | ||
|
||
POST_SHOT_CAPTURE = 0.3 #percentage of points that will be displayed after shot is detected | ||
GRAPH_FREEZE = 8 #how many seconds to freeze graphs after shot is detected:w | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters