Go to Post It made me proud to know that we have corporate sponsors with genuine interest. - galewind [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 13-02-2015, 16:15
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,044
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: Drive Backwards Causes A Rotation Movement

Quote:
Originally Posted by tanogirl View Post
When we pull the joystick backwards the Z axis has an input greater than the Y axis input.
Please run a test and post the Z vs Y pairs for Y=0 to Y=max for several values of Y.


Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2015, 16:44
tanogirl's Avatar
tanogirl tanogirl is offline
Registered User
AKA: Emma
FRC #3038 (ICE)
 
Join Date: Jun 2014
Rookie Year: 2014
Location: Chisago City, Minnesota
Posts: 18
tanogirl is an unknown quantity at this point
Re: Drive Backwards Causes A Rotation Movement

Forward=

Y = 1.000
Z = 0.008

Backwards =

Y = -1.000
Z = -0.0062

It's a small difference but it makes the robot rotate.
Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2015, 17:00
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,044
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: Drive Backwards Causes A Rotation Movement

Quote:
Originally Posted by tanogirl View Post
Forward=

Y = 1.000
Z = 0.008

Backwards =

Y = -1.000
Z = -0.0062

It's a small difference but it makes the robot rotate.
The above does not agree with your previous post:

When we pull the joystick backwards the Z axis has an input greater than the Y axis input.




Last edited by Ether : 13-02-2015 at 17:02.
Reply With Quote
  #4   Spotlight this post!  
Unread 13-02-2015, 17:23
tanogirl's Avatar
tanogirl tanogirl is offline
Registered User
AKA: Emma
FRC #3038 (ICE)
 
Join Date: Jun 2014
Rookie Year: 2014
Location: Chisago City, Minnesota
Posts: 18
tanogirl is an unknown quantity at this point
Re: Drive Backwards Causes A Rotation Movement

Yes the Y axis is greater than the Z axis but the robot still rotates when driving backwards.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2015, 17:24
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,044
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: Drive Backwards Causes A Rotation Movement

Quote:
Originally Posted by tanogirl View Post
Yes the Y axis is greater than the Z axis but the robot still rotates when driving backwards.
Please post results for Y=0, Y=.2, Y=.4, Y=.6, Y=.8;
repeat for negative Y commands.

If all the Z values are within +/-0.0099,

try adding deadband to your code:

if (fabs(Z)<.01) Z=0;


Reply With Quote
  #6   Spotlight this post!  
Unread 13-02-2015, 17:30
tanogirl's Avatar
tanogirl tanogirl is offline
Registered User
AKA: Emma
FRC #3038 (ICE)
 
Join Date: Jun 2014
Rookie Year: 2014
Location: Chisago City, Minnesota
Posts: 18
tanogirl is an unknown quantity at this point
Re: Drive Backwards Causes A Rotation Movement

Where would you put that in the code?
Reply With Quote
  #7   Spotlight this post!  
Unread 13-02-2015, 17:32
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,044
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: Drive Backwards Causes A Rotation Movement

Quote:
Originally Posted by tanogirl View Post
Where would you put that in the code?
Right after you read the joystick Z axis (i.e. before you use it).


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 13:13.

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