I am using spline to simulate a drone locomotion where i create spline on runtime through gps points by converting them in to UE coordinates through transform Lon Lat Height position to unreal node. And also create a dictionary data set that stores speed and rotation values against converted gps values on runtime. Now the problem is i am searching current world location on spline with corresponding gps values in Dictionary it doesn’t find any value. May be because of the node transform Lon Lat Height position to unreal will not provide world location. Is there any way where i can get those values in UE world coordinates
HI @Arbab_Ijaz , this looks like an interesting problem.
Your first screenshot looks a little blurry though. Do you think you could post a higher resolution version so we can read it a little easier?
I have add that piece of code in Blueprint UE.
Thanks. Hard to know what exactly is the problem, but there are a couple parts of your blueprints that looks conspicuous to me…
Here it looks like your taking Unreal XYZ and outputting to pins labeled Long / Lat / Altitude. If the caller is expecting long / lat, this looks like it won’t work.
Also, similar situation when getting a spline point. If the spline points are in Unreal world coords, and you are using them in a map that contains long / lat / alt, this doesn’t sound like it’s going to work either. They need to be converted.
In first picture what I’m doing is taking a longitude latitude values and converting it into UE coordinates. This is a custom function that convert Geographical coordinates to UE coordinates.
In second picture i am using a mavlink Data hash map that stores GPS values (Already converted to UE coordinates)and some data related to gps values like different location values store with different rotation data.
Now in second picture i am trying to find required data corresponding to current location. As i already converted gps values into UE coordinates and finding it through spline world loaction so i think there is no need of any type of conversion. If I’m not assuming it wrong