View unanswered posts | View active topics It is currently Mon Mar 18, 2019 5:22 pm






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

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.

Thanks

Here is the code below:

Code:
void scissorLift(int joy2btnA, int joy2btnB, int powerDown, int powerUp)
   {
      getJoystickSettings(joystick);
      if(joy2btnA == 1)
         {
            motor[sL1] = -powerDown;
            motor[sL2] = -powerDown;
         }
      else if(joy2btnB == 1)
         {
            motor[sL1] = powerUp;
            motor[sL2] = powerUp;
         }
      else
         {
            motor[sL1] = 0;
            motor[sL2] = 0;
         }
      }


This is my first POST!


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