View Single Post
  #1   Spotlight this post!  
Unread 23-10-2008, 10:00
Team 288's Avatar
Team 288 Team 288 is offline
Team 288 - Spare Parts
FTC #0288 (Spare Parts)
Team Role: Coach
 
Join Date: Oct 2008
Rookie Year: 2004
Location: St. Louis
Posts: 32
Team 288 is a jewel in the roughTeam 288 is a jewel in the roughTeam 288 is a jewel in the roughTeam 288 is a jewel in the rough
Re: [FTC]: LabVIEW Programming Template for FTC

Quote:
Originally Posted by PhilBot
instead of inverting the drive signal to one motor, you can set the "Invert" input to "true" for that wheel.
Done. Thanks for the suggestion, we hadn't noticed the 'invert' input.

Quote:
Originally Posted by PhilBot
Sorry team 288, but your Dead-Zone scaling is a major CPU hog, and on my NXT it introduces a very noticable delay. I suspect that it's the floating point divide and two floating point multiplies. Without a floating point processor, divides can take a long time.
We're sorry to hear that you experienced this with our code. In all of our (admittedly very unscientific) tests, the robot seems to respond to its controls instantly. In an effort to improve speed, we have re-done the scaling so that it now uses only one integer division, and never deals with floating point numbers. This should be faster, but we are honestly unable to notice any difference.

We would appreciate it if you could try out the improved scaling code and see if our changes have any impact.

On another note, we have noticed that many computers have trouble displaying the formula embedded in the scaling paper, so we exported it to a PDF.
Attached Files
File Type: pdf Dead Zone Scaling Documentation.pdf (41.5 KB, 121 views)
File Type: zip Template Code V1.1.zip (179.4 KB, 143 views)
File Type: vi Quadratic Control Scaling and Dead Zone.vi (13.6 KB, 103 views)
__________________
Charlie Blair
Electronics Instructor at Gateway Institute of Technology High School
Head Coach for FTC teams at Gateway Institute of Technology High School since 2005
Planning Committee Member, St. Louis Regional FTC
Mentor to Team 931 Perpetual Chaos since 2004
FRC Volunteer
Reply With Quote