Page 1 of 1
COM Radio with Dual-Centric Encoders [SOLVED]
Posted: Fri Feb 24, 2017 1:51 pm
by AZWildk4t
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?
Re: COM Radio with Dual-Centric Encoders
Posted: Mon Feb 27, 2017 10:49 pm
by mvr1918
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
}
}
Re: COM Radio with Dual-Centric Encoders
Posted: Sat Apr 08, 2017 1:08 am
by AZWildk4t
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
}
}
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.
Re: COM Radio with Dual-Centric Encoders [SOLVED]
Posted: Tue Apr 18, 2017 6:06 pm
by mvr1918
SOLVED