|Turn specified degrees?
|Page 1 of 1|
|Author:||giannisAPI [ Sun Mar 02, 2008 12:46 pm ]|
|Post subject:||Turn specified degrees?|
Does anyone knows a way to tell nxt to turn a specified number of degrees?
90 or 180 for example?
Any help appreciated.
|Author:||Ford Prefect [ Sun Mar 02, 2008 2:44 pm ]|
ja, hier ist mein Vorschlag / my suggestion ? proposal ?:
du brauchst den Raddurchmesser /
you need the wheel diameter(DiameterWheel)
und den Abstand der beiden Antriebsräder /
distance of both wheels (WheelDistance):
if you're interested in a complete navigator program, please refer to
|Author:||giannisAPI [ Sun Mar 02, 2008 5:07 pm ]|
Could you please explain to me what you mean by "distance of both wheels (WheelDistance): "
I havent tested this but if this works, you have safed me a lot of time for my project
Thanks a lot for your help though.
|Author:||Ford Prefect [ Sun Mar 02, 2008 6:12 pm ]|
Distance of the wheels - well , sorry for my poor English;
how else should I say?
the length of the axis?
|Author:||giannisAPI [ Sun Mar 02, 2008 6:27 pm ]|
Oh no worries mine are not better ...
I did try this but the robot keeps going around forever.
Do i need to the parameters below as well:
float DiameterWheel; // cm , e.g. 8.2
float WheelDistance; // cm , e.g. 12.0
int Ticks, speed;
I called the function like this: turn_degr(90); with the WheelDistance set to 15 and the DiameterWheel set to 56 (which i dont think is in cm, it is written on the tire though. And it still keeps going around forever.
Would you know why please?
|Author:||Ford Prefect [ Sun Mar 02, 2008 7:02 pm ]|
try it with a ruler...
float DiameterWheel= 5.6 ;
float WheelDistance=15.0 ;
// motorA =0
// motorB =1
// motorC =2
// to sync motors 1+2: nSyncedMotors = synchBC;
and then try this:
|Author:||giannisAPI [ Sun Mar 02, 2008 7:06 pm ]|
I did try with a ruler but it stills keeps going around for ever.
I think the problem is because the variable AnglePerTick is 0.
Could you explain me what is this variable or what should i set it to please?
|Author:||Ford Prefect [ Sun Mar 02, 2008 7:11 pm ]|
you have to take the ABSOLUTE CORRECT measures!
|Author:||Ford Prefect [ Tue Mar 11, 2008 6:54 pm ]|
have you got it?
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group