//*** tcm2.h contains function prototypes for tcm2 compass module
//  CF2 Spray2008 controller version
//************************************************************************

short    tcm2_on        ( void );    // turn on tcm2
short    tcm2_off       ( void );    // turn off tcm2
short    get_tcm2       ( short on_off);
short    send_tcm2      ( TUPort *tup, char c[], char s[] );
void     get_compass    ( void );
float    avg_tcm2       ( short n, short type);


void     config_tcm2    ( void );
void     lastcal_tcm2   ( void );
short    calibrate_tcm2 ( void ); 
void     tcm2_user_cal  ( void ); 

short    read_hcal      ( void );
short    rd_hcal        ( FILE *fp );
void     display_hcal   ( void );

void     test_compass   ( void );    // test above functions
