Jump to content

Encoder #9


novski
 Share

Recommended Posts

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 by novski
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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);


}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...