Adjuvo / SenseGlove-Unity

The latest stable Unity SDK for the SenseGlove.
MIT License
35 stars 10 forks source link

Firmware 3.0 Brake and Buzz Commands defaulting to 2 #6

Closed MaxLammers closed 6 years ago

MaxLammers commented 6 years ago

Because the V3.0 firmware cannot handle a (char)(0) operation, we had to increment every value by 1; operating in the [0..100] range for Teensy's, and in the [1...101] range for the custom PCB. The dll compesates for this though:

int magnitude = 100;
cmd += firmwareVersion >= 3 ? (int)(magnitude) +1 : (int)(magnitude); 

However, in some cases, the brake commands default to 2 instead of 1 for the firmware 3.0 tests. There is an error somewhere in the SenseGlove class, that needs to be fixed before release.