Go to Post [on practice robots:] Twice the work and twice the practice building seem to equal twice the experience so far. - MrBasse [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-02-2009, 02:28
LVMastery LVMastery is offline
LabVIEW Educator and Mentor
AKA: Ben Zimmer
FRC #0843 (Wildcats)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 47
LVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud of
Lightbulb So, honestly, who's still programming?

Hey Everyone,

I had several conversations yesterday with mentors from teams who are either:
- withholding their controller and a few sensors and actuators from shipment to do further programming work between now and competition
- planning to program blind (without hardware) and cross their fingers that they can tweak it on compliance day

Being a rookie mentor (though LONGtime LabVIEW programmer) I didn't honestly consider these options as viable.

However, if I can help by producing one or two more LVMastery TipJar videos in the meantime, I would be happy to.

Please reply to this thread if you have a topic in mind.

Thanks,
Ben

www.LVMastery.com/FRCTipJar
__________________
Ben Zimmer
Enable Education
www.EnableEducation.com
www.FRCMastery.com
email: ben@enabletc.com
Phone/Fax: (905) 864-1858
Toll Free: (877) 872-4619
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2009, 08:31
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: So, honestly, who's still programming?

1629 is still tweaking. Something that annoys me about our code is that I run a pid loop for the wheels (in periodic tasks) and during the disabled period, any latent movement causes the pid to burp when restarted.

Wondering the best way to reset the pids and ramp functions during disable.
__________________
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 18-02-2009, 08:35
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: So, honestly, who's still programming?

Quote:
Originally Posted by LVMastery View Post
Hey Everyone,

I had several conversations yesterday with mentors from teams who are either:
- withholding their controller and a few sensors and actuators from shipment to do further programming work between now and competition
- planning to program blind (without hardware) and cross their fingers that they can tweak it on compliance day

Being a rookie mentor (though LONGtime LabVIEW programmer) I didn't honestly consider these options as viable.

However, if I can help by producing one or two more LVMastery TipJar videos in the meantime, I would be happy to.

Please reply to this thread if you have a topic in mind.

Thanks,
Ben

www.LVMastery.com/FRCTipJar

Oh, please do one on how to program the other buttons on the Joystick. We have our robot moving forward and back and it turns, using 2 joysticks, but we cannot for the life of us get how to do a trigger (using the KOP joysticks). We want to do the following:

1. Right hand joystick trigger - make the globe motor move the chain forward.
2. Left hand joystick trigger - make the globe motor move the chain backwards. This only is used if something gets stuck.
3. Button that thumb rests on (right hand) make the keyang motor move the dumper forward.
4. Button that thumb rests on (left hand) make the keyang motor move the dumper back. This is only used if a ball gets stuck

I found out that the dumper is using the Keyang motor and the chain is using the globe motor and the drive motors are the CIMS.

I really have no idea how to continue. I have watched all the TipJar videos, but not understanding the engineering part makes programming difficult. This is the first year the mechanical has been done before the code.

Please, can you help??? We go to Traverse City next Thursday (26th)

Thanks.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2009, 08:46
LVMastery LVMastery is offline
LabVIEW Educator and Mentor
AKA: Ben Zimmer
FRC #0843 (Wildcats)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 47
LVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud of
Re: So, honestly, who's still programming?

Quote:
Originally Posted by PhilBot View Post
1629 is still tweaking. Something that annoys me about our code is that I run a pid loop for the wheels (in periodic tasks) and during the disabled period, any latent movement causes the pid to burp when restarted.

Wondering the best way to reset the pids and ramp functions during disable.
One thing I would consider is using the reinitialize input of the PID Control Input Filter.vi and PID.VI itself. You could use a global to send an enabled boolean from the main loop which is true when teleop is enabled and false when disabled. Or,

As an aside, and for all of the people asking about Joystick Functions: there is a fantastic function inside the OpenG Library called Boolean Trigger. It will output a momentary boolean high when the input value has a rising (and/or falling edge) which makes trapping a change of state a lot easier.

Naturally ( ) I have a TipJar entry discussing the OpenG library and how to install it: http://www.lvmastery.com/TipJar2008-03-13

Ben
__________________
Ben Zimmer
Enable Education
www.EnableEducation.com
www.FRCMastery.com
email: ben@enabletc.com
Phone/Fax: (905) 864-1858
Toll Free: (877) 872-4619
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2009, 08:50
LVMastery LVMastery is offline
LabVIEW Educator and Mentor
AKA: Ben Zimmer
FRC #0843 (Wildcats)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 47
LVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud ofLVMastery has much to be proud of
Re: So, honestly, who's still programming?

Quote:
Originally Posted by chinckley View Post
Oh, please do one on how to program the other buttons on the Joystick. We have our robot moving forward and back and it turns, using 2 joysticks, but we cannot for the life of us get how to do a trigger (using the KOP joysticks). We want to do the following:

1. Right hand joystick trigger - make the globe motor move the chain forward.
2. Left hand joystick trigger - make the globe motor move the chain backwards. This only is used if something gets stuck.
3. Button that thumb rests on (right hand) make the keyang motor move the dumper forward.
4. Button that thumb rests on (left hand) make the keyang motor move the dumper back. This is only used if a ball gets stuck

I found out that the dumper is using the Keyang motor and the chain is using the globe motor and the drive motors are the CIMS.

I really have no idea how to continue. I have watched all the TipJar videos, but not understanding the engineering part makes programming difficult. This is the first year the mechanical has been done before the code.

Please, can you help??? We go to Traverse City next Thursday (26th)

Thanks.
Please see the attached snippet. Basically this shows how to extract the button values, and also shows using the OpenG Boolean Trigger function (see my other reply below) Hope that helps!

Ben
Attached Thumbnails
Click image for larger version

Name:	Example Teleop.PNG
Views:	126
Size:	73.8 KB
ID:	7510  
__________________
Ben Zimmer
Enable Education
www.EnableEducation.com
www.FRCMastery.com
email: ben@enabletc.com
Phone/Fax: (905) 864-1858
Toll Free: (877) 872-4619
Reply With Quote
  #6   Spotlight this post!  
Unread 18-02-2009, 09:48
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: So, honestly, who's still programming?

Thanks, I will try that.

Carolyn
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
Reply With Quote
  #7   Spotlight this post!  
Unread 18-02-2009, 12:50
fritzdejongh fritzdejongh is offline
Coach
FRC #2704
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Batavia, IL
Posts: 18
fritzdejongh has a spectacular aura aboutfritzdejongh has a spectacular aura aboutfritzdejongh has a spectacular aura about
Re: So, honestly, who's still programming?

How about an intro to the pid library?
We haven't looked into it yet, and some examples of what it's good for would help us figure out if we should apply it in our code.
Reply With Quote
  #8   Spotlight this post!  
Unread 18-02-2009, 14:00
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: So, honestly, who's still programming?

Where do I check the version of the WPI Library we have?
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
Reply With Quote
  #9   Spotlight this post!  
Unread 18-02-2009, 14:03
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: So, honestly, who's still programming?

Quote:
Originally Posted by chinckley View Post
Where do I check the version of the WPI Library we have?
If you are programming in Labview then you don't need to worry about WPI Library version. You only need to worry about Labview version, cRIO image version and Driver's Station image version.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Reply With Quote
  #10   Spotlight this post!  
Unread 18-02-2009, 14:05
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: So, honestly, who's still programming?

Quote:
Originally Posted by Vikesrock View Post
If you are programming in Labview then you don't need to worry about WPI Library version. You only need to worry about Labview version, cRIO image version and Driver's Station image version.
We are using Labview (or at least trying to) so we will not worry about that.

At least one less thing to do.

Carolyn
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State
Reply With Quote
  #11   Spotlight this post!  
Unread 18-02-2009, 16:02
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,372
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: So, honestly, who's still programming?

Quote:
Originally Posted by PhilBot View Post
1629 is still tweaking. Something that annoys me about our code is that I run a pid loop for the wheels (in periodic tasks) and during the disabled period, any latent movement causes the pid to burp when restarted.

Wondering the best way to reset the pids and ramp functions during disable.
Another option is to take the "Robot Mode" from the Robot Basic Mode.vi and add it as a global. Then put your PID(s) inside a state machine(s), controlled by the "Robot Mode" global, that only allows it to run during the enabled modes.


Now as for the original question by the OP; We are!

We will be working blind, but we have a copy of the code we "finalized" before shipping, that we are satisfied with for now.

We will be adding a few minor modifications to copies of the code to: refine our autonomous, add "Alliance Color" lights on the operator control panel and lights that indicate "Tracking" to the control panel as well. We may also add a switch to the control panel to indicate to the robot what alliance we are on in the case the FMS does not provide it to us. Without knowing which alliance we are on, our robot will always track BLUE. (A little insurance is always a good thing.)
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist

Last edited by billbo911 : 18-02-2009 at 17:39.
Reply With Quote
  #12   Spotlight this post!  
Unread 18-02-2009, 21:56
Kahn! Kahn! is offline
Registered User
FRC #1379
 
Join Date: Sep 2008
Location: Norcross, GA
Posts: 22
Kahn! is an unknown quantity at this point
Re: So, honestly, who's still programming?

Quote:
Originally Posted by fritzdejongh View Post
How about an intro to the pid library?
We haven't looked into it yet, and some examples of what it's good for would help us figure out if we should apply it in our code.
I would also like to see this.

We are programming, blindly. The rest of the team is making me and my fellow programming another kitbot for testing and from there we hope to get everything working before competition. Sadly, our design team's decision to finish the robot the day before ship wasn't exactly what we had planned for.
Reply With Quote
  #13   Spotlight this post!  
Unread 20-02-2009, 14:22
XXShadowXX's Avatar
XXShadowXX XXShadowXX is offline
They call me Cody.
no team (None currently :\)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pontiac; MI
Posts: 408
XXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud of
Re: So, honestly, who's still programming?

were still fine tuning our sonar, which is also our autonomous, oh and the driver station, were slaving over that.
__________________
Is now an engineer thanks to FIRST.
Reply With Quote
  #14   Spotlight this post!  
Unread 21-02-2009, 04:24
Arcre Arcre is offline
jp
AKA: Jorge
FRC #2504
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Hawaii
Posts: 17
Arcre is an unknown quantity at this point
Re: So, honestly, who's still programming?

Still programming, we have a programming bug where we temporary stop the robot for 3 seconds when we combined our joystick control with 2 button control speed drive. Should I email my code to you for debug?
__________________
Reply With Quote
  #15   Spotlight this post!  
Unread 22-02-2009, 18:50
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: So, honestly, who's still programming?

We are still working on adding features and awaiting the time when we can test our first program.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State

Last edited by chinckley : 22-02-2009 at 18:52. Reason: was going to add more but decided not too.
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
Who's still alive?? I am!! AdamT Chit-Chat 7 15-12-2004 22:08
Who's Blue? Who's Red? WebWader125 General Forum 22 08-03-2004 22:24


All times are GMT -5. The time now is 21:38.

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