slave_shoes.c 384 B

12345678910111213
  1. #include "slave_shoes.h"
  2. void slave_shoes(int time_stamp, float gyr[3], float acc[3], float mag[3], uint16_t s_press,
  3. int32_t s_pos[3], int16_t s_att[3], int16_t s_zupt)
  4. {
  5. int32_t press = (((int32_t)s_press & 0x0000ffff)<<8);
  6. unsigned char left_tag = footPDR(time_stamp, gyr, acc, mag, press, s_pos, s_att, &s_zupt);
  7. send_data_to_host(s_press, s_pos, s_att , s_zupt);
  8. }