This commit is contained in:
wanpiqiu123
2019-07-29 17:37:47 +08:00
parent 2d399cc567
commit af9a254dc1
2 changed files with 4 additions and 4 deletions

View File

@@ -23,10 +23,10 @@ static double mean(RoundQueue<double, length> &vec) {
} }
ArmorFinder::BoxRatioChangeType ArmorFinder::getRatioChangeType(RoundQueue<double, 5> &vec) { ArmorFinder::BoxRatioChangeType ArmorFinder::getRatioChangeType(RoundQueue<double, 5> &vec) {
auto d = (vec[0] - vec[1] + vec[3] + vec[4]) / 3.0; auto d = (vec[0] - vec[1] + vec[3] + vec[4]);
if (d > 0.1) { if (d > 0.15) {
return INCREASE; return INCREASE;
} else if (d < -0.1) { } else if (d < -0.15) {
return DECREASE; return DECREASE;
} else { } else {
return NOCHANGE; return NOCHANGE;

View File

@@ -47,7 +47,7 @@ ArmorBox::BoxOrientation ArmorBox::getOrientation() const {
case B1: case B1:
case B7: case B7:
case B8: case B8:
if (lengthDistanceRatio() < 0.28) { if (lengthDistanceRatio() < 0.26) {
return FRONT; return FRONT;
} else { } else {
return SIDE; return SIDE;