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
3316fe8f
Commit
3316fe8f
authored
11 years ago
by
Robert Lefebvre
Committed by
Randy Mackay
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
TradHeli: Reset flybar passthrough to false when exiting Acro mode.
parent
f5ddaab3
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
ArduCopter/flight_mode.pde
+7
-0
7 additions, 0 deletions
ArduCopter/flight_mode.pde
with
7 additions
and
0 deletions
ArduCopter/flight_mode.pde
+
7
−
0
View file @
3316fe8f
...
@@ -227,6 +227,13 @@ static void exit_mode(uint8_t old_control_mode, uint8_t new_control_mode)
...
@@ -227,6 +227,13 @@ static void exit_mode(uint8_t old_control_mode, uint8_t new_control_mode)
// this assumes all manual flight modes use get_pilot_desired_throttle to translate pilot input to output throttle
// this assumes all manual flight modes use get_pilot_desired_throttle to translate pilot input to output throttle
set_accel_throttle_I_from_pilot_throttle
(
get_pilot_desired_throttle
(
g
.
rc_3
.
control_in
));
set_accel_throttle_I_from_pilot_throttle
(
get_pilot_desired_throttle
(
g
.
rc_3
.
control_in
));
}
}
#if FRAME_CONFIG == HELI_FRAME
// firmly reset the flybar passthrough to false when exiting acro mode.
if
(
old_control_mode
==
ACRO
)
{
attitude_control
.
use_flybar_passthrough
(
false
);
}
#endif //HELI_FRAME
}
}
// returns true or false whether mode requires GPS
// returns true or false whether mode requires GPS
...
...
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