Go to Post I predict the champion drive teams at each event of the 2011 season will consist of vertebrates. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
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
  #1   Spotlight this post!  
Unread 19-03-2011, 21:17
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 744
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Help with CAN/ JAG encoder settings

Is there a description anywhere that outlines how the various CAN based Speed/ENcoder control settings work?

I've just installed US Digital encoders on a pair of Swerve drives and I've been playing with JAG test application. It seems like I can change the Encoder count and PID gains to move from a herky jerky control to a pretty smooth control.

But I'm not sure how this will manifests itself once I switch to LabVIEW.

eg: If I set the encoder count value to 1440 (US Digital output) I can send the CAN a speed request to 60 (rpm) and the wheel spins too fast but smoothly. If I set the encoder counts to 360 the wheel runs at the correct speed, but very jerky.

ANyway, I seem to get smoother control over the full range of speeds if I use a higher encoder count value (even if I adjust the PID gains accordingly).... but I feel that I'm just guessing, and I don't know what will happen once I switch to LabVIEW. eg: what value do I send the Drive VI? +/- 1 or RPM?

How does it know what Speed I want? Will it mimic the JAG test app?

Also, can I use the encoder counts to measure distance if I'm using them to control speed.

Phil
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
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


All times are GMT -5. The time now is 04:00.

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