On Sat, Sep 1, 2012, at 04:00 AM, Viesturs Lācis wrote:

(lots of snippage)

> Few more things in HAL are needed to link joint[8] to Z movements.
> There is sample_hold HAL component. I see that it has s_32 inputs and
> outputs, so You will need to change them to float - open the source
> file in /src/hal/components/, save with different name and change
> "s32" to "float", save again (I will use "sample_hold_float" as an
> example) and then build that component.

Actually you don't have to do this.  The "mux2" component handles
floats and can be used as a sample and hold.  Simply connect the
output to the in1 input.  When the select input is zero, the mux
takes its input from in0 (the sample input) and sends it to out.
When the select input is 1, it takes its input from in1, which
is the same as the output.  So it holds the current value.

-- 
  John Kasunich
  [email protected]


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to