Reading multiple values through fd from gyrosensor and encoder

8 years 1 month ago #29530538 by vishalojha
I am using mgs1600-gy mag sensor for taking the gyroscope values and i am taking encoder values through roboteq controller. But those values are not read properly by nextgen controller. So can you give a solution for taking both the values accuratly as i have to take gyro values and encoder values at the same time. Presently i am using File Descriptor for taking the values.

Please Log in or Create an account to join the conversation.

8 years 1 month ago #29530541 by TechSupport
If it is done via serial, you can always have the information queried repeatedly.

Example.

?V
# 250

?V will query the voltages, and the # 250 will repeat that query every 250mS.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.050 seconds