semin ahn / Mbed OS zeta_stm_kinetic

Dependencies:   BufferedSerial

Committer:
_seminahn
Date:
Tue Nov 30 08:13:05 2021 +0000
Revision:
3:a4677501ae87
Parent:
2:0de4854743f7
v1.2.5, change imu freq

Who changed what in which revision?

UserRevisionLine numberNew contents of line
_seminahn 0:4ff8aeb3e4d1 1 #ifndef ZETA_STM_KINETIC_GLOBALVARIABLE_H_
_seminahn 0:4ff8aeb3e4d1 2 #define ZETA_STM_KINETIC_GLOBALVARIABLE_H_
_seminahn 3:a4677501ae87 3 #include "configurations/robotConfig.h"
_seminahn 0:4ff8aeb3e4d1 4 /* global variables begin --------------------------------------------------- */
_seminahn 0:4ff8aeb3e4d1 5 // Sonar variables
_seminahn 3:a4677501ae87 6
_seminahn 0:4ff8aeb3e4d1 7 volatile float dist[NUM_SONAR] = {0.,};
_seminahn 0:4ff8aeb3e4d1 8 //volatile float dist_raw[NUM_SONAR] = {0.,};
_seminahn 0:4ff8aeb3e4d1 9
_seminahn 0:4ff8aeb3e4d1 10 // subscriber variables
_seminahn 0:4ff8aeb3e4d1 11 volatile bool isSubscribe = false;
_seminahn 0:4ff8aeb3e4d1 12
_seminahn 0:4ff8aeb3e4d1 13 // bluetooth variables
_seminahn 0:4ff8aeb3e4d1 14 typedef struct bt_data_ {
_seminahn 0:4ff8aeb3e4d1 15 int rec;
_seminahn 0:4ff8aeb3e4d1 16 int sen;
_seminahn 0:4ff8aeb3e4d1 17 }bt_data_t;
_seminahn 0:4ff8aeb3e4d1 18 volatile bt_data_t bt_data;
_seminahn 0:4ff8aeb3e4d1 19 volatile uint8_t NUC_sub_state = '\0';
_seminahn 0:4ff8aeb3e4d1 20 volatile bool start_check = false;
_seminahn 0:4ff8aeb3e4d1 21
_seminahn 3:a4677501ae87 22
_seminahn 0:4ff8aeb3e4d1 23 // print variables
_seminahn 0:4ff8aeb3e4d1 24 Vect3 gAcc_raw, gGyro_raw, gMag_raw;
_seminahn 0:4ff8aeb3e4d1 25 float gQ[4],gTheta,gRoll,gPitch,gYaw;
_seminahn 3:a4677501ae87 26
_seminahn 3:a4677501ae87 27
_seminahn 0:4ff8aeb3e4d1 28 /* global variables end ----------------------------------------------------- */
_seminahn 2:0de4854743f7 29 #endif