View unanswered posts | View active topics It is currently Fri Jul 25, 2014 4:49 pm






Reply to topic  [ 3 posts ] 
weird problem nxt motors robotc 
Author Message
Rookie

Joined: Fri Nov 13, 2009 7:48 pm
Posts: 5
Post weird problem nxt motors robotc
we have a weird problem
it involves two nxt motors

we used a

void where u press a certain button
and call upon it in task main()

however, the code that comes second runs physically faster

so for example

void1
(code that runs 2 motors forward)
return

void2
(code that runs 2 motors backward)
return


void2 would give full power to the motors, however
void1 would give little to no power to the motors

the code is identical, we have tried swapping them,
and the 1st code is always much slower

help!! :?: :poke:


Mon Nov 23, 2009 4:48 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3163
Location: Rotterdam, The Netherlands
Post Re: weird problem nxt motors ROBOTC
Please post your code when you have a problem like this, otherwise it makes helping you almost impossible. Be sure to wrap your code in "code" tags to ensure proper indentation.

Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Nov 23, 2009 4:51 pm
Profile WWW
Rookie

Joined: Fri Nov 13, 2009 7:48 pm
Posts: 5
Post Re: weird problem nxt motors ROBOTC
yeah sam, post the code :roll:


Wed Nov 25, 2009 12:40 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.