Problems with gearchange component
07 Sep 2012 13:39 #24020
by andypugh
Replied by andypugh on topic Re:Problems with gearchange component
hardware_crash wrote:
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.
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.
- hardware_crash
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 80
- Thank you received: 1
07 Sep 2012 16:25 - 07 Sep 2012 16:25 #24029
by hardware_crash
Replied by hardware_crash on topic Re:Problems with gearchange component
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
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
Last edit: 07 Sep 2012 16:25 by hardware_crash.
Please Log in or Create an account to join the conversation.
07 Sep 2012 16:32 #24031
by andypugh
Replied by andypugh on topic Re:Problems with gearchange component
Have you tried changing the name of the variable called "setup" ?
Please Log in or Create an account to join the conversation.
- hardware_crash
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 80
- Thank you received: 1
07 Sep 2012 19:56 - 07 Sep 2012 20:15 #24045
by hardware_crash
Replied by hardware_crash on topic Re:Problems with gearchange component
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