Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
km3mon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
km3py
km3mon
Commits
7037ea46
Verified
Commit
7037ea46
authored
3 years ago
by
Tamas Gal
Browse files
Options
Downloads
Patches
Plain Diff
Improve queue handling in AHRS calib
parent
216d540d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#23596
passed
3 years ago
Stage: docker
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/scripts/ahrs_calibration.py
+3
-2
3 additions, 2 deletions
backend/scripts/ahrs_calibration.py
with
3 additions
and
2 deletions
backend/scripts/ahrs_calibration.py
+
3
−
2
View file @
7037ea46
...
...
@@ -59,7 +59,8 @@ class CalibrateAHRS(kp.Module):
self
.
cuckoo_log
=
kp
.
time
.
Cuckoo
(
10
,
self
.
cprint
)
self
.
data
=
{}
self
.
queue_size
=
100000
self
.
scale_down_factor
=
1000
self
.
queue_size
=
int
(
self
.
detector
.
n_doms
*
10
*
self
.
time_range
*
60
**
2
/
det
.
n_dus
/
self
.
scale_down_factor
)
self
.
lock
=
threading
.
Lock
()
self
.
index
=
0
...
...
@@ -76,7 +77,7 @@ class CalibrateAHRS(kp.Module):
def
process
(
self
,
blob
):
self
.
index
+=
1
if
self
.
index
%
29
!=
0
:
if
self
.
index
%
self
.
scale_down_factor
!=
0
:
return
blob
now
=
datetime
.
utcnow
()
tmch_data
=
TMCHData
(
io
.
BytesIO
(
blob
[
'
CHData
'
]))
...
...
This diff is collapsed.
Click to expand it.
Tamas Gal
@tgal
mentioned in issue
#67 (closed)
·
3 years ago
mentioned in issue
#67 (closed)
mentioned in issue #67
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment