How to get the original distance data with C lib?

Frequent questions asked online, offline, in forums are answered here
Post Reply
wiku30
Posts: 1
Joined: Thu May 04, 2017 5:10 am

How to get the original distance data with C lib?

Post by wiku30 »

In dashboard the distances are displayed, but when using the C lib, it seems that with the interface we can only get the processed coordinate data, not the original distances.
Is there any way to do it?

smoker77
Posts: 327
Joined: Sat Feb 06, 2016 4:03 pm

Re: How to get the original distance data with C lib?

Post by smoker77 »

Now the C library not includes functions to get raw distances data.
We have published the protocol which allows to implement this function (see section 6 on page 10):
http://marvelmind.com/downloads/modem_u ... _01_27.pdf
The modem C library now is only an example and implements one command for reading and one for writing data.
We plan to expand it, but this may take some time.
You can take raw distances only from modem, not from mobile beacon.

amolad
Posts: 34
Joined: Wed Jan 18, 2017 12:56 pm

Re: How to get the original distance data with C lib?

Post by amolad »

Hello,

Yes this feature would be helpful for the ardupilot integration also as the Kalmann filter expects raw distances to the hedge! right now we are calculating wrt hedge position! check out the comment here
https://github.com/ArduPilot/ardupilot/ ... d.cpp#L394

Also is it possible to receive the position accuracy of the hedge? This would be great!! Right now it is hardcoded to +/-2 cms ^^ (https://github.com/ArduPilot/ardupilot/ ... d.cpp#L379)

Post Reply