111

Dependencies:   yezhong_main_controller_copy mbed1-dev

DATA_BOARD/data_board.h

Committer:
yezhong
Date:
2022-01-11
Revision:
6:902ba9999d6c
Parent:
5:2503c88a564f
Child:
7:d1b09098579b

File content as of revision 6:902ba9999d6c:

#ifndef _DATA_BOARD_H
#define _DATA_BOARD_H


#include "mbed.h"
#include "math_ops.h"


extern Serial      foot;


//extern unsigned int flag_485_A, flag_485_B;
//extern unsigned int S485num;
//extern uint16_t S485get[10];                                                    
extern uint16_t S485use[10];

////////////////////////////////////////////////////////////////////////////////

extern unsigned int Gait_num_valid, Gait_now, Gait_per_now, Gait_cycle_now;
extern float COP_Y, COP_X;
extern uint16_t Gait_per_now_int, COP_Y_int, COP_X_int, Gait_cycle_now_int;

extern unsigned int Gait_num_valid_0before, Gait_now_0before;
extern float Gait_per_now_0before, COP_Y_0before, COP_X_0before, Gait_cycle_now_0before;

extern unsigned int Gait_num_valid_real, Gait_now_real, Gait_per_now_real, Gait_cycle_now_real, time_portion_now_real;
extern float COP_Y_real, COP_X_real;


//void gait_decode();
//void gait_clear();

////////////////////////////////////////////////////////////////////////////////

void serial_board_isr();

////////////////////////////////////////////////////////////////////////////////



extern AnalogIn    LaLi_pf;
extern AnalogIn    LaLi_df;
extern AnalogIn    LaLi_df1;

extern float La_pf_real, La_df_real,La_df1_real;
extern float Ffilter_pf[10 + 2];
extern float pf_filter ;
extern float F_pf;

#endif