void int_sumsig(void) {
if (PIN_READ_SUM)
start = micros(); // positive edge: start
else
pulseLength = micros() - start; // negative edge: calculate pulsewidth
if (pulseLength > 2500 || ch > 8)
ch = 0;
else
pulse[ch++] = pulseLength;
}
const int panRadar_en_ADDR = 930;
const int panRadar_x_ADDR = 932;
const int panRadar_y_ADDR = 934;
const int panVoltageOffset = 936;
const int panCurrOffset = 938;
const int panCurrOther = 940;
const int panPWMlow = 942;
const int panPWMhigh = 944;
const int panRollMiddle = 946;
const int panRollFactor = 948;
const int panPitchMiddle = 950;
const int panPitchFactor = 952;
const int panRadar_en_ADDR = 930;
const int panRadar_x_ADDR = 932;
const int panRadar_y_ADDR = 934;
// const int panVoltageOffset = 936;
// const int panCurrOffset = 938;
// const int panCurrOther = 940;
const int panVoltDivRatio = 936;
const int panCurrAmpPerVolt = 938;
const int panCurrAmpOffset = 940;
const int panPWMlow = 942;
const int panPWMhigh = 944;
const int panRollMiddle = 946;
const int panRollFactor = 948;
const int panPitchMiddle = 950;
const int panPitchFactor = 952;
const int panRadar_en_ADDR = 930;
const int panRadar_x_ADDR = 932;
const int panRadar_y_ADDR = 934;
const int panRadarScale_x_ADDR = 936;
const int panRadarScale_y_ADDR = 938;
const int panVoltDivRatio = 940;
const int panCurrAmpPerVolt = 942;
const int panCurrAmpOffset = 944;
const int panPWMlow = 946;
const int panPWMhigh = 948;
const int panRollMiddle = 950;
const int panRollFactor = 952;
const int panPitchMiddle = 954;
const int panPitchFactor = 956;
void int_sumsig(void) {
if (PIN_READ_SUM)
start = micros(); // positive edge: start
else
pulseLength = micros() - start; // negative edge: calculate pulsewidth
if (pulseLength > 2500 || ch > 8)
ch = 0;
else
pulse[ch++] = pulseLength;
}