NXC API for RobotC Virtual Worlds

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
alex-kolotov
Posts: 8
Joined: 29 Sep 2010, 07:00

NXC API for RobotC Virtual Worlds

Post by alex-kolotov »

Hi,

Let me introduce my very simple project nxc4rvw (NXC API for RobotC Virtual Worlds) http://code.google.com/p/nxc4rvw/.

The intent of this project is to allow people who used to program on NXC playing with RobotC Virtual World. It also could be useful for newbies who decide that RobotC is difficult for understanding and found NXC to be more appropriate. The third case could be for persons who would like to prepare education materials for their NXC cources: now it is quite easy to show how to a robot will behave when some NXC code is written.

For now just few basic API is supported with limitations:

Constants: OUT_A, OUT_B, OUT_C, OUT_AB, OUT_BC, OUT_AC, OUT_ABC, SENSOR_1, SENSOR_2, SENSOR_3, SENSOR_4
Functions: Sensor, SensorUS, OnFwd, OnFwdSync, OnRev, Off, Wait, RotateMotor, RotateMotorEx, SetSensorLight, SetSensorLowspeed, SetSensorTouch, SensorValue, OnRevSync

You can look at the following video (in Russian, no eng subtitles so far) to see how to program robots:



If you think that the list of supported API needs to be extended please contact to me. Or just modify the code and send me updates for merge ;)

--
Alex Kolotov
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: NXC API for RobotC Virtual Worlds

Post by mightor »

Hey Alex,

That's a pretty cool project! I'll have to take a better look at the code but it looks great :)

- Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests