Is there any way to "call" user alarm using Karel?
In the standard TPE line there's a command eg. UALM[1].
How to do it using Karel?
Is there any way to "call" user alarm using Karel?
In the standard TPE line there's a command eg. UALM[1].
How to do it using Karel?
It seems like there would be a command to call a UALM, but I guess theres not.
What about using POST_ERR command and sending the UALM code INTP-213?
The facility code for INTP is 12. So it would be something like:
POST_ERR(12213,'cause_code', 0,1)
But I don't know exactly what you would use for the other parameters.
Call a TP program with an argument for the UALM number. The TP program would have 1 line of code.
:. UALM[AR[1]];
Call a TP program with an argument for the UALM number. The TP program would have 1 line of code.
:. UALM[AR[1]];
Generally it's easy, right, but not in this case.
What I want to do: I want to monitor a space (3D using Space fctn.), then when robot enters the space (in manual mode = TP ON) I want to run the karel prog (using other task, not interrupting the main TP program, which could be PAUSED), make some calculations, and then basing on the result post UALM or not.
That's why I wanted to call it from karel, not from standard TP program with AR.
It seems like there would be a command to call a UALM, but I guess theres not.
What about using POST_ERR command and sending the UALM code INTP-213?
The facility code for INTP is 12. So it would be something like:
POST_ERR(12213,'cause_code', 0,1)
But I don't know exactly what you would use for the other parameters.
Hmmm... nice idea, I'll try to do it , and we'll see
Hmmm... nice idea, I'll try to do it , and we'll see
It seems like there would be a command to call a UALM, but I guess theres not.
What about using POST_ERR command and sending the UALM code INTP-213?
The facility code for INTP is 12. So it would be something like:
POST_ERR(12213,'cause_code', 0,1)
But I don't know exactly what you would use for the other parameters.
I tried this in the past, and while it would post a user alarm, the contents of the alarm would be the parameters you seen when an alarm is called without parameters &s, etc. If you get it to work with a message I would be interested to know how you did it.
I think Hawkme's solution might be the best if you can't get past the messaging issue. Just make the TP program not lock a motion group.