Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Ardupilot
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
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
OpenSource
Ardupilot
Commits
2cc9fde3
"git@ssh.gitrepo.de:Janschubi1993/enigma.git" did not exist on "b86f504c79526fbd8c007aa8a583ed4850b5f442"
Commit
2cc9fde3
authored
13 years ago
by
Jason Short
Browse files
Options
Downloads
Patches
Plain Diff
removed never used filter, and fixed a constrain that could make range calcs go bad
parent
00cabc63
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/RC_Channel/RC_Channel.cpp
+4
-2
4 additions, 2 deletions
libraries/RC_Channel/RC_Channel.cpp
with
4 additions
and
2 deletions
libraries/RC_Channel/RC_Channel.cpp
+
4
−
2
View file @
2cc9fde3
...
...
@@ -96,14 +96,16 @@ RC_Channel::set_pwm(int pwm)
{
//Serial.print(pwm,DEC);
if
(
_filter
){
/*
if(_filter){
if(radio_in == 0)
radio_in = pwm;
else
radio_in = (pwm + radio_in) >> 1; // Small filtering
}else{
radio_in = pwm;
}
}*/
radio_in
=
constrain
(
pwm
,
radio_min
.
get
(),
radio_max
.
get
());
if
(
_type
==
RC_CHANNEL_RANGE
){
//Serial.print("range ");
...
...
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