This commit is contained in:
xinyang
2019-07-19 12:24:59 +08:00
parent 995c436172
commit d7fd85ff15

View File

@@ -35,6 +35,7 @@ static bool sendTarget(Serial &serial, double x, double y, double z) {
}
bool ArmorFinder::sendBoxPosition() {
if(armor_box.rect == cv::Rect2d()) return false;
auto rect = armor_box;
double dx = rect.x + rect.width / 2 - 320;
double dy = rect.y + rect.height / 2 - 240 - 20;