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
NXC API for RobotC Virtual Worlds
Re: NXC API for RobotC Virtual Worlds
Hey Alex,
That's a pretty cool project! I'll have to take a better look at the code but it looks great
- Xander
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)
| 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)
Who is online
Users browsing this forum: No registered users and 0 guests