View unanswered posts | View active topics It is currently Fri Oct 20, 2017 10:31 am






Reply to topic  [ 1 post ] 
nMotorEncoder problem 
Author Message
Rookie

Joined: Fri Apr 26, 2013 11:05 am
Posts: 34
Post nMotorEncoder problem
I have two different sets of students who are trying to download the following code:

nMotorEncoder[right] = 0;
nMotorEncoder[left] = 0;

nMotorEncoderTarget[right] = 720;
nMotorEncoderTarget[left] = 720;

motor[right] = 50;
motor[left] = 50;
wait1Msec(5000);

The robots did move exactly two revolutions forward at 50% power, but instead of waiting in place for the remainder of the 5 seconds, the robots will start turning in place. It makes no sense because we have tried replacing the brick; downloading the firmware, changing what computer is being used and changing motors. The above code is exactly the same as what other students in the class are using and their robots are performing as they should. Any ideas of what to try would be appreciated!!


Fri Sep 22, 2017 2:36 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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.