split out AnalogChannelResult

This commit is contained in:
Matthew Kennedy 2023-06-20 16:58:47 -07:00
parent 0f8fe7aec5
commit e2791d8099
1 changed files with 10 additions and 7 deletions

View File

@ -4,15 +4,18 @@
#include "port_shared.h" #include "port_shared.h"
#include "wideband_config.h" #include "wideband_config.h"
struct AnalogResult struct AnalogChannelResult
{ {
struct {
float NernstVoltage; float NernstVoltage;
float PumpCurrentVoltage; float PumpCurrentVoltage;
/* for dual version - this is voltage on Heater-, switches between zero and Vbatt with heater PWM, /* for dual version - this is voltage on Heater-, switches between zero and Vbatt with heater PWM,
* used for both Vbatt measurement and Heater diagnostic */ * used for both Vbatt measurement and Heater diagnostic */
float BatteryVoltage; float BatteryVoltage;
} ch[AFR_CHANNELS]; };
struct AnalogResult
{
AnalogChannelResult ch[AFR_CHANNELS];
float VirtualGroundVoltageInt; float VirtualGroundVoltageInt;
}; };