dawonn/vectornav

Set antenna offsets

Opened this issue · 4 comments

Hello,

I have a VN-300 Dual GNSS and wondering if I could set the Antenna positions directly in your code, instead of the VectorNavs control center??

Thanks!!

image
image

Here are the settings in the Control Center as an example.

It finally worked!! In the following the code:
// Set Antenna position
vec3f antenna_position(1.1, 2.2, 3.3);
vs.writeGpsAntennaOffset(user_data.antenna_position, false);
vec3f base_line_position(1.1, 2.2, 3.3);
vec3f base_line_uncertainity(0.1, 0.2, 0.3);
vs.writeGpsCompassBaseline(user_data.base_line_position,user_data.base_line_uncertainity, false);
vs.writeSettings();

Now I wonder how I could refer to this in the launch file. Could you give me an advice - especially regarding the node handle, which I have to use to solve this issue, I guess?

Thank you!!