2019赛季RM中部分区赛,自瞄和能量机关,完整稳定版。

This commit is contained in:
xinyang
2019-05-31 19:29:22 +08:00
parent 76bc5988c0
commit c0c12b24f0
28 changed files with 816 additions and 728 deletions

View File

@@ -43,9 +43,14 @@ public:
bool sendBoxPosition();
};
struct LightBlob {
#define BLOB_RED ENEMY_RED
#define BLOB_BLUE ENEMY_BLUE
class LightBlob {
public:
cv::RotatedRect rect;
double length;
uint8_t BlobColor;
explicit LightBlob(cv::RotatedRect &r) : rect(r) {
length = max(rect.size.height, rect.size.width);