Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CPS-VO
mavros
Commits
ec19188a
Commit
ec19188a
authored
Mar 09, 2016
by
francois
Browse files
use local variable
parent
309fc8a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
mavros_extras/scripts/mavteleop
View file @
ec19188a
...
@@ -137,8 +137,6 @@ def rc_override_control(args):
...
@@ -137,8 +137,6 @@ def rc_override_control(args):
override_pub
=
rospy
.
Publisher
(
mavros
.
get_topic
(
"rc"
,
"override"
),
OverrideRCIn
,
queue_size
=
10
)
override_pub
=
rospy
.
Publisher
(
mavros
.
get_topic
(
"rc"
,
"override"
),
OverrideRCIn
,
queue_size
=
10
)
def
joy_cb
(
joy
):
def
joy_cb
(
joy
):
global
rc
# must be global to retain mode value
# get axes normalized to -1.0..+1.0 RPY, 0.0..1.0 T
# get axes normalized to -1.0..+1.0 RPY, 0.0..1.0 T
roll
=
get_axis
(
joy
,
'roll'
)
roll
=
get_axis
(
joy
,
'roll'
)
pitch
=
get_axis
(
joy
,
'pitch'
)
pitch
=
get_axis
(
joy
,
'pitch'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment