mpi_motionfusion.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /************************************************************************
  2. * Copyright (C) 2018, Hisilicon Tech. Co., Ltd.
  3. * ALL RIGHTS RESERVED
  4. * FileName: mpi_montionfusion.h
  5. * Description: init draft
  6. *
  7. *************************************************************************/
  8. #ifndef __MPI_MONTIONFUSION_H__
  9. #define __MPI_MONTIONFUSION_H__
  10. #include "hi_type.h"
  11. #include "hi_comm_motionfusion.h"
  12. #ifdef __cplusplus
  13. #if __cplusplus
  14. extern "C" {
  15. #endif
  16. #endif /* End of #ifdef __cplusplus */
  17. //-------------------------set fusion attr --------------------------------------------
  18. HI_S32 HI_MPI_MOTIONFUSION_SetAttr(const MFUSION_ATTR_S *pstMFusionAttr);
  19. HI_S32 HI_MPI_MOTIONFUSION_GetAttr(MFUSION_ATTR_S *pstMFusionAttr);
  20. //-------------------------set calibration param --------------------------------------------
  21. /* gyro drift cal */
  22. HI_S32 HI_MPI_MONTIONFUSION_SetGyroDrift(HI_BOOL bEnDrift, IMU_DRIFT aGyroDrift);
  23. HI_S32 HI_MPI_MONTIONFUSION_GetGyroDrift(HI_BOOL *pbEnDrift, IMU_DRIFT aGyroDrift);
  24. /* gyro six side cal */
  25. HI_S32 HI_MPI_MONTIONFUSION_SetGyroSixSideCal(HI_BOOL bEnSixSideCal, IMU_MATRIX aRotationMatrix);
  26. HI_S32 HI_MPI_MONTIONFUSION_GetGyroSixSideCal(HI_BOOL *pbEnSixSideCal, IMU_MATRIX aRotationMatrix);
  27. /* gyro temp cal */
  28. /* acc offset drift cal */
  29. HI_S32 HI_MPI_MONTIONFUSION_SetACCDrift(HI_BOOL bEnDrift, IMU_DRIFT aACCDrift);
  30. HI_S32 HI_MPI_MONTIONFUSION_GetACCDrift(HI_BOOL *pbEnDrift, IMU_DRIFT aACCDrift);
  31. /* acc six side cal */
  32. HI_S32 HI_MPI_MONTIONFUSION_SetACCSixSideCal(HI_BOOL bEnSixSideCal, IMU_MATRIX aRotationMatrix);
  33. HI_S32 HI_MPI_MONTIONFUSION_GetAccSixSideCal(HI_BOOL *pbEnSixSideCal, IMU_MATRIX aRotationMatrix);
  34. #ifdef __cplusplus
  35. #if __cplusplus
  36. }
  37. #endif
  38. #endif /* End of #ifdef __cplusplus */
  39. #endif/* End of #ifndef __MPI_MONTIONFUSION_H__*/