Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小米5C一些问题 #1101

Open
MatthewZhuang opened this issue Jan 12, 2018 · 3 comments
Open

小米5C一些问题 #1101

MatthewZhuang opened this issue Jan 12, 2018 · 3 comments

Comments

@MatthewZhuang
Copy link

Screen: Physical size: 1080x1920
Density: Physical density: 480
Device: meri
Phone OS: 7.1.2
Host OS: darwin
Python: 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 12:54:16)

遇到问题:
目前尝试改了一些参数,最多能够跑到200多,发现当连续几次跳跃距离小于350时,容易发生错误,似乎是蓄力时间和距离不成正比,我现在尝试对这种情况进行改正,不知道其他人是否有这种情况。

改进和建议:无

@MatthewZhuang
Copy link
Author

#125 有类似改进

@MatthewZhuang
Copy link
Author

MatthewZhuang commented Jan 12, 2018

在jump函数开始添加以下代码,MI 5C刷到500多分。 同时config中按压系数为1.453

print(distance)
global count
if distance < 350:
    count += 1
    if count >= 3:   # 连续3次出现误差进行修正.
        print("revise the mistake....")
        distance *= 1.18
        count = 0
else:
    count -= 1
    if count < 0:
        count = 0
if distance < 200:
    print("distance < 200")
    distance *= 1.24
elif distance < 300:
    print("distance < 300")
    distance *= 1.18
elif distance < 350:
    print("distance < 350")
    distance *= 1.15
# elif distance > 650:
#     distance *= 0.95
else:
    distance *= 1.09

@ghost
Copy link

ghost commented Jan 14, 2018

参考#1066 最高9000+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant