On 1 December 2010 06:26, Jon Elson <el...@pico-systems.com> wrote:

> The problem with anding home and index is then the home
> signal becomes a VERY narrow pulse,

I think the trick here would be to set the "index-enable" pin high at
some point in the homing sequence, then home on it going low.
The bldc driver works this way to find the encoder index in a
servo-thread component. The tricky part is that the index-enable has
to be "disconnected" to allow it to be driven low by the encoder
(whether HAL or hardware-based), ie you need a component which will
drive a pin high, then ignore it.
I have had a quick look at "edge" and "oneshot" and neither of those
will do, as they continually drive the output high. The ideal function
would be something like edge.comp but with the middle clause of the
if/else removed, so you get an eternally resettable pulse, but with a
timeout.

There might be an existing function with the required properties, my
hal-component knowledge is incomplete.

-- 
atp
"Torque wrenches are for the obedience of fools and the guidance of wise men"

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to