| | Re: video game type thing... Nick Howell
|
| | I worked on that. I'm having trouble with "execi()" and some stuff related to it. Here's the offending area, but not the entire program: int main(int argc, char **argv) { pid1=execi(&startup, 0, NULL, 1, DEFAULT_STACK_SIZE); MYexit = -1; cputs("x"); (...) (24 years ago, 13-Mar-01, to lugnet.robotics.rcx.legos)
|
| | |
| | | | Re: video game type thing... Ciaran Jessup
|
| | | | (...) <-- Cut -- > (...) Shouldn't thist say kill(pid1); ? - ciaran (24 years ago, 13-Mar-01, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: video game type thing... Nick Howell
|
| | | | It probably should. But why does it say that "pid1" is undeclared? Shouldn't that be taken care of in tm.h or unistd.h? (24 years ago, 13-Mar-01, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: video game type thing... Ciaran Jessup
|
| | | | (...) Shouldn't (...) No, the returned process id is an integer (int) I believe, you just replace it with int pid1 = execi .... for example :) - Ciaran (24 years ago, 13-Mar-01, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: video game type thing... Philippe Possemiers
|
| | | | Or pid_t pid1 = execi... Philippe (...) (24 years ago, 13-Mar-01, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: video game type thing... Nick Howell
|
| | | | I just got new batteries for my RCX, so I just did an actual test. I didn't get very far. I don't believe that it is registering the touch sensors. Here's how I had it: if(TOUCH_2 == 1) { do this and that and that; } What's wrong with it? I should (...) (24 years ago, 13-Mar-01, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: video game type thing... Ross Crawford
|
| | | | Nick, The TOUCH_x macros are boolean - they return true or false. You should be testing if (TOUCH_2) {....} HTH ROSCO (...) (24 years ago, 15-Mar-01, to lugnet.robotics.rcx.legos)
|
| | | | |
| | | | | | Re: video game type thing... Nick Howell
|
| | | | I'll try that. I thought it was something or other like this. I'll post when I'm at least partially successful. (24 years ago, 15-Mar-01, to lugnet.robotics.rcx.legos)
|
| | | | |