novski Posted July 22, 2012 Report Share Posted July 22, 2012 (edited) HI I have a problem with al encoders witch are over number 8. It seams that the speed_devider doesn't take affect. I have 40 assigned Encoders on SR 5-14. For a testing purpose i made 2 encoders send the same over the same routine. ENC_VPOT_SPEED_MODE 2 ENC_VPOT_SPEED_DIVIDER 2 Increasing one detent on #4 sends this: [288601.981] [iN1 ] Chn 1 CC# 64 V: 65 [288602.030] [iN1 ] Chn 1 CC# 64 V: 67 Increasing one detent on #9 sends this: [288543.475] [iN1 ] Chn 1 CC# 64 V: 65 [288543.518] [iN1 ] Chn 1 CC# 64 V: 65 does anybody have an idea what i'm doing wrong? Edited July 22, 2012 by novski Quote Link to comment Share on other sites More sharing options...
TK. Posted July 22, 2012 Report Share Posted July 22, 2012 Does this posting belong to your MM firmware modifications? If yes, it would really make sense if you would add your questions to a single thread, instead of starting new threads on each new question, because for somebody who doesn't follow your history, it's difficult to determine how to help you. Not to forget how somebody should understand your question when he reads this posting in 2..3 years (it will be almost impossible to find the other postings) So, if you mean the MM firmware modification: the ENC_*_SPEED_* definitions are used in mm_vpot.c, search for MM_VPOT_Init(), this function has to be extended. Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
novski Posted July 23, 2012 Author Report Share Posted July 23, 2012 True. Im sorry for that. It works now. Thanks Thorsten. Midibox MotorMix v2, Core8 void MM_VPOT_Init(void) { unsigned char i; // request update of all LEDring patterns display_type = 0x00; ledring_update_req = 0xff; for(i=0; i<41; ++i) MIOS_ENC_SpeedSet(i, ENC_VPOT_SPEED_MODE, ENC_VPOT_SPEED_DIVIDER); MIOS_ENC_SpeedSet(41, ENC_JOGWHEEL_SPEED_MODE, ENC_JOGWHEEL_SPEED_DIVIDER); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.