Il giorno lun, 12/12/2011 alle 13.09 +0000, andy pugh ha scritto:
> On 12 December 2011 12:55, Spiderdab <[email protected]> wrote:
>
> > Yes i know this config, but i don't think it will work for me, since in
> > my config halui.jog-speed is linked to joystick-slider.
>
> Link the output of the joystick slider to the mux input. (rather than
> the constant "setp" lines).
> In your case you can use a mux2 rather than mux4 .
>
Yes, it should be nicer than my solution.
i did in this way, it's complicated, but it works. attach here just for
who's curious.
loadusr -W hidcomp -ini tetrapod.ini thrustmaster.hid
loadrt scale count=4
loadrt mult2 count=1
loadrt conv_bit_s32 count=1
loadrt conv_s32_float count=1
addf scale.0 servo-thread
addf scale.1 servo-thread
addf scale.2 servo-thread
addf scale.3 servo-thread
addf mult2.0 servo-thread
addf conv-bit-s32.0 servo-thread
addf conv-s32-float.0 servo-thread
setp scale.1.gain 1
setp scale.1.offset 0
setp scale.2.gain 1
setp scale.2.offset 0
setp scale.3.gain 1
setp scale.3.offset 0
net joy-scale-in scale.0.in <= hidcomp.0.Slider.fvalue
setp scale.0.gain 10000
setp scale.0.offset 10000
## prova patch mult2 con button1 tramite conversione in s32 e poi in float.
net convert-bit conv-bit-s32.0.in <= hidcomp.0.Button.1.in
net convert-float conv-bit-s32.0.out => conv-s32-float.0.in
net enable-button conv-s32-float.0.out => mult2.0.in0
net scaled-speed-slider mult2.0.in1 <= scale.0.out
net joy-speed halui.jog-speed <= mult2.0.out
setp halui.jog-deadband 0.002
## segue il patch degli assi
net joy-x-jog scale.1.in <= hidcomp.0.X.fvalue
net joy-y-jog scale.2.in <= hidcomp.0.Y.fvalue
net joy-z-jog scale.3.in <= hidcomp.0.Rz.fvalue
net joy-x-out-jog halui.jog.0.analog <= scale.1.out
net joy-y-out-jog halui.jog.1.analog <= scale.2.out
net joy-z-out-jog halui.jog.2.analog <= scale.3.out
net joy-machine-off halui.machine.off <= hidcomp.0.Button.2.in
net joy-teleop halui.mode.teleop <= hidcomp.0.Button.12.in
net joy-joint halui.mode.joint <= hidcomp.0.Button.11.in
net joy-home-all halui.home-all <= hidcomp.0.Button.4.in
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users