rpng / xsens_standalone

Python Standalone library for use with the xsens IMU
20 stars 8 forks source link

read_measurement #1

Open antr19 opened 5 years ago

antr19 commented 5 years ago

Good afternoon! I set through a config two types of measurements, for example, Acceleration and Angular Velocity and start reading data through the console, everything is OK. ./mtdevice.py -c wr,af ./mtdevice.py But if I call this in a separate program via functions: mt.SetOutputConfiguration(get_output_config("wr,af ")) mt.read_measurement() I only get one type of data - Angular Velocity. How to get the second data type - Acceleration? Thanks)

goldbattle commented 5 years ago

Does mtnode.py work for you? or does that also not produce any output? It looks like the read measurement can take a mode and settings, I would take a look at the main method you are calling in mtdevice.py to see the differences. https://github.com/rpng/xsens_standalone/blob/master/mtdevice.py#L1473-L1481