Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
gr-satnogs
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
13
Merge Requests
13
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
librespacefoundation
SatNOGS
gr-satnogs
Commits
37d3dfeb
Commit
37d3dfeb
authored
Jan 04, 2018
by
Sebastian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Readjust dynamic range after first sync
parent
612891e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
lib/noaa_apt_sink_impl.cc
lib/noaa_apt_sink_impl.cc
+11
-0
lib/noaa_apt_sink_impl.h
lib/noaa_apt_sink_impl.h
+1
-0
No files found.
lib/noaa_apt_sink_impl.cc
View file @
37d3dfeb
...
...
@@ -84,6 +84,7 @@ namespace gr
d_synchronize_opt
(
sync
),
d_flip
(
flip
),
d_history_length
(
40
),
d_has_sync
(
false
),
d_current_x
(
0
),
d_current_y
(
0
),
d_num_images
(
0
),
...
...
@@ -249,9 +250,19 @@ namespace gr
if
(
d_synchronize_opt
)
{
if
(
is_marker
(
i
,
in
)
==
noaa_apt_sync_marker
::
SYNC_A
)
{
skip_to
(
39
,
i
,
in
);
if
(
!
d_has_sync
)
{
f_max_level
=
0.0
;
f_min_level
=
1.0
;
d_has_sync
=
true
;
}
}
else
if
(
is_marker
(
i
,
in
)
==
noaa_apt_sync_marker
::
SYNC_B
)
{
skip_to
(
d_width
/
2
+
39
,
i
,
in
);
if
(
!
d_has_sync
)
{
f_max_level
=
0.0
;
f_min_level
=
1.0
;
d_has_sync
=
true
;
}
}
}
...
...
lib/noaa_apt_sink_impl.h
View file @
37d3dfeb
...
...
@@ -44,6 +44,7 @@ namespace gr
bool
d_synchronize_opt
;
bool
d_flip
;
size_t
d_history_length
;
bool
d_has_sync
;
png
::
image
<
png
::
gray_pixel
>
d_full_image
;
png
::
image
<
png
::
gray_pixel
>
d_left_image
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment