openimu_test.py Logs Blank csv Files

Hello, I am using Ubuntu 18.04

I am able to run the python webserver and connect to the Aceinna developers site: https://developers.aceinna.com/. The OpenIMU outputs data and graphs beautifully!

I am wanting to run the openimu_test.py script on Ubuntu.
I cloned the github repository locally. When I run the openimu_test.py, the log file ends up empty.

Is there a method to logging non-empty files?

Thank you

Hello. What is openimu_test.py? I seems not included in our official release of the python driver.
If you want to log data into a file, you cna just click this button on https://developers.aceinna.com/devices/record-next
无标题.jpg

This post is deleted!

Here is a link, the image did not seem to post: https://github.com/Aceinna/python-openimu/tree/master/samples

Is there a python sample for getting the heading from the imu, I would like to put into custom program not using the aceinna developers site.

Please always use the master branch or executables.
The image cannot be uploaded successuflly on my computer. However, you can easily find this button beside the "start to play" button.

pls try to use master or bugfix branch.
or you can you executable program directly, download: https://developers.aceinna.com/devices/connect. operating and record:https://developers.aceinna.com/devices/record-next

This file is for developers to test some function. You should always use webserver.py

Does samples/openimu_test.py no longer work?

I never use that file. I always use webserver.py

Is there an example of a WebSocket or client that would not rely on the https://developers.aceinna.com/devices/connect?

I will not have access to the aceinna website in my project.

Actually, it is very easy to modify the source code of the python driver to meet your need. You can find the decoded data in openimu_unpack_output_packet() in openimu.py. Then you can do everything with the data.

However, I believe it is a bug for the driver not logging the data. It will get fixed.

Thank you for your feedback.

Dong

Thank you, I will try this next. I look forward to testing !

A quick workaround would be to replace the following line in openimiu.py:

with open('app_config/IMU/openimu.json') as json_data:

with

with open('app_config/INS/openimu.json') as json_data:
Log in to reply