Returns the compass roll, in degrees, at the time of the last read().
Where Compass is the name you have given to the device in Project Designer.
Assuming you have called the sensor 'myCompass' in Project Designer you can dump the value to the standard output device as follows:
COMPASS_TYPE val = myCompass.getRoll();
cout << "Roll=" << val;