Retrieving distance from only one stationary beacon

Frequent questions asked online, offline, in forums are answered here
Post Reply
joaofranco
Posts: 1
Joined: Mon Aug 03, 2020 2:54 pm

Retrieving distance from only one stationary beacon

Post by joaofranco »

Hello

I am writting a master's thesis in navigation systems. In my work i need the ability to know the distance between a vehicle and a known location. For this i am using two HWv4.9 one running as stationary beacon and another as hedge. I have enabled raw distances on the hedge and i am running the C language example on linux (with all print functions comented except for the Raw DIstances one). I get the message the port has oppened at baud rate 9600 and then i get nothing else. I have tried debugging my problem and i have discovered the code is set to create 4 raw distance data structures which i suppose is related to the normal use of 4 stationary beacons instead of one, in my case. Also I have discovered that within the function printRawDistancesFromMarvelmindHedge() and after getting the RawDistances, the structure position related to the update, rawDistances.updated(), is set to false making the program not enter the if statement which controls the writting on the screen.

Has anyone had my problem? Should I even expect this to work using only a stationary beacon and a hedge?

Thanks in advance
João Franco
Portugal

Post Reply