This commit is contained in:
lixiaopeng
2021-04-16 16:03:13 +08:00
parent dc314f31cd
commit a003e642b4
2 changed files with 5 additions and 9 deletions

1
.idea/gradle.xml generated
View File

@@ -91,6 +91,7 @@
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>

View File

@@ -99,10 +99,7 @@ public class MoGoV2XCloundDataManager implements IMoGoV2XCloundDataManager, IMog
//添加停止线marker
handleStopLine();
//自车画线
// drawSlefCarLine(MogoApisHandler.getInstance().getApis().getAdasControllerApi().getLastLon(),
// MogoApisHandler.getInstance().getApis().getAdasControllerApi().getLastLat(),
// bearing);
drawSlefCarLine(carLocation.lon, carLocation.lat, bearing);
}, 500);
UiThreadHandler.postDelayed(() -> {
@@ -119,10 +116,8 @@ public class MoGoV2XCloundDataManager implements IMoGoV2XCloundDataManager, IMog
//二轮车和行人的渲染和移动
V2XWarnDataDrawer.getInstance().renderWarnData(cloundWarningInfo);
//车辆静止的时候 TODO
// drawSlefCarLine(MogoApisHandler.getInstance().getApis().getAdasControllerApi().getLastLon(),
// MogoApisHandler.getInstance().getApis().getAdasControllerApi().getLastLat(),
// bearing);
//车辆静止的时候
drawSlefCarLine(carLocation.lon, carLocation.lat, bearing);
}, 500);
@@ -275,7 +270,7 @@ public class MoGoV2XCloundDataManager implements IMoGoV2XCloundDataManager, IMog
* 自车为起点绘制(根据设计,前方行人/弱势交通参与者预警 getDirection() == 1 自车与停止线之间为蓝色预警;其他侧方预警自车与预碰撞点之间显示红色预警)
*/
private void drawSlefCarLine(double lon, double lat, float bearing) {
// Log.d("liyz", "-------1-------- isSelfLineClear = " + isSelfLineClear + "--lon =" + lon + "---lat = " + lat");
// Log.d("liyz", "-------1-------- isSelfLineClear = " + isSelfLineClear + "--lon =" + lon + "---lat = " + lat);
if (!isSelfLineClear) {
IMogoPolyline mogoPolyline = V2XServiceManager.getMoGoWarnPolylineManager().getMogoWarnPolyline();
if (mCloundWarningInfo != null) {