xioTechnologies / NGIMU-MATLAB-Real-Time-Example

11 stars 11 forks source link

How to get euler angles in real time #9

Open QinL67 opened 2 months ago

QinL67 commented 2 months ago

Hi,

I've run this example sucessfully, it's great. But I have some other issue. First I want to know how to get the euler angle from the Osc mesages, I add a euler case under oscMessage.oscAddress, but it doesn't work. Second, I want to know how to save those data in matalb, I don't need a gui interface to show the data, I just want to save s period of real time data.

Thanks in advance,

Look forward to your reply

xioTechnologies commented 2 months ago

The default NGIMU settings disable Euler angles messages. If you want the NGIMU to send Euler angles then you should set the Euler angles send rate to a value >0 Hz. I recommend 50 Hz. I also recommend that you set the quaternion send rate to 0 Hz (i.e. disabled) if you are using Euler angles. Sending both quaternions and Euler angles is redundant.

This is a real-time example. It does not save data to file. If you want to save data to file then I suggest you use the data logger tool in the NGIMU GUI.

QinL67 commented 2 months ago

Thanks for your fast reply. I need to change this rate in NGIMU's GUI software right? I really want to know is it possible to use matlab to read the real-time Euler angle data and save it, like this example?

Have a nice day,

Look forward to your reply!

xioTechnologies commented 2 months ago

You can change NGIMU settings using the NGIMU GUI. This repository is a real-time example, it does not include any features for logging to file.