You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple myos has a little bug. I can not set the device with an attribute or message as in your help file example. Only the device list example works.
Fix:
It looks like the Myo frameworks function getName() returns a string that is 1 char to long (at least the Mac version). That’s why your string comparison never returns true.
I changed the function getName() in Myo.hpp to:
std::string getName()
{
long len = name.length();
return name.substr(1,len-1);
//return name;
}
And it works!
Best
Urban
The text was updated successfully, but these errors were encountered:
Hi Jules,
Multiple myos has a little bug. I can not set the device with an attribute or message as in your help file example. Only the device list example works.
Fix:
It looks like the Myo frameworks function getName() returns a string that is 1 char to long (at least the Mac version). That’s why your string comparison never returns true.
I changed the function getName() in Myo.hpp to:
std::string getName()
{
long len = name.length();
return name.substr(1,len-1);
//return name;
}
And it works!
Best
Urban
The text was updated successfully, but these errors were encountered: