Go to Post One key, esspecialy for newer teams, is to understand that the game rule book and design requirements are requirements, not suggestions. - Chris Fultz [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 20-02-2010, 11:40
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
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: Mecanum Drive Not Working

Quote:
Originally Posted by mika.perlin View Post
//Square Joystick inputs for better precision control
x = mainStick.GetX(); x = x*x;
y = mainStick.GetY(); y = y*y;
When you square x (and y) you change their range from [-1 to +1] to [0 to +1] .

Perhaps you accounted for this in your code but I didn't see it with a cursory review.

Try x*x*x instead of x*x. That preserves the sign.

See the following posts:

TUNABLE JOYSTICK SENSITIVITY
http://www.chiefdelphi.com/forums/sh...d.php?p=921992

MECANUM CODE
http://www.chiefdelphi.com/forums/sh...383#post916383




~
Reply With Quote
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tank Drive Not Working!!! live4u2 NI LabVIEW 2 05-02-2010 20:40
crab drive vs. mecanum drive system superbotman Technical Discussion 33 06-01-2010 03:09
Drive code not working; any suggestions? BrandonD-1528 Programming 9 30-01-2009 21:06
pic: Jester Drive:Mecanum Wheel Drive Train Ken Delaney 357 Technical Discussion 64 29-03-2006 22:16


All times are GMT -5. The time now is 22:56.

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