Go to Post anything that breaks a kitbot frame is probably breaking most custom frames of similar weight, too. - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2015, 21:40
2Angry2Think 2Angry2Think is offline
Registered User
FRC #2522
 
Join Date: Feb 2015
Location: Lynnwood High School
Posts: 1
2Angry2Think is an unknown quantity at this point
Parameters don't seem to do what they say (mecanumDrive)

Using the method robotDrive.mecanumDrive_Cartesian(x, y, rotation, gyro) doesn't work, however switching the parameters around to (x, rotation, y, gyro) gets more desired results however strafing still doesn't work. I want to burn this laptop its been bugging my entire team for the last 2 weeks.

The mecanum wheels ARE in an "x" formation, and as far as we know we are getting the right values for each parameter. Anyone else having this problem? Solutions?
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2015, 22:08
cad321 cad321 is offline
Jack of all trades, Master of none
AKA: Brian Wagg
FRC #2386 (Trojans)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Burlington, Ontario
Posts: 323
cad321 is just really nicecad321 is just really nicecad321 is just really nicecad321 is just really nice
Re: Parameters don't seem to do what they say (mecanumDrive)

I would suggest posting your code so that others can look at what you have and help debug this.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2015, 22:24
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,574
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Parameters don't seem to do what they say (mecanumDrive)

In addition to programming, verify your wiring and mechanical setup.

One issue you need to remember that might cause this is that because the motors are mounted back-to-back rather than pointing the same direction, if you put all the motors driving in the "forward" direction, one side will go forward and the other in reverse. Which goes forward depends on whether there is an even or odd number of stages in your gearbox. This is not a mecanum issue; it also affects skid-steer/tank drive.

It would also be helpful to write a quick test robot that allows you to drive each motor forward or reverse or stop and ensure that your signals are getting to the correct motor, in the correct direction. Because there are 12 settings, this is probably more easily based on the keyboard than a joystick-style controller. This will help you distinguish between errors in how mecanumDrive_Cartesian() is being called and errors in motor assignment and orientation.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:52.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi