STA mode Laptop not seeing robot

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?

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

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

Did you switch the robot state to “teleport”?

Yea

Dave Slurz
201-401-5971
Dave.slurz@gmail.com

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

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

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

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

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)