更新通信协议。

This commit is contained in:
xinyang
2019-05-09 20:14:25 +08:00
parent 13ffc6efe6
commit 85e1df61da
6 changed files with 21 additions and 9 deletions

View File

@@ -16,7 +16,7 @@ typedef enum{
class ArmorFinder{
public:
ArmorFinder(EnemyColor color, Uart &u, string paras_folder);
ArmorFinder(EnemyColor color, Uart &u, string paras_folder, const bool &use);
~ArmorFinder() = default;
private:
@@ -36,6 +36,7 @@ private:
int contour_area;
Uart &uart;
const bool &use_classifier;
bool stateSearchingTarget(cv::Mat &src);
bool stateTrackingTarget(cv::Mat &src);