Go to Post The secret to this whole thing is that it's the robot that builds the team. - JohnBoucher [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #11   Spotlight this post!  
Unread 19-11-2014, 17:43
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: Swerve VI based on the 2011 paper & excel by Ether

Quote:
Originally Posted by jman4747 View Post
Thank you Ether. I updated it as shown. It's outputs are concurrent with those of the spreadsheet. However now adding a gyro angle seems to produce incorrect values. I would expect gyro angle 180 and FWD +1 (STR and RCW are 0) to produce a wheel angle of 180 not 126.76.
Are you still having this issue with your code, after making the sequencing changes that other posters have recommended?

If so, here are the intermediate values you should be getting. This may help you track down where the error is:

Code:
L=24 W=24

FWDfc=1 STRfc=0

Q=180

FWDrc=-1 STRrc=1.02068e-011

RCW=0

A=1.02068e-011 B=1.02068e-011 C=-1 D=-1

wa1=180 wa2=180 wa3=180 wa4=180

ws1=1 ws2=1 ws3=1 ws4=1

ws1n=1 ws2n=1 ws3n=1 ws4n=1
Quote:
I would also expect gyro angle of 179 to produce something close to that instead of -175.94 for wheel angles if this LabVIEW implementation were correct.
For FWDfc=1 STRfc=0 RCW=0, a gyro angle of +179 results in wheel angles of -179* (both gyro and wheel angles begin measured clockwise):

Code:
L=24 W=24

FWDfc=1 STRfc=0

Q=179

FWDrc=-0.999848 STRrc=-0.0174524

RCW=0

A=-0.0174524 B=-0.0174524 C=-0.999848 D=-0.999848

wa1=-179 wa2=-179 wa3=-179 wa4=-179

ws1=1 ws2=1 ws3=1 ws4=1

ws1n=1 ws2n=1 ws3n=1 ws4n=1

* note the last paragraph in the paper where reversing wheel speeds is discussed

Last edited by Ether : 19-11-2014 at 17:47.
 


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 22:08.

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