back to FEHRCS
Description
Returns the current region letter that your robot is running on after running the RCS.InitializeTouchMenu(const char* team_key)
command.
Parameters
None.
Returns
This function returns the regionletter you are running on (A – H) as a char.
Examples
#include <FEHRCS.h> #include <FEHUtility.h> #include <FEHLCD.h> int main(void) { //initialize the RCS RCS.InitializeTouchMenu("D97dbus62"); //Get the X coordinate of the robot every 1/2 second while(true) { // get the current region letter and display it to the screen LCD.WriteLine( RCS.CurrentRegionLetter() ); Sleep( 0.5 ); } }