Don’t work EMS ch7 for Test Mode 4.
Is it this?
[UH4Arduino0043a/UH/examples/Serial_Unity_Quaternion/TestMode.ino]
—————————————-
[before]
} else if (EMSCh == 6) {
// EMSTimeCount =stimuTimeCount;
uh.currentEMSChannel = 6;
for(int i=0;i<20;i++){uh.keepVoltage(currentVol);}
Serial.print(“Vol:”); Serial.print(currentVol);
Serial.print(“, EMS num: “); Serial.println(uh.currentEMSChannel);
} else if (EMSCh == 7) {
// EMSTimeCount =stimuTimeCount;
uh.setStimulationChannel(6);
uh.setStimulationTime();
uh.setStimulationVoltage(currentVol);
for(int i=0;i<20;i++){uh.keepVoltage(currentVol);}
Serial.print(“Vol:”); Serial.print(currentVol);
Serial.print(“, EMS num: “); Serial.println(uh.currentEMSChannel);
}
—————————————-
[after?]
} else if (EMSCh == 6) {
// EMSTimeCount =stimuTimeCount;
uh.setStimulationChannel(6);
uh.setStimulationTime();
uh.setStimulationVoltage(currentVol);
for(int i=0;i<20;i++){uh.keepVoltage(currentVol);}
Serial.print(“Vol:”); Serial.print(currentVol);
Serial.print(“, EMS num: “); Serial.println(uh.currentEMSChannel);
} else if (EMSCh == 7) {
// EMSTimeCount =stimuTimeCount;
uh.setStimulationChannel(7);
uh.setStimulationTime();
uh.setStimulationVoltage(currentVol);
for(int i=0;i<20;i++){uh.keepVoltage(currentVol);}
Serial.print(“Vol:”); Serial.print(currentVol);
Serial.print(“, EMS num: “); Serial.println(uh.currentEMSChannel);
}
—————————————-
Thanks.