updated: the val_x in start_sample_and_hold_pulse_task() uses the raw value from the internal ADC

This commit is contained in:
Roy_01
2024-12-12 14:32:12 +08:00
parent ab5eb93a29
commit 7e3df873fa
+12 -12
View File
@@ -292,8 +292,8 @@ pel_output_t pel_smaple_and_convt_all(uint32_t measure_out, uint32_t load_mask)
#define VERSION_DATE_YEAR 24
#define VERSION_DATE_MONTH 12
#define VERSION_DATE_DAY 12
#define VERSION_DATE_HOUR 10
#define VERSION_DATE_MINUTE 57
#define VERSION_DATE_HOUR 14
#define VERSION_DATE_MINUTE 32
static void cis_version(uint8_t *ins, uint16_t size)
{
NRF_LOG_INFO("%s", __FUNCTION__);
@@ -909,11 +909,11 @@ static void send_resis_and_sample_and_hold_data(void *p_arg)
packet_buf.val_3 = pel_hw.adc.results[2];
packet_buf.val_4 = pel_hw.adc.results[3];
packet_buf.val_5 = pel_hw.adc.results[4];
packet_buf.val_6_f = 1.0;
packet_buf.val_7_f = 2.0;
packet_buf.val_8_f = 3.0;
packet_buf.val_9_f = 4.0;
packet_buf.val_10_f = 5.0;
packet_buf.val_6_f = 0;
packet_buf.val_7_f = 0;
packet_buf.val_8_f = 0;
packet_buf.val_9_f = 0;
packet_buf.val_10_f = 0;
packet_buf.pattern_id = global_resis.pattern_id;
packet_buf.pattern = global_resis.pattern;
first_data = false;
@@ -928,11 +928,11 @@ static void send_resis_and_sample_and_hold_data(void *p_arg)
packet_buf.val_3 = pel_hw.adc.results[2];
packet_buf.val_4 = pel_hw.adc.results[3];
packet_buf.val_5 = pel_hw.adc.results[4];
packet_buf.val_6_f += 0.01;
packet_buf.val_7_f += 0.01;
packet_buf.val_8_f += 0.01;
packet_buf.val_9_f += 0.01;
packet_buf.val_10_f += 0.01;
packet_buf.val_6_f = 0;
packet_buf.val_7_f = 0;
packet_buf.val_8_f = 0;
packet_buf.val_9_f = 0;
packet_buf.val_10_f = 0;
packet_buf.pattern_id = global_resis.pattern_id;
packet_buf.pattern = global_resis.pattern;
}