esp加入
This commit is contained in:
@@ -25,10 +25,18 @@
|
||||
#define POWER_OUT_VOT_ADC_K {{0.0015, -0.0437}, {0.0015, -0.045}, {0.0015, -0.0451}, {0.0015, -0.0451}, {0.0049, 0.0297}, {0.0049, -0.0292}, {0.0049, -0.0179}, {0.0049, 0.0397}}
|
||||
#define POWER_OUT_AMP_ADC_K {{0.0029, -0.1382}, {0.002868, -0.1325}, {0.0029, -0.1335}, {0.0029, -0.1294}, {0.0029, -0.1083}, {0.0029, -0.1174}, {0.0028, -0.0563}, {0.002831, -0.0786}}
|
||||
|
||||
#define VOT_PWM_FREQUENCY_HZ 100000
|
||||
#define VOT_PWM_FREQUENCY_HZ 50000
|
||||
|
||||
#define VOT_PROTECT_K {0.9,1.1} // <20><>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5>
|
||||
#define AMP_PROTECT_K 1.1 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5>
|
||||
#define VOT_ADJUST_MAX 20.0f
|
||||
#define VOT_ADJUST_MIN 3.0f
|
||||
#define AMP_ADJUST_MAX 15.0f
|
||||
|
||||
#define VOT_ADJUST_DEF 5.0f
|
||||
#define AMP_ADJUST_DEF 1.0f
|
||||
#define POW_ADJUST_DEF 300.0f
|
||||
|
||||
#define VOT_PROTECT_K {0.9f,1.1f} // <20><>ѹ<EFBFBD><D1B9><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5>
|
||||
#define AMP_PROTECT_K 1.1f // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵ<EFBFBD><CFB5>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -49,6 +57,8 @@ typedef struct
|
||||
float ampK[2]; // <20><><EFBFBD><EFBFBD>Уϵ<D7BC><CFB5>
|
||||
low_pass_filter_t vot_filter;
|
||||
low_pass_filter_t amp_filter;
|
||||
low_pass_filter_t vot_adc_filter;
|
||||
float v_adc;
|
||||
int16 enable_pin;
|
||||
uint8 can_adjust; // <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
int16 vot_pwm_channel;
|
||||
@@ -66,6 +76,7 @@ typedef struct
|
||||
|
||||
extern Power_Out_t power_outs[POWER_OUT_NUM];
|
||||
|
||||
|
||||
void Power_Out_Single_Init(Power_Out_t *power_out, int16 vot_channel, int16 amp_channel, float votK[2], float ampK[2], int16 enable_pin, uint8 can_adjust, int16 vot_pwm_channel);
|
||||
void Power_Out_Init(void);
|
||||
void Power_Out_Enable(Power_Out_t *power_out, uint8 enable);
|
||||
|
||||
Reference in New Issue
Block a user