HMS Management
The header file for the Health Management System-related functions is uav_hms.h
. This document describes the key information and usage methods of the structures and function prototypes in the uav_hms.h
file.
Table of Contents
Macros, Enumerations, and Structures
T_UAVHmsInfo
T_UAVHmsInfoTable
UAVHmsInfoCallbackFunction Prototypes
UAV_HmsManager_Init
UAV_HmsManager_DeInit
UAV_HmsManager_RegHmsInfoCallback
Macros, Enumerations, and Structures
typedef struct T_UAVHmsInfo
typedef struct {
int errorCode;
int componentIndex;
int errorLevel;
} T_UAVHmsInfo;
typedef struct T_UAVHmsInfoTable
typedef struct {
T_UAVHmsInfo hmsInfo[16];
int hmsInfoNum;
} T_UAVHmsInfoTable;
typedef function UAVHmsInfoCallback
typedef void (*UAVHmsInfoCallback)(T_UAVHmsInfoTable hmsInfoTable);
Function Prototypes
function UAV_HmsManager_Init
- Function: Initialize HMS module
- product: all
The HMS module should be initialized by calling this function before using any HMS-related features.
T_UAVReturnCode UAV_HmsManager_Init(void);
- Parameternone:
- Return Value The return value corresponds to the execution status of the program. For details, please refer to: UAV Error Codes.
function UAV_HmsManager_DeInit
- Function: Deinitialize HMS module
- product: all
T_UAVReturnCode UAV_HmsManager_DeInit(void);
- Parameterargs:
- Return Value The return value corresponds to the execution status of the program. For details, please refer to: UAV Error Codes.
function UAV_HmsManager_RegHmsInfoCallback
- *Function:Register Callback to Receive HMS Information
- product: all
Note:
- Data is pushed at a frequency of 1Hz.
T_UAVReturnCode UAV_HmsManager_RegHmsInfoCallback(UAVHmsInfoCallback callback);
- Parametercallback:UAVHmsInfoCallback
- Return Value The return value corresponds to the execution status of the program. For details, please refer to: UAV Error Codes.