31 lines
1.1 KiB
C
31 lines
1.1 KiB
C
|
#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
|