no message
This commit is contained in:
@@ -133,17 +133,21 @@ public class MoGoV2XCloundDataManager implements IMoGoV2XCloundDataManager, IMog
|
|||||||
* 停止线绘制
|
* 停止线绘制
|
||||||
* */
|
* */
|
||||||
private void handleStopLine() {
|
private void handleStopLine() {
|
||||||
if (mCloundWarningInfo != null) {
|
try {
|
||||||
for (int i = 0; i < fillPoints.size(); i++) {
|
if (mCloundWarningInfo != null) {
|
||||||
V2XWarningEntity entity = new V2XWarningEntity();
|
for (int i = 0; i < fillPoints.size(); i++) {
|
||||||
MogoLatLng latLng = (MogoLatLng) fillPoints.get(i);
|
V2XWarningEntity entity = new V2XWarningEntity();
|
||||||
entity.setLat(latLng.lat);
|
MogoLatLng latLng = (MogoLatLng) fillPoints.get(i);
|
||||||
entity.setLon(latLng.lon);
|
entity.setLat(latLng.lat);
|
||||||
entity.setCollisionLat(mCloundWarningInfo.getCollisionLat());
|
entity.setLon(latLng.lon);
|
||||||
entity.setCollisionLon(mCloundWarningInfo.getCollisionLon());
|
entity.setCollisionLat(mCloundWarningInfo.getCollisionLat());
|
||||||
entity.heading = mCloundWarningInfo.heading;
|
entity.setCollisionLon(mCloundWarningInfo.getCollisionLon());
|
||||||
V2XWarnDataDrawer.getInstance().renderStopLineData(entity);
|
entity.heading = mCloundWarningInfo.heading;
|
||||||
|
V2XWarnDataDrawer.getInstance().renderStopLineData(entity);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -228,7 +232,7 @@ public class MoGoV2XCloundDataManager implements IMoGoV2XCloundDataManager, IMog
|
|||||||
int count = (int) (distance / 5);
|
int count = (int) (distance / 5);
|
||||||
for (int i = 0; i < count; i++) {
|
for (int i = 0; i < count; i++) {
|
||||||
MogoLatLng newLo = Trigonometric.getNewLocation(
|
MogoLatLng newLo = Trigonometric.getNewLocation(
|
||||||
startLatLng, 5 * (i + 1), Trigonometric.getAngle(startLatLng.lon,startLatLng.lat,endLatLng.lon,endLatLng.lat));
|
startLatLng, 5 * (i + 1), Trigonometric.getAngle(startLatLng.lon, startLatLng.lat, endLatLng.lon, endLatLng.lat));
|
||||||
Log.d(TAG, "小箭头位置" + newLo);
|
Log.d(TAG, "小箭头位置" + newLo);
|
||||||
V2XWarnDataDrawer.getInstance().drawerArrowsMarkerWithLocation(newLo, WARNING_ARROWS, 10, new Double(rotate).intValue());
|
V2XWarnDataDrawer.getInstance().drawerArrowsMarkerWithLocation(newLo, WARNING_ARROWS, 10, new Double(rotate).intValue());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user