|
Re: Using Target Distance to Move Robot
Quote:
Originally Posted by Pirate programe
Since we managed to get the Rectangular Target Processing VI functioning, we're now trying to use the Distance information to move the robot.
The problem is, with the teleop code used in the attachment, the robot doesn't move at all. I can't imagine that there's anything wrong with the drivetrain, since the robot's been driving a lot before we modified the code.
What could be the problem?
|
At first glance, I would say that .1 is a fairly low drive value and may not be enough to move a robot. Have you tried it on blocks to see it the wheels turn?
I also think you will find you are introducing a turn with those values. Arcade drive uses X and Y input. X will cause the robot to turn.
Lastly, the vi is using the following logic:
If distance is greater than 6, drive at .1 and .1.
Is that what you are thinking as well?
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Last edited by billbo911 : 24-01-2012 at 18:39.
Reason: Dropped a period in.
|