Using the XBee RSSI To measure wireless signal strength

The purpose of my project is to have my robot (already built, pretty friggin sweet) use the MaxStream Xbee to measure signal strength from a wireless router using the RSSI, and with this signal strength it will drive towards the router based on getting a better signal.

What I Have:
Arduino Mega1280
MaxStream XBee and Arduino Adapter
Robot(Programmed to Drive)

What I need:
A way to get the RSSI value from the XBee (the code required)
Any additional code that may help

Any information that you can give me would be very helpful.

A way to get the RSSI value from the XBee (the code required)

The code won't really do you much good, as the RSSI value is not at all accurate. Moving 5 feet closer may actually get a lower RSSI value. The RSSI value is only XBee to XBee, too, not XBee to a wireless router.

You need to figure out a different approach.