Unipisa / Simu5G

Simu5G - 5G NR and LTE/LTE-A user-plane simulation model for OMNeT++ & INET
https://simu5g.org
Other
146 stars 83 forks source link

update ue location #75

Closed wggegshjg closed 1 year ago

wggegshjg commented 1 year ago

hello!

In order to obtain the real-time ue location in LtePhyUe.cc ,I write code ueCoord=LtePhyBase::getCoord(); And update once when receiving airframe(I set period to 0.01 seconds),print EV<<"**time**"<<NOW<<"**ue["<<nodeId_<<"]**Coord**"<<ueCoord<<endl;

However, when I run the simulation and select the fast mode, the location update of the ue becomes very chaotic; When I click run, the location of the ue is updated without problem;

The following is the location update of the ue I selected for fast: **time**0.73**ue[1027]**Coord**(124.464, 601.216, 0) m **time**0.74**ue[1027]**Coord**(124.818, 601.278, 0) m **time**0.75**ue[1027]**Coord**(124.818, 601.278, 0) m **time**0.76**ue[1027]**Coord**(124.818, 601.278, 0) m **time**0.77**ue[1027]**Coord**(124.818, 601.278, 0) m **time**0.78**ue[1027]**Coord**(124.818, 601.278, 0) m **time**0.79**ue[1027]**Coord**(124.818, 601.278, 0) m

Next, I choose run: **time**0.02**ue[1027]**Coord**(117.767, 600.035, 0) m **time**0.03**ue[1027]**Coord**(117.866, 600.052, 0) m **time**0.04**ue[1027]**Coord**(117.964, 600.069, 0) m By the way, let me add that I use the lineMobility;

So I want to ask the professor, have you ever met this situation; What should I do? Do you have any suggestions for me

wggegshjg commented 1 year ago

I updated the interval to 0.1s, and there was no problem running fast mode

wggegshjg commented 1 year ago

I want to ask if a parameter with a size of 0.1s is set to get the location of the ue