On 12 November 2017 at 01:49, Gene Heskett <ghesk...@shentel.net> wrote:

> If I write a hal thing that changes the value pushed into the encoder's
> scale input, how much of a time lag might there be to make it effective?

The scaling does not happen in the Mesa layer, it happens in the HAL driver.

But, the encoder scale is a parameter, not a pin, so you can't change
it in HAL.

What I would do would be to pass the hm2_..._position and
hm2..._...velocity through a pair of "scale" HAL functions with the
scaling factor for both chosen by a "mux2" controlled by the gear
selection before connecting to the motion... pins.

You might be able to use the "gearchange" component for this (or,
specifically, two more instances of the component) as this is
basically what it does, ie switch between two scales.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1916

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to