Skip to content

Commit 42d4a23

Browse files
committed
fix: reset the scan interval to 1 Hz
1 parent 6a3c54f commit 42d4a23

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

BadgeFramework/badge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import struct
66
import Queue
77

8-
# Scan every 5 seconds, where each scan lasts for 0.25 seconds
8+
# Scan every 1 seconds, where each scan lasts for 0.25 seconds
99
DEFAULT_SCAN_WINDOW = 250
10-
DEFAULT_SCAN_INTERVAL = 5000
10+
DEFAULT_SCAN_INTERVAL = 1000
1111

1212
DEFAULT_IMU_ACC_FSR = 4 # Valid ranges: 2, 4, 8, 16
1313
DEFAULT_IMU_GYR_FSR = 1000 # Valid ranges: 250, 500, 1000, 2000

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ The data part represents a quaternion containing 4 floats.
160160
### Scanner
161161
162162
The scanner data is also stored in a binary file.
163-
The sensor records samples at 1 Hz.
163+
The sensor records samples at 1 Hz, where each scan window lasts 0.25 seconds.
164164
Each sample is 16 bytes long.
165165
The first 8 bytes are the timestamp, the next 2 bytes are the ID, the next byte is the RSSI, and the next byte is the group and the last 4 are for padding.
166166

0 commit comments

Comments
 (0)