Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
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
Baitboat
Commits
e3c24fbc
Commit
e3c24fbc
authored
13 years ago
by
Randy Mackay
Browse files
Options
Downloads
Patches
Plain Diff
ArduCopter - fix for yaw control on Octa Quad Plus frame.
parent
b55db247
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
ArduCopter/motors_octa_quad.pde
+10
-11
10 additions, 11 deletions
ArduCopter/motors_octa_quad.pde
with
10 additions
and
11 deletions
ArduCopter/motors_octa_quad.pde
+
10
−
11
View file @
e3c24fbc
...
...
@@ -51,7 +51,6 @@ static void output_motors_armed()
motor_out
[
MOT_6
]
=
g
.
rc_3
.
radio_out
-
roll_out
+
pitch_out
;
// APM2 OUT6 APM1 OUT8 FRONT RIGHT CW BOTTOM
motor_out
[
MOT_7
]
=
g
.
rc_3
.
radio_out
-
roll_out
-
pitch_out
;
// APM2 OUT7 APM1 OUT10 BACK RIGHT CCW BOTTOM
motor_out
[
MOT_8
]
=
g
.
rc_3
.
radio_out
+
roll_out
-
pitch_out
;
// APM2 OUT8 APM1 OUT11 BACK LEFT CW BOTTOM
}
else
{
roll_out
=
g
.
rc_1
.
pwm_out
;
pitch_out
=
g
.
rc_2
.
pwm_out
;
...
...
@@ -64,18 +63,18 @@ static void output_motors_armed()
motor_out
[
MOT_6
]
=
g
.
rc_3
.
radio_out
+
pitch_out
;
// APM2 OUT6 APM1 OUT8 FRONT CW BOTTOM
motor_out
[
MOT_7
]
=
g
.
rc_3
.
radio_out
-
roll_out
;
// APM2 OUT7 APM1 OUT10 RIGHT CCW BOTTOM
motor_out
[
MOT_8
]
=
g
.
rc_3
.
radio_out
-
pitch_out
;
// APM2 OUT8 APM1 OUT11 BACK CW BOTTOM
}
// Yaw
motor_out
[
MOT_1
]
+=
g
.
rc_4
.
pwm_out
;
// CCW
motor_out
[
MOT_3
]
+=
g
.
rc_4
.
pwm_out
;
// CCW
motor_out
[
MOT_5
]
+=
g
.
rc_4
.
pwm_out
;
// CCW
motor_out
[
MOT_7
]
+=
g
.
rc_4
.
pwm_out
;
// CCW
// Yaw
motor_out
[
MOT_1
]
+=
g
.
rc_4
.
pwm_out
;
// CCW
motor_out
[
MOT_3
]
+=
g
.
rc_4
.
pwm_out
;
// CCW
motor_out
[
MOT_5
]
+=
g
.
rc_4
.
pwm_out
;
// CCW
motor_out
[
MOT_7
]
+=
g
.
rc_4
.
pwm_out
;
// CCW
motor_out
[
MOT_2
]
-=
g
.
rc_4
.
pwm_out
;
// CW
motor_out
[
MOT_4
]
-=
g
.
rc_4
.
pwm_out
;
// CW
motor_out
[
MOT_6
]
-=
g
.
rc_4
.
pwm_out
;
// CW
motor_out
[
MOT_8
]
-=
g
.
rc_4
.
pwm_out
;
// CW
}
motor_out
[
MOT_2
]
-=
g
.
rc_4
.
pwm_out
;
// CW
motor_out
[
MOT_4
]
-=
g
.
rc_4
.
pwm_out
;
// CW
motor_out
[
MOT_6
]
-=
g
.
rc_4
.
pwm_out
;
// CW
motor_out
[
MOT_8
]
-=
g
.
rc_4
.
pwm_out
;
// CW
// TODO add stability patch
motor_out
[
MOT_1
]
=
min
(
motor_out
[
MOT_1
],
out_max
);
...
...
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