Skip to content

Commit

Permalink
Merge pull request #13 from Yoonit-Labs/fix/head-movement-definitions
Browse files Browse the repository at this point in the history
[Fix] Head movement definitions
  • Loading branch information
Goulartvic committed Apr 1, 2021
2 parents fc2a27f + 62f588f commit 7406fef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ Here we explaining the above gif and how reached the "results". Each "movement"
| Head Direction | Attribute | _v_ < -36° | -36° < _v_ < -12° | -12° < _v_ < 12° | 12° < _v_ < 36° | 36° < _v_ |
| - | - | - | - | - | - | - |
| Vertical | `headEulerAngleX` | Super Down | Down | Frontal | Up | Super Up |
| Horizontal | `headEulerAngleY` | Super Right | Right | Frontal | Left | Super Left |
| Tilt | `headEulerAngleZ` | Super Left | Left | Frontal | Right | Super Right |
| Horizontal | `headEulerAngleY` | Super Left | Left | Frontal | Right | Super Right |
| Tilt | `headEulerAngleZ` | Super Right | Right | Frontal | Left | Super Left |

## To contribute and make it better

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,14 +287,14 @@ class MainActivity : AppCompatActivity() {
tilt_movement.text =
getString(
R.string.tilt_movement,
"Super Left"
"Super Right"
)
}
headAngleZ > -36 && headAngleZ < -12 -> {
tilt_movement.text =
getString(
R.string.tilt_movement,
"Left"
"Right"
)
}
headAngleZ > -12 && headAngleZ < 12 -> {
Expand All @@ -308,14 +308,14 @@ class MainActivity : AppCompatActivity() {
tilt_movement.text =
getString(
R.string.tilt_movement,
"Right"
"Left"
)
}
headAngleZ > 36 -> {
tilt_movement.text =
getString(
R.string.tilt_movement,
"Super Right"
"Super Left"
)
}
}
Expand Down

0 comments on commit 7406fef

Please sign in to comment.