dermen / sim_erice

0 stars 1 forks source link

Up/Down arrow click sticks #54

Open nksauter opened 1 year ago

nksauter commented 1 year ago

I've seen the Rot-z up arrow stick, and it just keeps generating new images while incrementing the rotation. There is no way to recover. @mewall speculates it is "just a Tk problem", but could this be fixed by more advanced function calls?

An analogy. In college electronics there is a problem with simple on/off switches. There is a zone right in the middle where the switch keeps bouncing between "on" and "off". The solution is to hook up an operational amplifier that debounces the circuit and allows smooth operation.

mewall commented 1 year ago

I don't know if this is equivalent to your op-amp solution, but perhaps if input for a control is disabled as the first step when an input is handled and re-enabled as the last step? Seems tedious but maybe this would clear whatever the bad tk state might be. I found this information about disabling

https://python-forum.io/thread-26729.html


From: nksauter @.***> Sent: Thursday, May 25, 2023 4:06:56 PM To: dermen/sim_erice Cc: Wall, Michael E; Mention Subject: [EXTERNAL] [dermen/sim_erice] Up/Down arrow click sticks (Issue #54)

I've seen the Rot-z up arrow stick, and it just keeps generating new images while incrementing the rotation. There is no way to recover. @mewallhttps://urldefense.com/v3/__https://github.com/mewall__;!!Bt8fGhp8LhKGRg!Erko9S551Bk_W_30VXQRHiLRk_x1q0ys_CbaLokkAafn9jTvcs7BB2PG65ZfSmereJi03sbrDo5cdeWGogFTjYk8$ speculates it is "just a Tk problem", but could this be fixed by more advanced function calls?

An analogy. In college electronics there is a problem with simple on/off switches. There is a zone right in the middle where the switch keeps bouncing between "on" and "off". The solution is to hook up an operational amplifier that debounces the circuit and allows smooth operation.

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/dermen/sim_erice/issues/54__;!!Bt8fGhp8LhKGRg!Erko9S551Bk_W_30VXQRHiLRk_x1q0ys_CbaLokkAafn9jTvcs7BB2PG65ZfSmereJi03sbrDo5cdeWGoka3zrxK$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AA67VENZWVOSGEYPX7RAIP3XH7JYBANCNFSM6AAAAAAYPNZ5JA__;!!Bt8fGhp8LhKGRg!Erko9S551Bk_W_30VXQRHiLRk_x1q0ys_CbaLokkAafn9jTvcs7BB2PG65ZfSmereJi03sbrDo5cdeWGolr1hdsR$. You are receiving this because you were mentioned.Message ID: @.***>