View unanswered posts | View active topics It is currently Sat Apr 20, 2019 3:09 pm






Reply to topic  [ 2 posts ] 
Straight drift 
Author Message
Rookie

Joined: Thu Feb 19, 2015 3:28 pm
Posts: 1
Post Straight drift
I wrote a short Arcadecontrol program in RobotC for my Vex IQ clawbot. Even without the gyro installed, the robot drifts forward (slowly) even when the joystick is in 0 position. I tried re-calibrating, but no luck. My program is simple, I just set the Arcade mode and then Armcontrol for adjusting the speed of the claw and arm.

Thanks,

R


Thu Feb 19, 2015 3:38 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 722
Post Re: Straight drift
Try increasing the threshold (or "deadband") value, the third parameter in the arcadeControl command. This parameter tells to robot to essentially ignore any joystick commands within the +- 10 value range, and can help reduce drift if the robot is moving forward even when the joystick is centered.

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our updated help documentation and the ROBOTC Forums.


Thu Feb 26, 2015 3:00 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:  
cron



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.