View unanswered posts | View active topics It is currently Tue Aug 04, 2020 10:51 pm

Reply to topic  [ 2 posts ] 
Precision Mode 
Author Message
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Precision Mode
My team has used this technique with great results, and I thought that I would share it with everyone. We all want our robot to be as fast and possible, but precision is also key. We solved this problem by having our robot move at half speed while a certain button is pressed. Here's the code.

task main(){
  int precision = 1;
  while true(){
    precision = vexRT[Btn6U] ? 2 : 1;
    //Sets precision equal to 2 if button 6U is pressed, and 1 if it's not

    motor[leftWheel] = vexRT[Ch2] / precision;
    motor[rightWheel] = vexRT[Ch2] / precision;

sudo rm -rf /

Wed Nov 17, 2010 8:47 pm
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: Precision Mode
Nice tip! I've moved it to the "Tips for Beginnners" for the IFI platform :)

- 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]

Thu Nov 18, 2010 1:03 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

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.