2024-07-11 06:58:55 +00:00
|
|
|
|
/*
|
|
|
|
|
* mppt_control.h
|
|
|
|
|
*
|
|
|
|
|
* Created on: 2024<EFBFBD><EFBFBD>6<EFBFBD><EFBFBD>29<EFBFBD><EFBFBD>
|
|
|
|
|
* Author: psx
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef APP_INC_MPPT_CONTROL_H_
|
|
|
|
|
#define APP_INC_MPPT_CONTROL_H_
|
|
|
|
|
|
|
|
|
|
#include "debug.h"
|
|
|
|
|
|
|
|
|
|
#pragma pack(push,1)
|
|
|
|
|
typedef struct _SL_Mppt_para{
|
|
|
|
|
uint16_t Registration_Status; /* ע<><D7A2>״̬ */
|
|
|
|
|
uint8_t address[7]; /* <20><>ַ */
|
|
|
|
|
uint16_t Access_Node_Type; /* <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
uint16_t Communication_Methods; /* ͨ<>ŷ<EFBFBD>ʽ */
|
|
|
|
|
uint16_t Battery_Voltage; /* <20><><EFBFBD>ص<EFBFBD>ѹ */
|
|
|
|
|
uint16_t Battery_temperature; /* <20><><EFBFBD><EFBFBD><EFBFBD>¶<EFBFBD> */
|
|
|
|
|
uint16_t Remaining_Battery_Bower; /* <20><><EFBFBD><EFBFBD>ʣ<EFBFBD><CAA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
uint16_t Solar_Open_Circuit_Voltage1; /* ̫<><CCAB><EFBFBD>ܿ<EFBFBD>·<EFBFBD><C2B7>ѹ1 */
|
|
|
|
|
uint16_t Solar_Open_Circuit_Voltage2; /* ̫<><CCAB><EFBFBD>ܿ<EFBFBD>·<EFBFBD><C2B7>ѹ2 */
|
|
|
|
|
}SL_Mppt_para;
|
|
|
|
|
extern SL_Mppt_para g_Mppt_Para;
|
|
|
|
|
#pragma pack(pop)
|
|
|
|
|
|
2024-07-22 06:20:24 +00:00
|
|
|
|
|
2024-07-24 08:57:38 +00:00
|
|
|
|
/* mppt<70><74><EFBFBD><EFBFBD>ģʽ */
|
|
|
|
|
typedef enum
|
|
|
|
|
{
|
|
|
|
|
TRICKLE = 1, /* <20><><EFBFBD><EFBFBD>ģʽ */
|
|
|
|
|
CONSTANTCURRENT = 2, /* <20><><EFBFBD><EFBFBD>ģʽ */
|
|
|
|
|
CONSTANTVOLTAGE = 3, /* <20><>ѹģʽ */
|
|
|
|
|
FLOAT = 4, /* <20><><EFBFBD><EFBFBD>ģʽ */
|
|
|
|
|
}SL_MPPT_MODE;
|
|
|
|
|
|
2024-08-17 03:14:19 +00:00
|
|
|
|
///* <20>㶨<EFBFBD><E3B6A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ߵ<EFBFBD>ѹʱPI<50><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
|
|
|
|
|
//typedef struct PIconstV {
|
|
|
|
|
// float_t kp;
|
|
|
|
|
// float_t ki;
|
|
|
|
|
// float_t allError;
|
|
|
|
|
//};
|
|
|
|
|
|
2024-08-05 02:35:10 +00:00
|
|
|
|
extern float g_duty_ratio;
|
2024-07-22 06:20:24 +00:00
|
|
|
|
|
2024-07-11 06:58:55 +00:00
|
|
|
|
void mppt_readJust(void);
|
2024-07-24 08:57:38 +00:00
|
|
|
|
void MpptMode(void);
|
2024-07-12 09:34:47 +00:00
|
|
|
|
void mppt_constantVoltage(float InVoltage);
|
2024-07-11 06:58:55 +00:00
|
|
|
|
void test(void);
|
|
|
|
|
|
|
|
|
|
#endif /* APP_INC_MPPT_CONTROL_H_ */
|