View unanswered posts | View active topics It is currently Fri Aug 29, 2014 1:19 am






Reply to topic  [ 2 posts ] 
Lowering a Lever 
Author Message
Rookie

Joined: Sun Nov 02, 2008 6:28 pm
Posts: 6
Post Lowering a Lever
My team is using a central lever that is controlled by one motor.
The problem we are having is that although the lever move upwards correctly, whenever we try to move the lever back down the lever automatically drops down with a lot of force.
The motor isn't slowly lowing it down. It's like the motor just goes into neutral and the lever falls.

Is there anything programming wise to correct this?


Tue Jan 20, 2009 8:46 pm
Profile
Novice

Joined: Thu Oct 09, 2008 7:58 pm
Posts: 79
Post Re: Lowering a Lever
You would have to calculate a threshold. Do some testing and figure out at what power level your lever does not slam down. Then when u move your joystick at or below that power level, just have the power automatically set to that.

ie. If your threshold power is 5. then have it be.

if (joystick.joy1_y1 <= 5)
{
motor[MotorA] = 5;
}

or something similar.


Tue Jan 20, 2009 10:03 pm
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.