Home > NXT, NXT-G, RobotC > NXT-G to RobotC

NXT-G to RobotC

Can RobotC do everything NXT-G can?

I’ve decided to put RobotC to the test by “translating” every program you can find in NXT-G to RobotC.

I’ve built, programmed and tested every robot using the two programming languages. You can download the RobotC programs here (.7z) or here (.zip).

I think this could help new RobotC users since it shows them how to put a simple code together. That is why I used several different programming techniques while translating. (use of synchronising motors, switches etc.)

I have put several comments to help newbies understand how the program works.

While doing this, I had encountered several problems that might be of interest to RobotC developers:

– nMotorEncoderTarget isn’t very precise while running at hight speed (other methods such as the while(nMotorEncoder < Target) cause the same issues).

– When you stop a motor, it takes a lot of time to stop while running at hight speed.

– The timers aren’t very precise (try and test the RobogatorJaw.c program with both powers at 75).

All this shows us many things, such as:

-RobotC can indeed do what NXT-G can.

-RobotC is less precise than NXT-G but RobotC developers are still working on RobotC for constant improvement.

If you want more NXT software comparisions, you might want to see this.

  1. August 27, 2010 at 9:58 pm

    Can robotC run two things simultaneously??? NXT-G can by having multiple beams.

  2. September 5, 2010 at 6:47 pm

    Sorry for not replying immediately…

    Yes, RobotC can do it using tasks. You can check RobotC documentation. There are also some exemples in the programs that I made.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: