AP_Compass: Replaced the public accessor variables by functions and modified the AHRS classes. Modified also the example.

Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>