Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
plugin-GUI
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
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
yehaojie
plugin-GUI
Commits
ebbdb693
Commit
ebbdb693
authored
10 years ago
by
Josh Siegle
Browse files
Options
Downloads
Patches
Plain Diff
Change filter cutoff display
Display filter cutoffs rounded to the nearest 0.1 Hz, rather than 1 Hz
parent
368ea7a4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/Processors/Editors/RHD2000Editor.cpp
+9
-6
9 additions, 6 deletions
Source/Processors/Editors/RHD2000Editor.cpp
with
9 additions
and
6 deletions
Source/Processors/Editors/RHD2000Editor.cpp
+
9
−
6
View file @
ebbdb693
...
...
@@ -23,6 +23,7 @@
#include
"RHD2000Editor.h"
#include
"../../UI/EditorViewport.h"
#include
<cmath>
#include
"ChannelSelector.h"
...
...
@@ -271,7 +272,7 @@ void BandwidthInterface::labelTextChanged(Label* label)
std
::
cout
<<
"Setting Upper Bandwidth to "
<<
requestedValue
<<
std
::
endl
;
std
::
cout
<<
"Actual Upper Bandwidth: "
<<
actualUpperBandwidth
<<
std
::
endl
;
label
->
setText
(
String
(
(
round
FloatToInt
)
(
actualUpperBandwidth
)
),
dontSendNotification
);
label
->
setText
(
String
(
round
(
actualUpperBandwidth
*
10.
f
)
/
10.
f
),
dontSendNotification
);
}
else
...
...
@@ -291,9 +292,10 @@ void BandwidthInterface::labelTextChanged(Label* label)
actualLowerBandwidth
=
board
->
setLowerBandwidth
(
requestedValue
);
std
::
cout
<<
"Setting Upper Bandwidth to "
<<
requestedValue
<<
std
::
endl
;
std
::
cout
<<
"Actual Upper Bandwidth: "
<<
actualLowerBandwidth
<<
std
::
endl
;
label
->
setText
(
String
(
roundFloatToInt
(
actualLowerBandwidth
)),
dontSendNotification
);
std
::
cout
<<
"Setting Lower Bandwidth to "
<<
requestedValue
<<
std
::
endl
;
std
::
cout
<<
"Actual Lower Bandwidth: "
<<
actualLowerBandwidth
<<
std
::
endl
;
label
->
setText
(
String
(
round
(
actualLowerBandwidth
*
10.
f
)
/
10.
f
),
dontSendNotification
);
}
}
else
if
(
editor
->
acquisitionIsActive
)
...
...
@@ -311,15 +313,16 @@ void BandwidthInterface::labelTextChanged(Label* label)
void
BandwidthInterface
::
setLowerBandwidth
(
double
value
)
{
actualLowerBandwidth
=
board
->
setLowerBandwidth
(
value
);
lowerBandwidthSelection
->
setText
(
String
(
round
FloatToInt
(
actualLowerBandwidth
)
),
dontSendNotification
);
lowerBandwidthSelection
->
setText
(
String
(
round
(
actualLowerBandwidth
*
10.
f
)
/
10.
f
),
dontSendNotification
);
}
void
BandwidthInterface
::
setUpperBandwidth
(
double
value
)
{
actualUpperBandwidth
=
board
->
setUpperBandwidth
(
value
);
upperBandwidthSelection
->
setText
(
String
(
round
FloatToInt
(
actualUpperBandwidth
)
),
dontSendNotification
);
upperBandwidthSelection
->
setText
(
String
(
round
(
actualUpperBandwidth
*
10.
f
)
/
10.
f
),
dontSendNotification
);
}
double
BandwidthInterface
::
getLowerBandwidth
()
{
return
actualLowerBandwidth
;
...
...
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