loading
 
Identifying X and Y COG serial data in RR.
Wilfredo Molina from United States  [13 posts]
7 years
Is there a way to identify each serial X and Y COG coordinate in Roborealm?
I need to tell a device that receives COG_X and COG_Y where each one begins or ends?  Thank you
Wilfredo Molina from United States  [13 posts] 7 years
What about a kind of parser like <cr>[COG_X]<lf>[COG_Y]?
Anonymous 7 years
Yes, that would work. Alternatively

[COG_X], [COG_Y]<cr><lf>

is more commonly used (comma separated with newline EOL).

STeven.
Wilfredo Molina from United States  [13 posts] 7 years
I am having problems reading the COG_X and COG_Y coordinates. What I really need is to make a way in C++ to read them as separate variables. For example, I need to save COG_X like int axis_x = COG_X and COG_Y like int axis_y = COG_Y. Is that possible using a C or a VB script? So far, all my attempts to do it have failed. Any help will be gold for me. Thanks.
Anonymous 7 years
Wilfredo,

When you say C++ I assume you mean from your own application?

Have you seen the API?

http://www.roborealm.com/help/API.php

The first link is a download of examples of how to use it to do many things including get a variable value. There are C++ examples in that download.

STeven.
Wilfredo Molina from United States  [13 posts] 7 years
Thanks for your answer STeven. I forgot about the coordinates manipulation in Roborealm and decided to do the programing in an Arduino compatible board. I had to use flags like .,; . Here a video of my project using Roborealm together with Osepp (Arduino compatible),Bipom and XBee technologies.

http://youtu.be/n9H5PwDrJhQ

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 Forum Index