PDR/1.Software/Simualator/Src/AHRS.h

31 lines
1.1 KiB
C
Raw Normal View History

2023-12-02 22:46:06 +08:00
#ifndef _PDR_AHRS_H_
#define _PDR_AHRS_H_
#include "PDRBase.h"
#define AHRS_SAMPLE_FREQ 100 // ARHS<48><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƶ<EFBFBD><C6B5>
#define AHRS_KP 0.500
/**----------------------------------------------------------------------
* Function : AHRS_Init
* Description : AHRS<EFBFBD><EFBFBD>ʼ<EFBFBD><EFBFBD>
* Date : 2022/09/21 logzhan
*---------------------------------------------------------------------**/
void AHRS_Init();
/**----------------------------------------------------------------------
* Function : MahonyUpdateAHRS
* Description : Mahony<EFBFBD><EFBFBD>̬<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* Date : 2022/09/21 logzhan
*---------------------------------------------------------------------**/
void MahonyUpdateAHRS(float gx, float gy, float gz, float ax, float ay, float az,
float mx, float my, float mz);
/**----------------------------------------------------------------------
* Function : UpdateAHRS
* Description : AHRS<EFBFBD>ںϽ<EFBFBD><EFBFBD><EFBFBD>
* Date : 2022/09/23 logzhan
*---------------------------------------------------------------------**/
int UpdateAHRS(IMU_t* IMU);
#endif