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.

Does this help?

_________________A.K.A. inxt-generationSelf-proclaimed genius, and future world dominator.My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth DoctorBow down to Nikola Tesla, King of the Geek Gods.

Wed Feb 22, 2012 12:25 am

Wonderland2001

Rookie

Joined: Tue Feb 21, 2012 5:22 pmPosts: 5

Re: NQC to C-source convert problem + help

Hi, thanks for your respons!It works a little bit, can you help me?The piece (code) gives some errors.

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.

_________________A.K.A. inxt-generationSelf-proclaimed genius, and future world dominator.My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth DoctorBow down to Nikola Tesla, King of the Geek Gods.

This last code of yours uses commands for the NXT. You said your using it the the RCX, didn't you? Which is it?

_________________A.K.A. inxt-generationSelf-proclaimed genius, and future world dominator.My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth DoctorBow down to Nikola Tesla, King of the Geek Gods.

Sun Feb 26, 2012 2:55 pm

Wonderland2001

Rookie

Joined: Tue Feb 21, 2012 5:22 pmPosts: 5

Re: NQC to C-source convert problem + help

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?

_________________A.K.A. inxt-generationSelf-proclaimed genius, and future world dominator.My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth DoctorBow down to Nikola Tesla, King of the Geek Gods.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum