On 17/04/17 09:34, Alexander Rössler wrote:
Marius,

You can either use HAL signals with the nicer to read names or properly named variable names in a Python HAL file.

e.g.
furaday_di_0 = hal.Pin('bb_gpio.out-02.value')
furaday_di_0
.set(1)

The removal of aliases goes back almost 2 years
https://github.com/machinekit/machinekit/issues/610

Also note params have been deprecated, because they can be replaced by an I/O pin.

Neither aliases nor params feature in the multicore code and the code for looking up pins by name does not cater for an alias being used.

Nearly all components are now instantiated and can be named whatever is required (not the pru components however).

Alternately the methods Alex highlights work and the python renaming would probably be your best overall strategy, as you have complete freedom
in the naming and it can all be done in a discrete file that users don't need to bother their heads about.

regards

Am Sonntag, 16. April 2017 21:23:34 UTC+2 schrieb Marius Alksnys:
Hello all, and Happy Easter :)

I was happy using alias command to make Furaday cape for BeagleBone HAL
files much cleaner / easier to use, like this:
fur.di-0
fur.do-2
fur.ai-3
fur.ao-1
fur.ao-1.enable
fur.ao-1.scale
...

Until newer machinekit version came up, which surprisingly says: Unknown
command 'alias'.

Those aliased pin names correspond to on-board markings. This way
integrator can concentrate on wiring to the board and HAL files instead
of looking at numerous datasheets for BB pin numbers, etc.

You can take a look at provided Furaday cape config helper / template
files at the bottom of the product page:
http://www.robotise.lt/hardware-for-beaglebone/8-furaday-cape-1-2.html


What would you recommend to get back some happiness: to convince
machinekit community to get alias command back to life or to use some
other command or workaround?


--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to