I have assembled my COM1 panel using a dual-centric encoder (ELMA E37). Each rotation of the encoder increases or decreases the value by 3 instead of 1. The issue occurs for both WHOLE and DECIMAL numbers on the Standby Display. According to Leo Bodnar site, the encoder has 16 detents with 2 pulses per detent.
How can I adjust the script to increase/decrease the COM1 values by 1 instead of 3?
COM Radio with Dual-Centric Encoders [SOLVED]
COM Radio with Dual-Centric Encoders [SOLVED]
Last edited by AZWildk4t on Sat Apr 08, 2017 1:14 am, edited 1 time in total.
Re: COM Radio with Dual-Centric Encoders
Have you tried to play with the L0 ( adding -2 / +2)
Var 36 name ROT_COM1_SW Link IOCARD_ENCODER Device 8 Input 0 Aceleration 1 Type 2
{
IF &COM1_Power_ON > 0
{
&ROTACTC1_SW = 1
&ROTACTC1_SW = DELAY 0 500
L0 = &ROT_COM1_SW * -1
&ST_COM1High = ROTATE 18 36 L0
&tCOM1_1 = &ST_COM1High
}
}
Var 36 name ROT_COM1_SW Link IOCARD_ENCODER Device 8 Input 0 Aceleration 1 Type 2
{
IF &COM1_Power_ON > 0
{
&ROTACTC1_SW = 1
&ROTACTC1_SW = DELAY 0 500
L0 = &ROT_COM1_SW * -1
&ST_COM1High = ROTATE 18 36 L0
&tCOM1_1 = &ST_COM1High
}
}
Re: COM Radio with Dual-Centric Encoders
I finally got this working based on a post in another forum. The guy told me he was selling his Input-Encoder card and had the PIC setup to increase the digits by 1. Works great now.mvr1918 wrote:Have you tried to play with the L0 ( adding -2 / +2)
Var 36 name ROT_COM1_SW Link IOCARD_ENCODER Device 8 Input 0 Aceleration 1 Type 2
{
IF &COM1_Power_ON > 0
{
&ROTACTC1_SW = 1
&ROTACTC1_SW = DELAY 0 500
L0 = &ROT_COM1_SW * -1
&ST_COM1High = ROTATE 18 36 L0
&tCOM1_1 = &ST_COM1High
}
}