Fertirrega_v6 with EC compensated by Temperature
This commit is contained in:
@@ -164,8 +164,8 @@ extern "C" {
|
||||
/*****************************************************************************/
|
||||
/**************************** Filtering Defines *****************************/
|
||||
/*****************************************************************************/
|
||||
#define AD5934_TIME_PER_SWEEP 60 // 60 ms entre o início de cada sweep
|
||||
#define AD5934_TIME_MUX_SETTLING 10 // 10 ms de espera após trocar o MUX
|
||||
#define AD5934_TIME_PER_SWEEP 60 // 60 ms entre o início de cada sweep
|
||||
#define AD5934_TIME_MUX_SETTLING 10 // 10 ms de espera após trocar o MUX
|
||||
|
||||
#define AD5934_BURST_SIZE 5
|
||||
#define AD5934_TRIM_COUNT 1
|
||||
@@ -357,6 +357,7 @@ static const uint16_t AD5934_Scale_Out_Max[AD5934_CH_MAX] = {
|
||||
|
||||
extern I2C_HandleTypeDef hi2c2;
|
||||
|
||||
extern float reference_resistor, temperature_RTD, thermal_compensaded_EC;
|
||||
|
||||
extern volatile AD5934_State_t ad5934_state;
|
||||
extern volatile uint32_t g_ms_counter; // Increment each 1ms Timer
|
||||
@@ -364,6 +365,9 @@ extern volatile uint32_t g_ms_counter; // Increment each 1ms Timer
|
||||
extern uint8_t current_mux_channel;
|
||||
extern uint8_t sweep_count; // Count how many sweeps done at the same channel now (0 a 7)
|
||||
extern uint8_t is_new_channel;
|
||||
extern uint8_t current_ec_mux;
|
||||
extern uint8_t current_rtd_mux;
|
||||
extern uint8_t current_ref_mux;
|
||||
|
||||
extern AD5934_filter_t g_rtd_filter, g_ec_filter, g_ref_filter;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user