Go to Post If it's not a sport, and it's not an art, it might as well be criminal behavior, because that's how you're going to be treated. - jasoni [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
  #11   Spotlight this post!  
Unread 21-02-2010, 12:27
AlftanSr AlftanSr is offline
Registered User
FRC #1013
 
Join Date: Feb 2010
Location: Arizona
Posts: 12
AlftanSr is an unknown quantity at this point
Re: Mecanum Drive Not Working

Quote:
Originally Posted by Ether View Post
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




~
or you could have an if statement, so there's less multiplying...

if (x<0.0) x = -(x*x); else x = x*x;
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