View Single Post
  #3   Spotlight this post!  
Unread 21-02-2010, 09:50
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: Mecanum Drive Not Working

You can use the absolute value function to square inputs.

Code:
#include <cmath>

x *= fabs(x);
y *= fabs(y);
Reply With Quote