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 "wideband_config.h"
struct AnalogChannelResult
{
float NernstVoltage;
float PumpCurrentVoltage;
/* for dual version - this is voltage on Heater-, switches between zero and Vbatt with heater PWM,
* used for both Vbatt measurement and Heater diagnostic */
float BatteryVoltage;
};
struct AnalogResult
{
struct {
float NernstVoltage;
float PumpCurrentVoltage;
/* for dual version - this is voltage on Heater-, switches between zero and Vbatt with heater PWM,
* used for both Vbatt measurement and Heater diagnostic */
float BatteryVoltage;
} ch[AFR_CHANNELS];
AnalogChannelResult ch[AFR_CHANNELS];
float VirtualGroundVoltageInt;
};