View unanswered posts | View active topics It is currently Sat Aug 15, 2020 11:09 am

Reply to topic  [ 1 post ] 
NeveRest Motors Accelerate/Decelerate 
Author Message

Joined: Tue Feb 17, 2015 8:28 pm
Posts: 1
Post NeveRest Motors Accelerate/Decelerate
Hi RobotC Forums,

I am a member of an FTC Robotics team. For our robot, we built a scissor lift, the scissor lift jumps up at start up.
How would you code the scissor lift to accelerate at the start up.


Here is the code below:

void scissorLift(int joy2btnA, int joy2btnB, int powerDown, int powerUp)
      if(joy2btnA == 1)
            motor[sL1] = -powerDown;
            motor[sL2] = -powerDown;
      else if(joy2btnB == 1)
            motor[sL1] = powerUp;
            motor[sL2] = powerUp;
            motor[sL1] = 0;
            motor[sL2] = 0;

This is my first POST!

Tue Feb 17, 2015 8:36 pm
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.