Go to Post but you can rest assured: I have restored the balance by letting the GDC know that I know that they know that you know they have a pattern. -Leav - Leav [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-01-2015, 09:52
thinker&planner thinker&planner is offline
Registered User
AKA: CAAAAAD
no team
Team Role: Mechanical
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Tallahassee, FL
Posts: 115
thinker&planner is a splendid one to beholdthinker&planner is a splendid one to beholdthinker&planner is a splendid one to beholdthinker&planner is a splendid one to beholdthinker&planner is a splendid one to beholdthinker&planner is a splendid one to beholdthinker&planner is a splendid one to behold
Re: Which controler for driving mecnum?

Being the driver, and liking tank style, I requested that we control (not drive) our robot with tank-style controls. We used an Xbox controller and had the left-y control the left side forward/backwards and the right-y for the right side. The strafing was controlled by the triggers, which were analog on the controller that we used. If we do it again, I would use two joysticks in a tank formation and modify the triggers to be analog (or use the x-axis of one of them for strafing).

The trick was averaging in the strafing at the same time, which our amazing programmer had a true "Eureka!" moment when she figured it out. Her method provides a more "natural" way (if you naturally like tank-style controls) for mecanum the full mobility of mecanum still retained.

I'll try to find the algorithm and put it here soon.
  #2   Spotlight this post!  
Unread 04-01-2015, 10:32
rjmah rjmah is offline
Registered User
#1246
 
Join Date: Jan 2005
Location: Toronto, Canada
Posts: 73
rjmah will become famous soon enough
Re: Which controler for driving mecnum?

Quote:
Originally Posted by thinker&planner View Post

The trick was averaging in the strafing at the same time, which our amazing programmer had a true "Eureka!" moment when she figured it out. Her method provides a more "natural" way (if you naturally like tank-style controls) for mecanum the full mobility of mecanum still retained.

I'll try to find the algorithm and put it here soon.
I meant to say arcade until the stick gets to 45 degrees. I'm pretty sure our programmer just used a linear proportion to give the driver strafe "steering". As you know, sideways steering is pretty inexact anyway.
__________________
Robert Mah
Team 1246 Agincourt Lancers
  #3   Spotlight this post!  
Unread 04-01-2015, 12:05
Chadfrom308's Avatar
Chadfrom308 Chadfrom308 is offline
Slave to the bot
AKA: Chad Krause
FRC #0308 (The Monsters)
Team Role: Driver
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Novi
Posts: 272
Chadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to beholdChadfrom308 is a splendid one to behold
Re: Which controler for driving mecnum?

Last year we used an Xbox controller and controlled it call of duty style. I liked that setup a lot and want to do it again, but my team this year wants tobdo a 3 axis joystick because it has more resolution
  #4   Spotlight this post!  
Unread 04-01-2015, 13:19
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,042
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Which controler for driving mecnum?

Quote:
Originally Posted by thinker&planner View Post
I'll try to find the algorithm and put it here soon.

Here's a common way to do it:

Forward = (Yleft + Yright) / 2

RotateCW = (Yleft - Yright) / 2

Then feed the Forward and RotateCW values into the Y and Rotation inputs, respectively, to the MecanumDrive_Cartesian method1 in WPILib (or LabVIEW). Use a joystick X axis or something else for the X (strafe) input.

1void RobotDrive::MecanumDrive_Cartesian(float x, float y, float rotation, float gyroAngle)

  #5   Spotlight this post!  
Unread 05-01-2015, 14:02
nickmcski nickmcski is offline
Registered User
AKA: Nicholas McCurry
FRC #1482 (Grandin Ghosts)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 107
nickmcski has a spectacular aura aboutnickmcski has a spectacular aura aboutnickmcski has a spectacular aura about
Re: Which controler for driving mecnum?

The way our team hypotheses to drive it was to use an x-box controller with the left stick be the forward back left and right and the triggers to rotate left and right.
Closed Thread


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 05:48.

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