From 4ff195404b21f74ca11e26a69cbf0418eaa4595f Mon Sep 17 00:00:00 2001
From: yy1717 <fctom1215@outlook.com>
Date: 星期二, 17 三月 2020 17:57:03 +0800
Subject: [PATCH] 科目三草案实现
---
lib/src/main/cpp/driver_test.h | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/lib/src/main/cpp/driver_test.h b/lib/src/main/cpp/driver_test.h
index 24c2444..8a0ff4a 100644
--- a/lib/src/main/cpp/driver_test.h
+++ b/lib/src/main/cpp/driver_test.h
@@ -10,6 +10,7 @@
#include "test_items2/dummy_light.h"
#include <vector>
+#include <string>
#define EXAM_AREA_NONE 0
#define EXAM_AREA_START 1
@@ -81,12 +82,41 @@
int wrong_id;
};
+struct road_exam_map {
+ int id;
+ int type;
+
+ string tts;
+
+ int redLineNum;
+ Polygon *redLine;
+
+ int greenLineNum;
+ Polygon *greenLine;
+
+ int redAreaNum;
+ Polygon *redArea;
+
+ int triggerLineNum;
+ Polygon *triggerLine;
+
+ Line startLine;
+ Line endLine;
+};
+
+typedef vector<struct road_exam_map> LIST_ROAD_MAP;
+
//vector<ExamFault> ExamFaultList;
void DriverTestInit(void);
void ReadDriverExamPrimer(void);
void ClearMap(void);
void AddMap(int id, int type, const double (*map)[2], int pointNum, const double (*map2)[2], int pointNum2);
+void CleanRoadMap(void);
+void SetRoadMapPoints(vector<double> &mapPoints);
+void AddRoadMapParent(int id, int type, string tts, vector<vector<int>> &redLines,
+ vector<vector<int>> &redAreas, vector<vector<int>> &greenLines, vector<vector<int>> &triggerLines);
+
void SetCarMeasurePoint(double *basePoint, int *axial, int *left_front_tire,
int *right_front_tire, int *left_rear_tire, int *right_rear_tire,
int *body, int bodyNum, double (*point)[2], int pointNum, double antPitch);
--
Gitblit v1.8.0