Mesa sanity check - new user

More
16 Feb 2021 01:48 #199010 by rodw
Replied by rodw on topic Mesa sanity check - new user

Too late!

Boards in hand, new computer loaded w/LCNC and I'm already bugging everyone here with "How do I...?" questions.

-R


The first wire is always the scariest!

Please Log in or Create an account to join the conversation.

More
16 Feb 2021 03:35 #199020 by spumco
Replied by spumco on topic Mesa sanity check - new user
Wires I can handle. Its the HAL gibberish that's got me worried.

And thanks for the timely video, Rod. Mucho helpful.
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
16 Feb 2021 04:17 - 16 Feb 2021 04:18 #199022 by rodw
Replied by rodw on topic Mesa sanity check - new user
Well HAL is just like wiring too but some people complicate it with shortcuts to put more than one action on a line.
Hal is simple.
1. It has Components, think a computer chip. They have input and output pins on them
2. It has a signal, this is the same as a wire or trace connected to the pin on that computer chip.
3. It has the individual pins on the component.
4. You cannot connect multiple signals to a pin
5. But you can connect a signal to multiple pins
6. loadrt loads a component (places it on the board)
7. addf hooks the component to a thread (usually the servo thread) that looks after it. Maybe thats the power rail on a board with multiple voltages.
8. net creates signals and connects them to pins.

So you hook an output pin to a wire (signal)
net mysig <= my-output-pin

and you connect that wire (signal) to an input pin
net mysig => your-input-pin
and maybe to another pin
net mysig => your-input-pin-2

but you cannot do
net mysig2 <= my-output-pin
as my-output-pin is already connected.
You can change where the wire is connected to though using unlinkp
unlinkp  my-output-pin
net mysig2 <= my-output-pin
net mysig2 => your-input-pin-3

This is handy if you want to modify or extend an existing config and still make the code a close to possible as it was in the beginning.
Last edit: 16 Feb 2021 04:18 by rodw.
The following user(s) said Thank You: robertspark, spumco, dkraft

Please Log in or Create an account to join the conversation.

More
16 Feb 2021 07:50 #199027 by phillc54

Well HAL is just like wiring too but some people complicate it with shortcuts to put more than one action on a line.

It is much simpler on one line, then it is just like a wire, it goes from here to there to there...
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
16 Feb 2021 09:58 #199033 by rodw
Replied by rodw on topic Mesa sanity check - new user

Well HAL is just like wiring too but some people complicate it with shortcuts to put more than one action on a line.

It is much simpler on one line, then it is just like a wire, it goes from here to there to there...


Our brains must be "wired" differently. :)

Some of the complex hal stuff I did preplasmac if you wanted to change things around it was much easier if it was all seperated out. So its just my rule to myself. I see a few other experienced guys doing it the same way I do.

Please Log in or Create an account to join the conversation.

More
16 Feb 2021 10:04 #199034 by phillc54

Well HAL is just like wiring too but some people complicate it with shortcuts to put more than one action on a line.

It is much simpler on one line, then it is just like a wire, it goes from here to there to there...


Our brains must be "wired" differently. :)

Some of the complex hal stuff I did preplasmac if you wanted to change things around it was much easier if it was all seperated out. So its just my rule to myself. I see a few other experienced guys doing it the same way I do.


Each to their own then. I just fail to see having one "wire" can make it more complicated than multiple pieces of "wire" all over the place
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
16 Feb 2021 12:38 #199059 by spumco
Replied by spumco on topic Mesa sanity check - new user
Thank you both for the primer on HAL.

This should be an educational journey.

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.083 seconds
Powered by Kunena Forum