[more] Smoky Mountain Regional : 18d 12h 57m ... Orlando Regional : 25d 12h 57m ... Peachtree Regional : 32d 12h 57m ...
Go to Post Do it the good ol' American way and throw money at the problem. In other words, get out of there and call a professional to take care of it. - sanddrag [more]
Home
Go Back   Chief Delphi > CD-Media > White Papers
Team 51   CD-Events   CD-Media   CD-Swap   CD-Spy   FRC-Spy   Unsung FIRST Heroes   WFA
portal register members calendar search Today's Posts Mark Forums Read FAQ rules
VEXpro
The Chief Delphi Forums are sponsored by Innovation First International, Inc.
Delphi
ADVERTISEMENT

photos

papers

everything



Victor Calibration code

Astronouth7303

By: Astronouth7303
New: 07-04-2006 09:29 PM
Updated: 07-04-2006 09:29 PM
Total downloads: 234 times


Cross platform automatic victor calibration code.

Sometime during build, I wrote some code to automatically calibrate the victors. I'm releasing it under GNU GPL.

By using this, you can precisly calibrate your victors. If you're having subtle problems with the robot not reacting as you'd like, run this before tweaking constants.

It cycles all the PWM values from 0 to 254 and back down, pausing at 0, 127, and 254. Pushing p1_sw_top (the top button on joystick 1). The current value is displayed on the user byte. Autonomous mode kills everything.

The code will compile for the 2004/2005 RC, 2006 RC, and the EDU bot (Robovation). Notice the seperate libraries and linker scripts for each one. It was developed in Eclipse, so there are no MPLAB project files. There are, however, makefiles.

Recomended usage:

  1. Unhook all your motors
  2. Download program
  3. Go through each victor and calibrate it according to the directions, but instead of moving the joystick, run this (hit the button)
  4. Download your code, turn off bot, and reconnect your motors

When it's all done, allow it to run. All the LEDs should change together, in syncronicity. If one of them is off, it isn't calibrated quite right. (When they're all going at once, the off one sticks out.)

You may configure the timings and the switch at the top of user_routines.c.

This can also serve as a small template. The only reason ifi_utilities.c/.h is in there is because I use printf() once for initialization.

Attached Files

  • zip Source & binaries

    victor-calibrate.zip

    downloaddownload file

    uploaded: 07-04-2006 09:29 PM
    filetype: zip
    filesize: 464.15kb
    downloads: 232



Recent Downloaders

Discussion

view entire thread

Reply

02-12-2007 05:01 PM

Astronouth7303


Unread Re: paper: Victor Calibration code

Since this paper is getting referenced, I figured I should add this note:

The code should still work exactly as-is on the 2007 RC. (Besides firmware, is there any difference between the 2006 and 2007 RC?) The most one should need to do is add the 2007 library. Don't replace the header files or you will loose compatibility with older controllers.



view entire thread

Reply

Tags

loading ...



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

The Chief Delphi Forums are sponsored by Innovation First, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright © Delphi and Pontiac Central High School