Search found 10 matches

by airblader
16 Dec 2010, 10:32
Forum: Mindstorms Software
Topic: Can't drive straight forward
Replies: 17
Views: 21809

Re: Can't drive straight forward

Hi, sorry it took some time, but I was (better to say: am) sick and stuff. Well I am far away from creating my own PID controller or anything. So I'll just drop the idea of smooth curves for the moment and focus on stopping in between but making the turns and stuff as accurate as I can get them to b...
by airblader
14 Dec 2010, 21:32
Forum: Mindstorms Software
Topic: Can't drive straight forward
Replies: 17
Views: 21809

Re: Can't drive straight forward

Hi, thanks for your reply. I'm just asking: You want to drive straight lines and apparently also curves? Does the driven distance have to be precise (as in: how many degrees do I want to drive)? Yes, that is what I want to do. And well, precision is never a bad thing to have, is it? ;) However, most...
by airblader
13 Dec 2010, 20:51
Forum: Mindstorms Software
Topic: Can't drive straight forward
Replies: 17
Views: 21809

Re: Can't drive straight forward

Hi, thanks. I'm studying math, so I think I'll be fine when it comes to trigonometric functions or similar things, thank you. ;) Before I go further into explaining I think I will just test some things out. Might be more to learn by that anyway. I'll also compare using RotateMotorEx and OnFwdSync. O...
by airblader
13 Dec 2010, 18:53
Forum: Mindstorms Software
Topic: Can't drive straight forward
Replies: 17
Views: 21809

Re: Can't drive straight forward

Hey guys, sorry the answer took so long. For one reason I wanted to test it first, but also I had problems with the forum. Whatever, it works at the moment. First of all thanks for the answer(s). That really seems to be the problem. I'll just stay beneath 100%, that seems to work (and makes sense). ...
by airblader
12 Dec 2010, 21:40
Forum: Mindstorms Software
Topic: Can't drive straight forward
Replies: 17
Views: 21809

Re: Can't drive straight forward

Okay, so this is just getting ridiculous. Here is the code I now used: task main () { ResetTachoCount(OUT_BC); OnFwdSync (OUT_BC, 95, OUT_REGMODE_SPEED); Wait(7000); Off(OUT_BC); Wait (10000); OnFwdSync (OUT_BC, 100, OUT_REGMODE_SPEED); Wait (7000); Off (OUT_BC); Wait (1500); } And here is the video...
by airblader
12 Dec 2010, 21:01
Forum: Mindstorms Software
Topic: Can't drive straight forward
Replies: 17
Views: 21809

Re: Can't drive straight forward

Hi, while I appreciate your answer I think you might have not read the whole thread. I used different commands and I didn't use several of them in a row or anything. Also, by now, I know that it can't be an issue of the motor, but probably with the nxt computer .. or "just" the compiler. I...
by airblader
12 Dec 2010, 18:56
Forum: Mindstorms Software
Topic: Can't drive straight forward
Replies: 17
Views: 21809

Re: Can't drive straight forward

Okay, so i switched motors in almost every possible combination - no changes. But here comes the big surprise: Since it wouldn't be the motors, I just switched the cables for the ports to B and C (meaning I just switched on which port which wheel is connected) ... and all of the sudden the robot dri...
by airblader
12 Dec 2010, 15:37
Forum: Mindstorms Software
Topic: Can't drive straight forward
Replies: 17
Views: 21809

Re: Can't drive straight forward

Hi,

yes I did try switching the wheels, but it didn't change anything. I'm gonna try replacing the motor on the right side with the third motor in the set tonight.

air
by airblader
12 Dec 2010, 06:56
Forum: Mindstorms Software
Topic: Can't drive straight forward
Replies: 17
Views: 21809

Re: Can't drive straight forward

Hi, I kinda think it might be a mechanical issue, too. To be more precise about what I meant: If I just hold the robot into the air the motor usually seems to work fine. But if I like just turn it around a little, in certain positions you can hear and feel the motor vibrate and sometimes this vibrat...
by airblader
11 Dec 2010, 11:38
Forum: Mindstorms Software
Topic: Can't drive straight forward
Replies: 17
Views: 21809

Can't drive straight forward

Hi everyone, for a competition at our university I'm working with the NXT at the moment (all new sets from LEGO). However, I do have a problem - I can't get the robot to drive straight forward. In order to accomplish that I am using #define WHEEL_BOTH OUT_BC [..] RotateMotorEx (WHEEL_BOTH, speed, di...