/** THIS IS AN AUTOMATICALLY GENERATED FILE.  DO NOT MODIFY
 * BY HAND!!
 *
 * Generated by LCM
 **/

#include <stdint.h>
#include <stdlib.h>
#include <lcm/lcm_coretypes.h>
#include <lcm/lcm.h>

#ifndef _senlcm_os_compass_t_h
#define _senlcm_os_compass_t_h

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _senlcm_os_compass_t senlcm_os_compass_t;
struct _senlcm_os_compass_t
{
    int64_t    utime;
    double     rph[3];
    double     T;
    double     depth;
    double     p_volts;
    double     p_meas;
    double     p_gage;
    double     p_o;
    double     Mxyz[3];
    double     Gxyz[3];
};
 
senlcm_os_compass_t   *senlcm_os_compass_t_copy(const senlcm_os_compass_t *p);
void senlcm_os_compass_t_destroy(senlcm_os_compass_t *p);

typedef struct _senlcm_os_compass_t_subscription_t senlcm_os_compass_t_subscription_t;
typedef void (*senlcm_os_compass_t_handler_t)(const lcm_recv_buf_t *rbuf, 
             const char *channel, const senlcm_os_compass_t *msg, void *user);

int senlcm_os_compass_t_publish(lcm_t *lcm, const char *channel, const senlcm_os_compass_t *p);
senlcm_os_compass_t_subscription_t* senlcm_os_compass_t_subscribe (lcm_t *lcm, const char *channel, senlcm_os_compass_t_handler_t f, void *userdata);
int senlcm_os_compass_t_unsubscribe(lcm_t *lcm, senlcm_os_compass_t_subscription_t* hid);

int  senlcm_os_compass_t_encode(void *buf, int offset, int maxlen, const senlcm_os_compass_t *p);
int  senlcm_os_compass_t_decode(const void *buf, int offset, int maxlen, senlcm_os_compass_t *p);
int  senlcm_os_compass_t_decode_cleanup(senlcm_os_compass_t *p);
int  senlcm_os_compass_t_encoded_size(const senlcm_os_compass_t *p);

// LCM support functions. Users should not call these
int64_t __senlcm_os_compass_t_get_hash(void);
int64_t __senlcm_os_compass_t_hash_recursive(const __lcm_hash_ptr *p);
int     __senlcm_os_compass_t_encode_array(void *buf, int offset, int maxlen, const senlcm_os_compass_t *p, int elements);
int     __senlcm_os_compass_t_decode_array(const void *buf, int offset, int maxlen, senlcm_os_compass_t *p, int elements);
int     __senlcm_os_compass_t_decode_array_cleanup(senlcm_os_compass_t *p, int elements);
int     __senlcm_os_compass_t_encoded_array_size(const senlcm_os_compass_t *p, int elements);
int     __senlcm_os_compass_t_clone_array(const senlcm_os_compass_t *p, senlcm_os_compass_t *q, int elements);

#ifdef __cplusplus
}
#endif

#endif
