Problems with gearchange component

More
07 Sep 2012 13:39 #24020 by andypugh
hardware_crash wrote:

I tried this git.linuxcnc.org/gitweb?p=linuxcnc.git;a...fs/heads/v2.5_branch
But i canĀ“t find the "fault.ko" module in the module directory or in any other place on the system


fault.ko is just a sample kernel module guaranteed to provoke a fault.
You would subsitute that in the instructions for your gearchange.ko

However, if you are installing with comp I am not sure that the -g flag gets included.

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

More
07 Sep 2012 16:25 - 07 Sep 2012 16:25 #24029 by hardware_crash
I made a few tests with rtapi_print_msg
The programm runns exactly till the red part of the text , then comes the RTAPI Error :Task 1[f4c7f800]: Fault with vec=14, signo=11 ip=f97501b1

static char GearSwitchSetBackGear(int gear, char setup) {

switch (gear) {

case 1: if ((gearBitINBackGearLeft) == TRUE) { // no matter wether it is setup or not

gearBitOUTBackGear = FALSE; // switch off motor
return TRUE;
}
if (setup) {
gearBitOUTReverse = FALSE; // Richtung des Motor
gearBitOUTBackGear = TRUE; // Motor einschalten
}

return FALSE; // Warten auf den Enschalter bis er TRUE wird


I dont know what to do anymore :unsure:
Last edit: 07 Sep 2012 16:25 by hardware_crash.

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

More
07 Sep 2012 16:32 #24031 by andypugh
Have you tried changing the name of the variable called "setup" ?

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

More
07 Sep 2012 19:56 - 07 Sep 2012 20:15 #24045 by hardware_crash
yes I tried it ... but it changed nothing...:(
Last edit: 07 Sep 2012 20:15 by hardware_crash.

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

Time to create page: 0.083 seconds
Powered by Kunena Forum