Wait(15); // shorter delay because calculations take time!
**Error**:Undefined variable 'SENSOR_LIGHT'. 'short' assumed.
**Error**:Undefined variable 'SENSOR_TOUCH'. 'short' assumed.
**Error**:Undefined variable 'SENSOR_MODE_RAW'. 'short' assumed.
**Error**:Undefined variable 'OUT_C'. 'short' assumed.
**Error**:Undefined variable 'OUT_A'. 'short' assumed.
Can someone help my find the sollutions for my C-source code (RobotC)?
Which version of RobotC are you using? Anything higher than 2.03 loses RCX support. Regarding the commands, they are completely different in NQC. You would really have to rewrite the whole program. I would suggest looking at some of the RCX curriculum available here. There is also a list of frequently used RCX commands at this site.
Hi, thanks for your respons!
It works a little bit, can you help me?
The piece (code) gives some errors.
wait10Msec(15); // shorter delay because calculations take time!
Unfortunetly, I can't look through your code right now. I'm working on a big project that has to be finished by friday. I'll get back to you as soon as I can. In the meantime, I would suggest looking through the RobotC help files for more on setting the sensors, motor commands, etc.
Now i got 4 errors, can you check my problems, thanks!
This last code of yours uses commands for the NXT. You said your using it the the RCX, didn't you? Which is it?
oeps, well i have change from robot type, because i got only a sonarsensor for the nxt robot.
Okay, I am REALLY, sincerely sorry that it's been so long. I was sick for about 2.5 weeks, and couldn't think very well. After that, I kinda forgot about this until I saw it when I scrolled down the forums. I know how to fix the code, but before I do that, have you figured it out yourself?