Don't work EMS ch7 for Test Mode 4(TestMode.ino)

Recent Topics Forums Development Don't work EMS ch7 for Test Mode 4(TestMode.ino)

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #361
    mah
    Participant

      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.

      #362
      H2L
      Keymaster

        @mah

        Thank you for pointing out the mistake, we have updated the code accordingly.
        The latest version of the Arduino Library can be found here:
        http://dev.unlimitedhand.com/download.html

        much appreciated.

        #364
        mah
        Participant

          Hello,
          I confirmed that.

          Thanks.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • The topic ‘Don't work EMS ch7 for Test Mode 4(TestMode.ino)’ is closed to new replies.