# VEX AIM - Go to coordinates question

**URL:** <https://plc.pd.vex.com/t/vex-aim-go-to-coordinates-question/2189>\
**Category:** VEX AIM\
**Created:** [October 21, 2026, 12:39pm UTC](https://plc.pd.vex.com/t/vex-aim-go-to-coordinates-question/2189 "2026-10-21T12:39:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dax\_Ward](https://plc.pd.vex.com/letter_avatar/dax_ward/32/6_22734026db12803ebb3e059622ac3534.png) [@Dax\_Ward](https://plc.pd.vex.com/u/Dax_Ward)\
**Post date:** [October 21, 2026, 12:39pm UTC](https://plc.pd.vex.com/t/vex-aim-go-to-coordinates-question/2189/1 "2026-10-21T12:39:28Z")

</div>

Hi everyone,

I’m working with VEX AIM and trying to figure out how to get the robot to return to its original starting position after completing a task.

Ideally, I’d like to use the “set robot position to X, Y” block to establish a starting point (e.g., 0, 0), have the robot move around and complete an activity, then automatically navigate back to those original coordinates.

The reason is that I’m developing activities involving AprilTags, which the robot needs to be facing fairly directly to identify reliably. I’d like the robot to return to a consistent starting position and orientation before searching for the next AprilTag.

My questions are:

- Does the “set robot position” block simply assign coordinates to the robot’s current location, or can it be used for navigation?

- Is there a way to tell the robot to move back to specific X/Y coordinates using VEXcode AIM Blocks?

- What’s the simplest approach to returning to both a starting position and heading?

I’m using Blocks rather than Python for these activities, so ideally I’d like to keep the solution within that environment.

Thanks for any suggestions!

---

<div class="post-metadata">

**Author:** ![Paul\_Tyler](https://plc.pd.vex.com/letter_avatar/paul_tyler/32/6_22734026db12803ebb3e059622ac3534.png) [@Paul\_Tyler](https://plc.pd.vex.com/u/Paul_Tyler)\
**Post date:** [October 22, 2026, 6:16am UTC](https://plc.pd.vex.com/t/vex-aim-go-to-coordinates-question/2189/2 "2026-10-22T06:16:57Z")

</div>

> [@Dax\_Ward](#):
>
> Is there a way to tell the robot to move back to specific X/Y coordinates using VEXcode AIM Blocks?

Hello Dax,

There is not a function to return to the block you set at 0,0. You would need to calculate the return angle and distance.

Code should look something like this:  
// Return to origin  
turn to heading (atan2 of x:[x] y:[y]) degrees  
drive forward for (distance to origin) mm

// Re-orient  
turn to heading 0 degrees
