|
Identifying X and Y COG serial data in RR. Wilfredo Molina from United States [13 posts] |
11 year
|
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] |
11 year
|
What about a kind of parser like <cr>[COG_X]<lf>[COG_Y]?
|
|
|
Anonymous |
11 year
|
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] |
11 year
|
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 |
11 year
|
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] |
11 year
|
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
|
|