alf45tar / PedalinoMini

Wireless and Bluetooth MIDI Foot Controller
GNU General Public License v3.0
484 stars 84 forks source link

Resistance Ladder Calibration Problems #326

Closed bobvc133 closed 2 years ago

bobvc133 commented 2 years ago

I found that the resistance ladder calibration can only use the first group of interfaces, and the remaining five groups of interfaces cannot calibrate the resistance ladder. If the first group of buttons is less than 6, then the resistance ladder cannot be fully calibrated

alf45tar commented 2 years ago

You cannot use 2 different ladder networks. All the ladder network must use the same resistors and they share the same calibration. Ladder network works with less than 6 resistors too. Set to 1023 the empty levels under Options.

bobvc133 commented 2 years ago

I used 3 sets of resistance ladders, a total of 18 buttons, all of which are the same ladder network, but I found that only the first set of buttons can operate the calibration, and the second set of the third set does not respond when operating the calibration

alf45tar commented 2 years ago

It is by design. Only the first one is used for calibration. https://github.com/alf45tar/PedalinoMini/blob/b4ec16f77268ff03b3feb71263d918024f5028a3/src/Controller.h#L440

bobvc133 commented 2 years ago

Can this be modified? I designed another pedal, the first group of buttons only has five, the current method is to connect the second group of buttons to the A1D1 interface for calibration, and the first group to connect to other interfaces

QQ截图20220411211739

alf45tar commented 2 years ago

Yes, it can be modified changing the source code. In my previous reply I indicated the line of code.

bobvc133 commented 2 years ago

Yes, it can be modified changing the source code. In my previous reply I indicated the line of code.

alright, thank you very much!

alf45tar commented 2 years ago

Please share your build when finished.