hey,
what would you suggest to be the best way to mimic (transcode) the following RobotC code snippet to the best matching NXC code?
// no equivalents to functionalities of nMotorEncoderTarget[] and nMotorRunState[] and nSyncedMotors =... and nSyncedTurnRatio = ...;
//
// no idea what tmotorNxtEncoderClosedLoop actually means
// simple:
// tMotor ~ char
// #define right_m OUT_A;
// #define left_m OUT_C;
// wait1Msec(1) ~ Wait(1)
// ecplicite type casting (int) may be dropped.
You asked how to convert ROBOTC into NXC, so I told you how I do it. You asked what some ROBOTC specific things do, so I suggested two places that you could probably get the answers.
When people ask a question on a forum, they are usually seeking an answer to a question. Those who reply usually either tell them the answer, or point them towards the answer. Is it silly of me to try to help you find the information you are looking for?
did you just once again had a bad breakfast?
I asked my question just here in this place to get an answer here in this place.
Don't hezitate to read it again!
doc-helmut wrote:hey, what would you suggest to be the best way to mimic (transcode) the following RobotC code snippet to the best matching NXC code?
// no equivalents to functionalities of nMotorEncoderTarget[] and nMotorRunState[] and nSyncedMotors =... and nSyncedTurnRatio = ...;
//
// no idea what tmotorNxtEncoderClosedLoop actually means
// simple:
// tMotor ~ char
// #define right_m OUT_A;
// #define left_m OUT_C;
// wait1Msec(1) ~ Wait(1)
// ecplicite type casting (int) may be dropped.
Well, you're welcome to wait until someone comes along and does all the work for you, that's your choice. If you'd like it sooner rather than later (or possibly never), I suggest that you invest your own time into figuring it out, and then converting it. As I said earlier, the ROBOTC manual and the ROBOTC forums are probably the best places to gather information specific to ROBOTC.
well, surprisingly you really seem to be convinced that this is an adequate piece of advice.
Ok then, I'll let you in the belief and I hope you finally keep quiet.
Maybe other people here have more sense of what is helpful -and more willingness too.
In any case I for one am otherwise always ready and willing and anxious to help others in a friendly way.
Matt, Doc is banned from the ROBOTC forums, that's why the question was posted here. There's not a whole lot of code there, I'm sure you'll figure it out, Doc.
As for Matt's answer, I don't think there's anything wrong with it, it's concise and to the point. The ROBOTC curriculum is a good place to start. You can also download a 30 day trial of ROBOTC, so you can see the code working. Hopefully that's enough time for you to convert this to NXC.
= 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)