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
466e9db1
Commit
466e9db1
authored
11 years ago
by
Randy Mackay
Browse files
Options
Downloads
Patches
Plain Diff
Copter: integrate AC_WPNav get_speed_xy name change
parent
510c9920
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ArduCopter/ArduCopter.pde
+1
-1
1 addition, 1 deletion
ArduCopter/ArduCopter.pde
ArduCopter/commands_logic.pde
+1
-1
1 addition, 1 deletion
ArduCopter/commands_logic.pde
with
2 additions
and
2 deletions
ArduCopter/ArduCopter.pde
+
1
−
1
View file @
466e9db1
...
@@ -1448,7 +1448,7 @@ static void tuning(){
...
@@ -1448,7 +1448,7 @@ static void tuning(){
case
CH6_WP_SPEED
:
case
CH6_WP_SPEED
:
// set waypoint navigation horizontal speed to 0 ~ 1000 cm/s
// set waypoint navigation horizontal speed to 0 ~ 1000 cm/s
wp_nav
.
set_
horizontal_velocit
y
(
g
.
rc_6
.
control_in
);
wp_nav
.
set_
speed_x
y
(
g
.
rc_6
.
control_in
);
break
;
break
;
// Acro roll pitch gain
// Acro roll pitch gain
...
...
This diff is collapsed.
Click to expand it.
ArduCopter/commands_logic.pde
+
1
−
1
View file @
466e9db1
...
@@ -794,7 +794,7 @@ static bool do_guided(const AP_Mission::Mission_Command& cmd)
...
@@ -794,7 +794,7 @@ static bool do_guided(const AP_Mission::Mission_Command& cmd)
static
void
do_change_speed
(
const
AP_Mission
::
Mission_Command
&
cmd
)
static
void
do_change_speed
(
const
AP_Mission
::
Mission_Command
&
cmd
)
{
{
if
(
cmd
.
content
.
speed
.
target_ms
>
0
)
{
if
(
cmd
.
content
.
speed
.
target_ms
>
0
)
{
wp_nav
.
set_
horizontal_velocit
y
(
cmd
.
content
.
speed
.
target_ms
*
100.0
f
);
wp_nav
.
set_
speed_x
y
(
cmd
.
content
.
speed
.
target_ms
*
100.0
f
);
}
}
}
}
...
...
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