Jump to content

Recommended Posts

Posted (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 by novski
Posted

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.

Posted

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


}

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...