Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
portapack-mayhem
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
mcules
portapack-mayhem
Commits
bdeab642
Unverified
Commit
bdeab642
authored
5 years ago
by
Erwin Ried
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update capture_app.cpp (#356)
parent
89b95eb1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
firmware/application/apps/capture_app.cpp
+14
-0
14 additions, 0 deletions
firmware/application/apps/capture_app.cpp
with
14 additions
and
0 deletions
firmware/application/apps/capture_app.cpp
+
14
−
0
View file @
bdeab642
...
@@ -46,6 +46,12 @@ CaptureAppView::CaptureAppView(NavigationView& nav) {
...
@@ -46,6 +46,12 @@ CaptureAppView::CaptureAppView(NavigationView& nav) {
&
waterfall
,
&
waterfall
,
});
});
// Hack for initialization
// TODO: This should be included in a more global section so apps dont need to do it
receiver_model
.
set_sampling_rate
(
3072000
);
receiver_model
.
set_baseband_bandwidth
(
1750000
);
//-------------------
field_frequency
.
set_value
(
receiver_model
.
tuning_frequency
());
field_frequency
.
set_value
(
receiver_model
.
tuning_frequency
());
field_frequency
.
set_step
(
receiver_model
.
frequency_step
());
field_frequency
.
set_step
(
receiver_model
.
frequency_step
());
field_frequency
.
on_change
=
[
this
](
rf
::
Frequency
f
)
{
field_frequency
.
on_change
=
[
this
](
rf
::
Frequency
f
)
{
...
@@ -87,6 +93,14 @@ CaptureAppView::CaptureAppView(NavigationView& nav) {
...
@@ -87,6 +93,14 @@ CaptureAppView::CaptureAppView(NavigationView& nav) {
}
}
CaptureAppView
::~
CaptureAppView
()
{
CaptureAppView
::~
CaptureAppView
()
{
// Hack for preventing halting other apps
// TODO: This should be also part of something global
receiver_model
.
set_sampling_rate
(
3072000
);
receiver_model
.
set_baseband_bandwidth
(
1750000
);
receiver_model
.
set_modulation
(
ReceiverModel
::
Mode
::
WidebandFMAudio
);
// ----------------------------
receiver_model
.
disable
();
receiver_model
.
disable
();
baseband
::
shutdown
();
baseband
::
shutdown
();
}
}
...
...
This diff is collapsed.
Click to expand it.
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