novski Posted July 22, 2012 Report 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
TK. Posted July 22, 2012 Report 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.
novski Posted July 23, 2012 Author Report 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); }
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now