I'm new here,
why is RobotC better than the drag-and-drop software that you get on the cd?

Thu Feb 22, 2007 1:03 pm

MasterMind813

Rookie

Joined: Thu Feb 22, 2007 12:57 pmPosts: 3

Can you do more advanced stuff with RobotC than with the drag-and-drop software?

Sat Feb 24, 2007 5:47 am

vnguyen

Site Admin

Joined: Wed Jan 24, 2007 10:44 amPosts: 441Location: Pittsburgh, PA

MasterMind813 wrote:

Can you do more advanced stuff with RobotC than with the drag-and-drop software?

Just to give you some ideas on what ROBOTC can do:

1) Take advantage of the NXT's closed-loop feedback system in order to perform algorithms such as PID in order to ensure accurate motor power. (ex. if you set 50% power on a normal "move forward" program, due to friction the motors it won't go exactly 50%, it may be lower. So PID calculates what power level it should be, and adjusts the power level to do so). Great for moving in a straight line as well as other behaviors.

2) Motor Syncing. Along with PID, you can have a "slave" motor go "exactly" the speed of the "master" motor. Great for point turns, moving straight, etc.

1) Allow for more programs to be loaded onto the NXT because of the much smaller size of the ROBOTC programs.

2) Faster/better response when it comes to line tracking because of the optimized algorithms used to process the sensor port values.

3) ROBOTC Interface doesn't require nearly as much processing power.

There are many more ways that ROBOTC is unique. Since it is syntax-based, it's much easier to read code especially for the programmer who's used to seeing just code or even the learner who doesn't want 8 pages of icon-code.

_________________Vu NguyenSoftware Training Development Team | WebmasterNeed more support? Email ROBOTC Support at support@robotc.net to put in a support ticket

About how much smaller memory space takes these programs compared to the usual drag-and-drop-programs?

Sat Feb 24, 2007 4:31 pm

Dick Swan

Creator

Joined: Fri Feb 09, 2007 9:21 amPosts: 615

Some users will be quite content with the graphical "drag and drop" software that is available in the retail NXT kit. Other users will want a text based programming solution. It will be an individual choice.
RobotC has a terrific feature set for those interested in the text based programming language. In addition to the points in the previous post, here's a few others:

Best sound support for the NXT. It is the only solution that allows you to queue sound items -- with drag-and-drop you can only have one sound item active at a time. It's the only solution to support compressed sound files.

Enhanced capabilities for drawing on the NXT LCD. Many more functions to provide precies positioning of text and graphics. For example, drag-n-drop only allows you to draw the outline of a rectangle. Roibotc lets you draw the outline, or fill the rectangle, or erase the rectangle. RobotC also has both the standard and double size font that can be drawn to the screen. The LCD display functions have been rewritten to run 5X faster than drag-n-drop so that there is minimal screen flicker as you repetitively draw over existing text.

Better and more precise control over motors. The firmware for controlling motors is rewritten to provide a better and more accurate performance.

Support for floating point and trigonmetry functions. Very important if you want to write some "dead reckoning" code to keep track of your robot's travels.

A terrific interactive debugging capability on the PC. You can step through your program execution one line at a time. All program variables are available in a PC window display. You can suspend your program in the middle of execution, look at your program variables to see if they're what's expected, and then resume execution. You can define breakpoints which mean "whenever my program tries to execute this line of code, please automatically suspend the execution so that I can examine execution progress and then I will resume execution from this point." Incredibly powerful features.

The best support for third party sensors from Hitechnic and Mindsensors.

A great text editor with auto formating of your code, colored syntax of your code -- i.e. different colors for different types of keywords and variables, etc

Incredibly fast execution. 10 to 80 times faster than the drag-n-drop firmware.And many more items.

Mon Feb 26, 2007 5:18 am

JamesD

Novice

Joined: Sun Feb 04, 2007 12:48 amPosts: 69Location: Australia

Viewing variable values

From Dick's post above.

Quote:

All program variables are available in a PC window display

Hi Dick or anyone else who can help.

How do open or view the window to display variable values? Is this new in 1.02?

Thanks
James

Tue Feb 27, 2007 7:18 am

tfriez

Site Admin

Joined: Wed Jan 24, 2007 10:42 amPosts: 619

Seeing the debugger variables has been around for a while with the NXT.

You can see these variables after you load a program and the debug system is running.

If the window for variables does not appear, you can open it manually from the Robot - Debugger Windows - Global Variables menu selection.

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