# STA mode Laptop not seeing robot

**URL:** <https://xrp.discourse.group/t/sta-mode-laptop-not-seeing-robot/179>\
**Category:** Coding\
**Created:** [December 6, 2023, 4:35pm UTC](https://xrp.discourse.group/t/sta-mode-laptop-not-seeing-robot/179 "2023-12-06T16:35:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveslurz](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@daveslurz](https://xrp.discourse.group/u/daveslurz)\
**Post date:** [December 6, 2023, 4:35pm UTC](https://xrp.discourse.group/t/sta-mode-laptop-not-seeing-robot/179/1 "2023-12-06T16:35:28Z")

</div>

Issue seeing robot. The robot has been set to STA mode and is on the same wifi as the laptop. This was confirmed by reading the text file.

We have the laptop in simulation mode and we have a controller plugged in and can see the controller moves in the simulation.

We are using the wpilip example

We cannot get this movement to physically move the robot.

Do I need to tell the laptop the IP of the robot? If so where is that done?

Ulitmately we will want to have multiple robots each connected to their own laptop so I assume I need to somehow tell each laptop the IP of the robot?

---

<div class="post-metadata">

**Author:** ![ZeeQueue](https://yyz1.discourse-cdn.com/flex011/user_avatar/xrp.discourse.group/zeequeue/32/35_2.png) [@ZeeQueue](https://xrp.discourse.group/u/ZeeQueue)\
**Post date:** [December 6, 2023, 8:00pm UTC](https://xrp.discourse.group/t/sta-mode-laptop-not-seeing-robot/179/2 "2023-12-06T20:00:25Z")

</div>

You’ll want to update your build.gradle file with the IP address of your robot. Look for the line with “HALSIMXRP\_HOST” and change the IP address there (it should be defaulted to 192.168.42.1) to the IP address shown in the text file.

More details can be found in the docs: [Programming the XRP — FIRST Robotics Competition documentation](https://docs.wpilib.org/en/latest/docs/xrp-robot/programming-xrp.html#running-an-xrp-program)

---

<div class="post-metadata">

**Author:** ![daveslurz](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@daveslurz](https://xrp.discourse.group/u/daveslurz)\
**Post date:** [December 6, 2023, 9:16pm UTC](https://xrp.discourse.group/t/sta-mode-laptop-not-seeing-robot/179/3 "2023-12-06T21:16:19Z")

</div>

Just changed the ip in the Gradle to that of the robot.  
In simulation I see the joystick value’s change but the robot doesn’t move.

Dave Slurz  
201-401-5971  
[Dave.slurz@gmail.com](mailto:Dave.slurz@gmail.com)

---

<div class="post-metadata">

**Author:** ![ZeeQueue](https://yyz1.discourse-cdn.com/flex011/user_avatar/xrp.discourse.group/zeequeue/32/35_2.png) [@ZeeQueue](https://xrp.discourse.group/u/ZeeQueue)\
**Post date:** [December 6, 2023, 9:17pm UTC](https://xrp.discourse.group/t/sta-mode-laptop-not-seeing-robot/179/4 "2023-12-06T21:17:51Z")

</div>

Did you switch the robot state to “teleport”?

---

<div class="post-metadata">

**Author:** ![daveslurz](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@daveslurz](https://xrp.discourse.group/u/daveslurz)\
**Post date:** [December 6, 2023, 9:28pm UTC](https://xrp.discourse.group/t/sta-mode-laptop-not-seeing-robot/179/5 "2023-12-06T21:28:25Z")

</div>

Yea

Dave Slurz  
201-401-5971  
[Dave.slurz@gmail.com](mailto:Dave.slurz@gmail.com)

---

<div class="post-metadata">

**Author:** ![ZeeQueue](https://yyz1.discourse-cdn.com/flex011/user_avatar/xrp.discourse.group/zeequeue/32/35_2.png) [@ZeeQueue](https://xrp.discourse.group/u/ZeeQueue)\
**Post date:** [December 7, 2023, 1:15am UTC](https://xrp.discourse.group/t/sta-mode-laptop-not-seeing-robot/179/6 "2023-12-07T01:15:32Z")

</div>

Does the same code work with the XRP in AP mode?

---

<div class="post-metadata">

**Author:** ![daveslurz](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@daveslurz](https://xrp.discourse.group/u/daveslurz)\
**Post date:** [December 7, 2023, 1:52am UTC](https://xrp.discourse.group/t/sta-mode-laptop-not-seeing-robot/179/7 "2023-12-07T01:52:31Z")

</div>

Yes  
As soon as we switched to ap mode we can control all the robots.  
We are planning on running 6 xrp robots this weekend as a 3v3  
I originally was planning on creating a network and wiring the laptops and WiFi the xrp but since we’ve had this issue I am now considering just making each xrp in AP and one laptop per xrp.  
Do you see any advantages to using AP vs station in this scenario.  
Will there but any issues of conflicting robots?

Dave Slurz  
201-401-5971  
[Dave.slurz@gmail.com](mailto:Dave.slurz@gmail.com)

---

<div class="post-metadata">

**Author:** ![ZeeQueue](https://yyz1.discourse-cdn.com/flex011/user_avatar/xrp.discourse.group/zeequeue/32/35_2.png) [@ZeeQueue](https://xrp.discourse.group/u/ZeeQueue)\
**Post date:** [December 7, 2023, 1:59am UTC](https://xrp.discourse.group/t/sta-mode-laptop-not-seeing-robot/179/8 "2023-12-07T01:59:16Z")

</div>

I ran a 2v2 “tournament” a few weeks ago with all the robots in AP mode and it worked pretty well (including having a number of other XRPs also in AP mode running around the surrounding area).

Also make sure you are running the latest firmware. There have been some network related bug fixes

---

<div class="post-metadata">

**Author:** ![daveslurz](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@daveslurz](https://xrp.discourse.group/u/daveslurz)\
**Post date:** [December 7, 2023, 2:13am UTC](https://xrp.discourse.group/t/sta-mode-laptop-not-seeing-robot/179/9 "2023-12-07T02:13:38Z")

</div>

Good to hear the 2v2 worked.  
What sort of range (distance from laptop) would you expect?  
We flashed all the xrp to the latest firmware

Dave Slurz  
201-401-5971  
[Dave.slurz@gmail.com](mailto:Dave.slurz@gmail.com)

---

<div class="post-metadata">

**Author:** ![ZeeQueue](https://yyz1.discourse-cdn.com/flex011/user_avatar/xrp.discourse.group/zeequeue/32/35_2.png) [@ZeeQueue](https://xrp.discourse.group/u/ZeeQueue)\
**Post date:** [December 7, 2023, 2:15am UTC](https://xrp.discourse.group/t/sta-mode-laptop-not-seeing-robot/179/10 "2023-12-07T02:15:19Z")

</div>

We had robots operate up to 20-25 feet away from the laptops. (Basically we had robots in a FTC field and driver stations on either side)
