
typedef enum {
  READ_PREAMBLE,
  READ_HEAD,
  READ_DATA
} rstate_t;

typedef union {
  unsigned char bytes[4];
  float f;
} angle_t;

typedef union {
  unsigned char bytes[2];
  unsigned short int i;
} sequence_t;

