View unanswered posts | View active topics It is currently Fri Oct 31, 2014 5:32 pm






Reply to topic  [ 2 posts ] 
Sunner of Learning-VEXIQ-Sensors-Self-Sensing Arm Programmer 
Author Message
Rookie

Joined: Thu Jul 31, 2014 9:28 pm
Posts: 4
Post Sunner of Learning-VEXIQ-Sensors-Self-Sensing Arm Programmer
I am unable to complete this challenge because I can't get the robot to move once the arm has pressed the sensor.

MoveMotor(-315)degrees(50)
WaitUntil(BumperSensorvalue)(=)(1)
Forward(5)(rotations)


Thu Jul 31, 2014 9:42 pm
Profile
Moderator
Moderator

Joined: Mon Oct 04, 2010 2:18 pm
Posts: 196
Post Re: Sunner of Learning-VEXIQ-Sensors-Self-Sensing Arm Progra
Hello,

Looking at your code, you are telling the arm motor to move a specific amount (-315 degrees), but then you are telling it to wait until the touch sensor is pressed. So, you want the arm to move until the touch sensor is pressed. Your moveMotor command does not do this; instead, it gives it a specific distance to move. What you want to do is turn the motors on, and keep them on until the touch sensor is pressed. Instead of using the moveMotor command, try using the setMotor command.


Fri Aug 01, 2014 8:07 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 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.