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
5c3cb1c5
Commit
5c3cb1c5
authored
13 years ago
by
Jason Short
Browse files
Options
Downloads
Patches
Plain Diff
ACM: removed Filtering code for motors in Quad for testing
parent
d9ccd4f6
No related branches found
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
ArduCopter/motors_quad.pde
+0
-37
0 additions, 37 deletions
ArduCopter/motors_quad.pde
with
0 additions
and
37 deletions
ArduCopter/motors_quad.pde
+
0
−
37
View file @
5c3cb1c5
...
...
@@ -100,43 +100,6 @@ static void output_motors_armed()
}
#endif
// this filter slows the acceleration of motors vs the deceleration
// Idea by Denny Rowland to help with his Yaw issue
/*for(int8_t i = MOT_1; i <= MOT_4; i++){
if(motor_filtered[i] < motor_out[i]){
motor_filtered[i] = (motor_out[i] + motor_filtered[i]) / 2;
}else{
// don't filter
motor_filtered[i] = motor_out[i];
}
}
APM_RC.OutputCh(MOT_1, motor_filtered[MOT_1]);
APM_RC.OutputCh(MOT_2, motor_filtered[MOT_2]);
APM_RC.OutputCh(MOT_3, motor_filtered[MOT_3]);
APM_RC.OutputCh(MOT_4, motor_filtered[MOT_4]);
*/
/*
if(g.rc_7.radio_in > 1700){
for(int8_t i = MOT_1; i <= MOT_4; i++){
motor_out[i] = (motor_previous[i] * 3 + motor_out[i]) / 4;
motor_previous[i] = motor_out[i];
}
APM_RC.OutputCh(MOT_1, motor_out[MOT_1]);
APM_RC.OutputCh(MOT_2, motor_out[MOT_2]);
APM_RC.OutputCh(MOT_3, motor_out[MOT_3]);
APM_RC.OutputCh(MOT_4, motor_out[MOT_4]);
}else{
APM_RC.OutputCh(MOT_1, motor_out[MOT_1]);
APM_RC.OutputCh(MOT_2, motor_out[MOT_2]);
APM_RC.OutputCh(MOT_3, motor_out[MOT_3]);
APM_RC.OutputCh(MOT_4, motor_out[MOT_4]);
}
//*/
APM_RC
.
OutputCh
(
MOT_1
,
motor_out
[
MOT_1
]);
APM_RC
.
OutputCh
(
MOT_2
,
motor_out
[
MOT_2
]);
APM_RC
.
OutputCh
(
MOT_3
,
motor_out
[
MOT_3
]);
...
...
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