Go to Post Only think of Gracious Professionalism as a standard to work toward personally. Never use it as a gauge to point out someone else’s shortcomings. - Rich Kressly [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 13 votes, 5.00 average. Display Modes
  #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, 120 views)
File Type: zip Template Code V1.1.zip (179.4 KB, 142 views)
File Type: vi Quadratic Control Scaling and Dead Zone.vi (13.6 KB, 102 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
  #2   Spotlight this post!  
Unread 23-10-2008, 10:14
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: 747
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
Re: [FTC]: LabVIEW Programming Template for FTC

Quote:
Originally Posted by Team 288 View Post
In all of our (admittedly very unscientific) tests, the robot seems to respond to its controls instantly.
Really! That's odd, because it's very noticable on my NXT's.

I'm wonderng what the possible differences might be. We both should be using the same NXT firmware. Did you download the recent FTC Toolkit update (released on Oct 16th)? I did, so I wonder if this could make a difference.

I just installed your code right as it came, and got the delayed response. There is no doubt it's there.

I wonder if the NXT internals have changed recently. When I get a chance I'm going to look at the internal Settings/NXT version info. in the brick to see how it compares with yours. Can you lookup and post that info when you get a chance?

I'll try the new code when I get a moment.
__________________
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
  #3   Spotlight this post!  
Unread 23-10-2008, 11:16
jbbjjbt jbbjjbt is offline
VRC Coach
AKA: Jon T
VRC #0177 (Twisted Botz)
Team Role: Coach
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Gloucester, VA
Posts: 110
jbbjjbt is an unknown quantity at this point
Re: [FTC]: LabVIEW Programming Template for FTC

Quote:
Originally Posted by PhilBot View Post
Really! That's odd, because it's very noticable on my NXT's.

I'm wonderng what the possible differences might be. We both should be using the same NXT firmware. Did you download the recent FTC Toolkit update (released on Oct 16th)? I did, so I wonder if this could make a difference.

Philbot,
Do you have encoders on your drive motors and are they hooked up? We don't and the new move motors vi definitely has delays if you don't have encoders.
__________________
Jon Thompson
Coach
VRC 177 Twisted Botz
Sponsored by FRC 122
NASA Knights
Reply With Quote
  #4   Spotlight this post!  
Unread 23-10-2008, 15:06
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
I'm wonderng what the possible differences might be. We both should be using the same NXT firmware. Did you download the recent FTC Toolkit update (released on Oct 16th)? I did, so I wonder if this could make a difference.
We had not installed that update, so we put it on one computer as a test. We did not notice any lag in the NXT's performance.

Quote:
Originally Posted by PhilBot
I wonder if the NXT internals have changed recently. When I get a chance I'm going to look at the internal Settings/NXT version info. in the brick to see how it compares with yours. Can you lookup and post that info when you get a chance?
We checked it, and got:

Code:
FW:   1.21
AVR:  1.01
BC4:  1.01
BUILD 0508081346
ID    0016530857F2
__________________
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
  #5   Spotlight this post!  
Unread 23-10-2008, 20:51
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: 747
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
Re: [FTC]: LabVIEW Programming Template for FTC

Quote:
Originally Posted by Team 288 View Post
Code:
FW:   1.21
AVR:  1.01
BC4:  1.01
BUILD 0508081346
ID    0016530857F2
I have the same...

but it looks like there may be a fix in the works.... Woo Hoo !
__________________
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
  #6   Spotlight this post!  
Unread 23-10-2008, 20:49
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: 747
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
Re: [FTC]: LabVIEW Programming Template for FTC

Quote:
Originally Posted by jbbjjbt View Post
Philbot,
Do you have encoders on your drive motors and are they hooked up? We don't and the new move motors vi definitely has delays if you don't have encoders.
Well, I do sometimes.... We're trying a few drive combinations and only have the encoders on one set of motors.

I looked at the code and although there does seem to be a call to "GetEncoders" the call just seems to be setting some flags. No sure why it's there. The Move command is just a fixed power command as far as I can tell... not sure why there should be any extra delays... but I'll take your word for it... I gues I better test it both ways to see if I get simmilar results.

Too bad if I want to drive the motors without encoders....

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
Reply


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
[FTC]: First problem with FTC and LabView.....? PhilBot FIRST Tech Challenge 5 07-11-2008 10:36
[FTC]: FTC Labview questions Monty Python FIRST Tech Challenge 8 14-10-2008 20:03
[FTC]: Request for FTC video footage in Atlanta ManicMechanic FIRST Tech Challenge 0 13-04-2008 02:27
[FTC]: FTC]: FTC Champ Tournament - Ontario (Scoring Breakdown) Mr. Lim FIRST Tech Challenge 2 03-03-2008 11:54
[FTC]: [FTC]: Ontario Provincial FTC Start/End Times cbhl FIRST Tech Challenge 8 16-12-2007 13:37


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

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