update valtage and current get

This commit is contained in:
不吃油炸鸡
2025-09-14 18:47:02 +08:00
parent b7e746a7c2
commit a3b9fbbbe7
7 changed files with 122 additions and 29 deletions

View File

@@ -54,10 +54,8 @@ void HardwareInitTask(void *argument)
adc_packet.header[0] = 0x55;
adc_packet.header[1] = 0xAA;
adc_packet.header[2] = ADC_TIMES;
adc_packet.header[3] = ADC_CHANELS;
// 填充模式位
adc_packet.header[4] = 0x10;
adc_packet.header[2] = 0x03;
// gate, for current flow route selection, high current by default
Gate_Port_Init();