UM7 USMA

Committer:
agentarod23
Date:
Thu Dec 12 23:39:19 2019 +0000
Revision:
0:ffd5142597fe
Can successfully read, next step is parse it to usable form.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
agentarod23 0:ffd5142597fe 1
agentarod23 0:ffd5142597fe 2 #include "mbed.h"
agentarod23 0:ffd5142597fe 3
agentarod23 0:ffd5142597fe 4 #define UM7_EULER_PHI_THETA 0x70
agentarod23 0:ffd5142597fe 5 #define UM7_EULER_PSI 0x71
agentarod23 0:ffd5142597fe 6 #define UM7_EULER_PHI_THETA_DOT 0x72
agentarod23 0:ffd5142597fe 7 #define UM7_EULER_PSI_DOT 0x73
agentarod23 0:ffd5142597fe 8 #define UM7_EULER_TIME 0x74
agentarod23 0:ffd5142597fe 9
agentarod23 0:ffd5142597fe 10
agentarod23 0:ffd5142597fe 11 typedef struct UM7_packet_struct{
agentarod23 0:ffd5142597fe 12 uint8_t Address;
agentarod23 0:ffd5142597fe 13 uint8_t PT;
agentarod23 0:ffd5142597fe 14 uint16_t Checksum;
agentarod23 0:ffd5142597fe 15 uint8_t data_length;
agentarod23 0:ffd5142597fe 16 uint8_t data[30];
agentarod23 0:ffd5142597fe 17 }UM7_packet;
agentarod23 0:ffd5142597fe 18
agentarod23 0:ffd5142597fe 19 uint8_t parse_serial_data( uint8_t* rx_data, uint8_t rx_length, UM7_packet* packet);
agentarod23 0:ffd5142597fe 20