Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
crazyflie-clients-python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lukas Wegmann
crazyflie-clients-python
Commits
77f99a01
Commit
77f99a01
authored
11 years ago
by
Marcus Eliasson
Browse files
Options
Downloads
Patches
Plain Diff
More tuning of parameters.
parent
1c52c0c3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/cfclient/utils/leapreader.py
+4
-4
4 additions, 4 deletions
lib/cfclient/utils/leapreader.py
with
4 additions
and
4 deletions
lib/cfclient/utils/leapreader.py
+
4
−
4
View file @
77f99a01
...
...
@@ -75,10 +75,10 @@ class LeapListener(leapmotion.Leap.Listener):
normal
=
hand
.
palm_normal
direction
=
hand
.
direction
# Pich and roll are mixed up...
roll
=
-
direction
.
pitch
*
leapmotion
.
Leap
.
RAD_TO_DEG
/
45
.0
pitch
=
-
normal
.
roll
*
leapmotion
.
Leap
.
RAD_TO_DEG
/
45
.0
yaw
=
direction
.
yaw
*
leapmotion
.
Leap
.
RAD_TO_DEG
/
9
0.0
thrust
=
(
hand
.
palm_position
[
1
]
-
5
0
)
/
20
0.0
# Use the elevation of the hand for thrust
roll
=
-
direction
.
pitch
*
leapmotion
.
Leap
.
RAD_TO_DEG
/
30
.0
pitch
=
-
normal
.
roll
*
leapmotion
.
Leap
.
RAD_TO_DEG
/
30
.0
yaw
=
direction
.
yaw
*
leapmotion
.
Leap
.
RAD_TO_DEG
/
7
0.0
thrust
=
(
hand
.
palm_position
[
1
]
-
8
0
)
/
15
0.0
# Use the elevation of the hand for thrust
if
thrust
<
0.0
:
thrust
=
0.0
;
...
...
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