Sensor updates
This commit is contained in:
parent
f4e95668ce
commit
80c8ccd54b
8 changed files with 251 additions and 179 deletions
|
|
@ -3,10 +3,12 @@
|
|||
|
||||
void checkICM(state_t &state) {
|
||||
icm_result_t icmSignal = readICM();
|
||||
/*
|
||||
Serial.print(">roll: ");
|
||||
Serial.println(icmSignal.roll);
|
||||
Serial.print(">tilt: ");
|
||||
Serial.println(icmSignal.tilt);
|
||||
*/
|
||||
if (ExtraControl::CC == state.currentPreset->icmRollMode) {
|
||||
byte roll = mapConstrain(abs(icmSignal.roll), 0, 40, 127, 0);
|
||||
if (roll != state.instrument->rollCCVal) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue