Kinematics... again:/

More
9 years 5 months ago #93590 by rodw
Replied by rodw on topic Kinematics... again:/
In C, a data structure ( that contains a group of variables) means you have to refer to a variable like
mystruct.a and mystruct.b to get to the sub variables

But the real power in C is using pointers . This means that instead of using the actual variable you pass the address of the variable. When this is done, the syntax becomes mystruct->a

A much simpler illustration of pointer on a standard data type (no struct) is something like:
char ch='c';
char *p; // pointer to a character
p = &c; // p now points to the address of c
char z = *p;

to help decipher this code think like this
* = starred
Starred = stored
So z now holds what is stored at address &p
( the most useful concept I've ever encountered in C programming.)

So in effect z=c

If you can get your head around pointers in C the world is your oyster. Its so important.

So between now and then, just accept it as Andy has said.
The following user(s) said Thank You: Boogie

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

More
9 years 5 months ago #93742 by Boogie
Replied by Boogie on topic Kinematics... again:/
Thank you for clarify things. I remember pointers and indirect addressing in assembler language i played with a bit back in 90's.

Guys: how to copy LinuxCNC Errors raport that pop out when linuxcnc crashes? I can highlight all the information but i'm not able to copy&paste it.

The error i got is:
"Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_hal.ko: File exists"

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

More
9 years 5 months ago #93743 by andypugh
Replied by andypugh on topic Kinematics... again:/

Boogie wrote: Guys: how to copy LinuxCNC Errors raport that pop out when linuxcnc crashes? I can highlight all the information but i'm not able to copy&paste it.


The button should select-all, and then you can use Ctrl-C to copy the text.
I have a feeling that you need to paste it before closing the dialog.
The following user(s) said Thank You: Boogie

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

More
9 years 5 months ago #93768 by Boogie
Replied by Boogie on topic Kinematics... again:/
There is "select all" button indeed. i used it but Ctrl+C doesn't work. No text is pasted in gedit:/ Wierd.

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

More
9 years 5 months ago #93776 by andypugh
Replied by andypugh on topic Kinematics... again:/
I tested it before posting.

Having tested again, it appears that you do need to paste it before closing the error dialog.
The following user(s) said Thank You: Boogie

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

More
9 years 5 months ago #93777 by rodw
Replied by rodw on topic Kinematics... again:/
The best way is to run linuxcnc from the command line as then all error messages and warnings are printed in the console window so you can see what is going on and you can copy to the clip board from there
The following user(s) said Thank You: Boogie

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

Time to create page: 0.801 seconds
Powered by Kunena Forum