NXC API for RobotC Virtual Worlds
Posted: 21 May 2012, 21:11
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
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