参数更新。

This commit is contained in:
xinyang
2019-08-04 12:32:13 +08:00
parent ef32b54761
commit 50e925dbb2
11 changed files with 17780 additions and 17780 deletions

View File

@@ -87,7 +87,7 @@ void ArmorFinder::antiTop() {
anti_top_state = NORMAL;
LOGM(STR_CTR(WORD_YELLOW, "switch to normal"));
}
if (getPointLength(last_box.getCenter() - target_box.getCenter()) > last_box.rect.height * 3.0) {
if (getPointLength(last_box.getCenter() - target_box.getCenter()) > last_box.rect.height * 1.5) {
if (150 < interval && interval < 700) {
if (anti_top_state == ANTI_TOP) {
top_periodms.push(interval);
@@ -107,7 +107,7 @@ void ArmorFinder::antiTop() {
}
if (anti_top_state == NORMAL) {
sendBoxPosition(0);
} else if (interval < top_periodms[-1] * 0.2){
} else if (interval < top_periodms[-1] * 0.1){
sendBoxPosition(shoot_delay);
}
}