semin ahn / Mbed OS zeta_stm_kinetic

Dependencies:   BufferedSerial

Committer:
_seminahn
Date:
Fri Apr 02 05:24:49 2021 +0000
Revision:
0:4ff8aeb3e4d1
Child:
2:0de4854743f7
top_module

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 0:4ff8aeb3e4d1 3 /* global variables begin --------------------------------------------------- */
_seminahn 0:4ff8aeb3e4d1 4 // Sonar variables
_seminahn 0:4ff8aeb3e4d1 5 volatile float dist[NUM_SONAR] = {0.,};
_seminahn 0:4ff8aeb3e4d1 6 //volatile float dist_raw[NUM_SONAR] = {0.,};
_seminahn 0:4ff8aeb3e4d1 7
_seminahn 0:4ff8aeb3e4d1 8 // subscriber variables
_seminahn 0:4ff8aeb3e4d1 9 volatile bool isSubscribe = false;
_seminahn 0:4ff8aeb3e4d1 10
_seminahn 0:4ff8aeb3e4d1 11 // bluetooth variables
_seminahn 0:4ff8aeb3e4d1 12 typedef struct bt_data_ {
_seminahn 0:4ff8aeb3e4d1 13 int rec;
_seminahn 0:4ff8aeb3e4d1 14 int sen;
_seminahn 0:4ff8aeb3e4d1 15 }bt_data_t;
_seminahn 0:4ff8aeb3e4d1 16 volatile bt_data_t bt_data;
_seminahn 0:4ff8aeb3e4d1 17 volatile uint8_t NUC_sub_state = '\0';
_seminahn 0:4ff8aeb3e4d1 18 volatile bool start_check = false;
_seminahn 0:4ff8aeb3e4d1 19
_seminahn 0:4ff8aeb3e4d1 20 // print variables
_seminahn 0:4ff8aeb3e4d1 21 Vect3 gAcc_raw, gGyro_raw, gMag_raw;
_seminahn 0:4ff8aeb3e4d1 22 float gQ[4],gTheta,gRoll,gPitch,gYaw;
_seminahn 0:4ff8aeb3e4d1 23 /* global variables end ----------------------------------------------------- */
_seminahn 0:4ff8aeb3e4d1 24 #endif