Page 1 of 1

Problem in getting raw data using c program

Posted: Tue Apr 14, 2020 2:33 pm
by bo-lo
Hi

I'm trying to use the c program to retrieve the raw data of IMU and distances. The modem is connected in COM1. When I tried to use the c program with port COM1, I got massage said that there is no port available "see the attached pictures " .

Can you help in solving this problem.

Re: Problem in getting raw data using c program

Posted: Tue Apr 14, 2020 10:14 pm
by smoker77
Hello,

You can't run program for work with COM1 while dashboard using COM1 is running.
But you can close dashboard and run the program.

Also, you are trying not right program for getting data, try this one:
http://www.marvelmind.com/pics/2018_03_15_C_example.zip
It can be used for getting data from modem or mobile beacon.
From mobile beacon you can get 100 Hz IMU data but from modem only about 8 Hz (at system update rate).
And you should enable 'IMU via modem' option in 'Interfaces' section of mobile beacon's settings to get IMU data from modem.