FAQ 630: How to Get Latitude and Longitude from ASM Traffic
Question
How can I get latitude and longitude which are calculated in ASM simulation?
Solution
The latitude and longitude are available from Pos_Vehicle_GPS which is output of GPS_POSITION block.
This block is in the following path of Simulink model.
ASM_Traffic/Environment/Road/PlantModel/GPS_POSITION
A documentation of GPS_POSITION block is the following link.
Note:
GPS_POSITION block requires setting initial position.
How to set:
- Open a road with ModelDesk.
- Set the following three parameters with User signals in Properties.
- GPS method[0xy|1GPS|2GPS_UTM|3GPS_TMERC]: Coordinate system.
- start coordinate latitude[deg]: Latitude of road origin.
- start coordinate longitude[deg]: Longitude of road origin.
- Save the road and execute "Download All".
You can see if Maneuver runs on the settings of latitude and longitude with map.lay in ControlDesk project.
Tags
| Date | 2026-11-27 |
| Produkt | ASM Traffic Model |
| Informationstyp | FAQ (Häufig gestellte Fragen) |
| Informationskategorie | Arbeiten mit |