How to add a new Mesa card to pncconf?

More
7 years 1 month ago #143850 by cmorley

shasse wrote: rodw-

Very interesting and useful example, thanks! I'll have to wrap my head around pncconf a bit more before I understand the feasibility of the change you propose (and of course defer to cmorely), but it certainly makes sense.

Scott


Pncconf uses the axes as the basis of almost everything, so making it be based on joints would be a _huge_ change.
Anyways I must say I don't see a big advantage. In general the axes should be known when you build a machine.
further more, while the signal names use the axis names it also uses a 2 for the second joint so x and x2.
So it's pretty easy to follow them in the code and rename them with an editor.
My assumption would be that if you drastically change the machine, you would rerun pncconf and go from there.
Personally I would really dislike using joint names for everything. When I look at the HAL code I want to first know what axis I am looking at then which motor (x or x2) on that axis.

But if someone wanted to code a more joint-centric pncconf I would consider their proposal.

Chris

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

More
7 years 1 month ago #143851 by cmorley

phillc54 wrote: No, I won't, I am not thinking straight...


Lol it happens. I certainly wasn't trying to force you code more - I would even remove it if it caused real problems.
I'm afraid everyone will use it just cause they can...

Chris M

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

More
7 years 1 month ago #143854 by phillc54
A while back I had problems with a config from Johns 7i96 config tool.

It loaded the driver like:
Code:
loadrt [HOSTMOT2](DRIVER) board_ip=[HOSTMOT2](IPADDRESS) config="num_encoders=[HOSTMOT2](ENCODERS)num_stepgens=[HOSTMOT2](STEPGENS)"sserial_port_0=[HOSTMOT2]
TWOPASS didn't like it so the PlasmaC Configurator changes it to:
Code:
loadrt hm2_eth board_ip="192.168.1.121" config="num_encoders=1 num_stepgens=4 sserial_port_0=1"
I was thinking that I may have to do the same...

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

More
7 years 1 month ago #143855 by cmorley
naw that's pretty carazy to try to read.

pncconf would looks like this
Code:
loadrt hostmot2 loadrt hm2_eth board_ip="192.168.1.121" config=" num_encoders=8 num_pwmgens=8 num_stepgens=4" setp [HMOT]CARD0.pwmgen.pwm_frequency 20000 setp [HMOT]CARD0.pwmgen.pdm_frequency 6000000 setp [HMOT]CARD0.watchdog.timeout_ns 5000000

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

More
7 years 1 month ago #143856 by phillc54
Cool, no work for me. :)

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

More
7 years 1 month ago #143857 by rodw

cmorley wrote: Personally I would really dislike using joint names for everything. When I look at the HAL code I want to first know what axis I am looking at then which motor (x or x2) on that axis.

But if someone wanted to code a more joint-centric pncconf I would consider their proposal.

Chris


But with V 2.8/9 you will know what joint is attached for each axis as you have to allocate them.

I've got no history before V 2.8 so I've seen it with new eyes. But I've never used pncconf other than for that one test for you. I hand coded everything becasue the 7i76e was not well supported and back then I would have needed to create a XYZA and and edit.
It was frustrating back then becasue the support for everything I needed to do was still unfolding. Now it would be a piece of cake by comparison...

Oops and Chris sorry for calling you Cam, I knew a Cam Morley once....

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

Moderators: cmorley
Time to create page: 0.075 seconds
Powered by Kunena Forum