Is there a way to emulate a pressed enter key if the value of the z axis is smaller than for example -340? -340 is the min value the plunger can normaly reach. If I push the plunger in against the front spring I can reach a lower value. I tried the zblaunch feature, but this seems to need DOF.
zblaunch works in the configuration tool, when the plunger is pushed in, but no "enter" key is send to any Windows application.
plunger: {
source: "pico_adc", // source sensor type; usually inferred automatically from available sensors
autoZero: true, // enable auto-zeroing; only applies to quadrature sensors, ignored otherwise
autoZeroTime: 5000, // time in milliseconds for auto-zeroing; plunger must be stationary this long to auto-zero
powerLaw: 2, // power-law exponent in brightness-to-distance calculation, only for VCNL4010
zbLaunch: {
pushThreshold: -350,
pulseTime: 70,
action: {type:"key",key: "enter"},
},
},
pico_adc: {
gpio: 26,
},
Edited by zag, Today, 11:26 AM.



Top








are all trademarks of VPFORUMS.