Go to Post If you ever find yourself thinking that you are the most brilliant person in a situation, you are doing something wrong. - EricVanWyk [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 Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 05-12-2008, 17:00
ericand's Avatar
ericand ericand is offline
Registered User
AKA: Eric Anderson
FRC #3765 (Terrabots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: St. Paul, MN
Posts: 148
ericand is a jewel in the roughericand is a jewel in the roughericand is a jewel in the rough
cRIO - motor controller code (esp. victor)

I think there is a bug in the speed controller init code for the victors.

The default settings for the victor speed controler set the center position as 132. The comments state that the values
used were established "empirically"

The default bounds are:
max 210
Dead Band Top 138
Dead Band Mid 132
Dead Band Bot 126
min 56


Given, as the comments state, the values can vary from victor to victor, and given the values can chage if the victors
are calibrated using the Victor calibration procedure of (give them max PWM and min PWM and push the switch on the
victor)

I think a better default would be centered around 127, with max and min at 254 and 0 respectively.

Better yet would be to have a motor controller constructor that allows these to be set whe the controller is created.

At the very least we need a note to teams to call SetBounds() on their controllers to get values that match their
hardware (instead of values that match the hardware of the WPI library developers.

This may explain why we were seeing the drive moters creep and hum when the joysticks were neutral. For those motors,
neutal was actually just a little bit on.

The code for the Jaguar controller looks more like what I would expect.
 


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
Motor to Victor jumpe1990 Motors 11 20-02-2008 09:34
Window Motor on a Victor? DavidGitz Kit & Additional Hardware 1 13-01-2007 09:42
Non-Victor Speed Controller FourPenguins Electrical 6 31-10-2006 15:46
What Victor for VEX Controller? Chris_Elston Electrical 5 25-04-2006 21:00
Victor controller problem llambele Technical Discussion 3 14-11-2001 23:00


All times are GMT -5. The time now is 15:02.

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