GIRC Path Data Conversion

The user inputs path data to GIRC by clicking points on the screen. Processing then draws segments between the points and calculates x,y coordinate data. This data is then converted into distance and turn data which will then be sent to the arduino aboard the robot.

In the above graphic, right turns are positive and left turns are negative. No turn can have a greater absolute value than 180. Turn calculations are rounded to the nearest degree. Initial heading is assumed to be zero degrees = positive x-axis.

What does this mean for the robot in practice? As an example, for the fourth and final path segment, the robot will be instructed to turn left 101 degrees, then travel 100 centimeters.

Now I can start work on sending the converted path data as commands to the robot over the USB/serial cable.

(NOTE: Data printed next to the points on the screen is for illustration purposes only. In real use, the data only appears in the lower left corner.)

Advertisements

About engineerzero

Once and future engineer.
This entry was posted in Uncategorized and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s