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
b37f79d3
Commit
b37f79d3
authored
12 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
Plane: update for new APM_Control API
parent
cc778a68
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
ArduPlane/Attitude.pde
+3
-2
3 additions, 2 deletions
ArduPlane/Attitude.pde
with
3 additions
and
2 deletions
ArduPlane/Attitude.pde
+
3
−
2
View file @
b37f79d3
...
...
@@ -73,7 +73,8 @@ static void stabilize_roll(float speed_scaler)
if
(
ahrs
.
roll_sensor
<
0
)
nav_roll_cd
-=
36000
;
}
channel_roll
->
servo_out
=
g
.
rollController
.
get_servo_out
(
nav_roll_cd
,
speed_scaler
,
channel_roll
->
servo_out
=
g
.
rollController
.
get_servo_out
(
nav_roll_cd
-
ahrs
.
roll_sensor
,
speed_scaler
,
control_mode
==
STABILIZE
,
aparm
.
flybywire_airspeed_min
);
}
...
...
@@ -86,7 +87,7 @@ static void stabilize_roll(float speed_scaler)
static
void
stabilize_pitch
(
float
speed_scaler
)
{
int32_t
demanded_pitch
=
nav_pitch_cd
+
g
.
pitch_trim_cd
+
channel_throttle
->
servo_out
*
g
.
kff_throttle_to_pitch
;
channel_pitch
->
servo_out
=
g
.
pitchController
.
get_servo_out
(
demanded_pitch
,
channel_pitch
->
servo_out
=
g
.
pitchController
.
get_servo_out
(
demanded_pitch
-
ahrs
.
pitch_sensor
,
speed_scaler
,
control_mode
==
STABILIZE
,
aparm
.
flybywire_airspeed_min
,
...
...
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