.CurrentCourse( )

back to FEHRCS

Description

Returns the current course number that your robot is running on after running the RCS.InitializeTouchMenu(const char* team_key) command.

Parameters

None.

Returns

This function returns the course number you are running on (1 for regions A-D, 2 for regions E-H).

Examples

#include <FEHRCS.h>
#include <FEHUtility.h>
#include <FEHLCD.h>

int main(void)
{
    //initialize the RCS
    RCS.InitializeTouchMenu("C3a0rn8vn");

    //Get the X coordinate of the robot every 1/2 second
    while(true)
    {
        // get the current course number and display it to the screen
        LCD.WriteLine( RCS.CurrentCourse() );
        Sleep( 0.5 );
    }    
}