summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-04-02 00:23:13 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-04-02 00:23:13 (GMT)
commitb842d3499143e85a6d02107feb27d4ff5809e0f8 (patch)
tree230cd85f1a8e849ff04898402a3d706f54d505c1
parent1ec274923f1310ec9ee2ca4c599f8d92a3018c53 (diff)
bugfix for jump detection
-rw-r--r--src/displayapp/screens/Motion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/screens/Motion.cpp b/src/displayapp/screens/Motion.cpp
index fd6650e..4597426 100644
--- a/src/displayapp/screens/Motion.cpp
+++ b/src/displayapp/screens/Motion.cpp
@@ -76,7 +76,7 @@ void Motion::Refresh() {
if (started) {
TickType_t current_frame_ms = current_time - last_frame_time;
double G_scaled = G * G_SCALE;
- if (G_scaled < 1) {
+ if (G_scaled < 0.618) {
if (!jumping) {
jump_started_or_ended = true;
current_jump_speed = 0;